This service is responsible for interacting with LLM and ML models responsible for easing out the self ordering systems.
-
Create a virtual environment:
python3 -m venv venv
-
Activate the virtual environment:
source venv/bin/activate -
Install Dependencies With the virtual environment activated, install the required Python packages:
pip install -r requirements.txt-
Install MongoDB using brew:
brew tap mongodb/brew brew install mongodb-community@6.0
-
Start the MongoDB service:
brew services start mongodb/brew/mongodb-community
To Connect Mongo db in your local to your code, edit run.py configurations and add these environment variables:
DATABASE_NAME=local;MONGO_URI=mongodb://localhost:27017;port=8090;HOST=localhost
Port can be as per your choice.
Just run run.py
After setting up the service, you can try hitting the health api. HealthApi URL: http://{your_localhost}/health
It should return a response like: { "status": "LLM-MLModel Service is up and running." }