recommender service build using flask
Go to file
2025-03-28 17:39:02 +08:00
src added the add/ endpoint 2025-03-28 17:39:02 +08:00
.gitignore first commit 2025-03-11 17:49:59 +08:00
Dockerfile first commit 2025-03-11 17:49:59 +08:00
README.md added readme file 2025-03-17 16:04:38 +08:00
requirements.txt rough working recommend endpoint 2025-03-14 15:33:31 +08:00

How to Run This Project

1 Create and Activate a Virtual Environment

Run the following command to create a virtual environment:

python -m venv venv

Activate the Virtual Environment

On macOS/Linux:

source venv/bin/activate

2 Install Dependencies

After activating the virtual environment, install the required packages:

pip install -r requirements.txt

3 Run the Flask Application

Once dependencies are installed, start the Flask app by running:

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

QDRANT_HOST = "localhost"
QDRANT_PORT = 6333
QDRANT_API_KEY=''
QDRANT_CLUSTER=''
QDRANT_COLLECTION_NAME='titan'
TOKENIZER_FOLDER=''
MODEL_FOLDER=''