recommender-service-flask/README.md

50 lines
946 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## How to Run This Project
### 1⃣ Create and Activate a Virtual Environment
Run the following command to create a virtual environment:
```sh
python -m venv venv
```
### Activate the Virtual Environment
**On macOS/Linux:**
```sh
source venv/bin/activate
```
### 2⃣ Install Dependencies
After activating the virtual environment, install the required packages:
```sh
pip install -r requirements.txt
```
### 3⃣ Run the Flask Application
Once dependencies are installed, start the Flask app by running:
```sh
python src/app.py
```
## Environment Variables
This project requires a `.env` file for configuration.
### **.env File Placement**
- Place the `.env` file **one folder before** the `util` directory.
- Example folder structure:
### **Example `.env` File**
```ini
QDRANT_HOST = "localhost"
QDRANT_PORT = 6333
QDRANT_API_KEY=''
QDRANT_CLUSTER=''
QDRANT_COLLECTION_NAME='titan'
TOKENIZER_FOLDER=''
MODEL_FOLDER=''