This project is made using FastAPI. This serves as a backend to the frontend chatbot.
Note: We consider updation or deletion as a new few, so the extra overhead should be counted as one-time setup.
Go to the project directory
cd chatbot-backend
Install dependencies
pip install -r requirements.txt
conda create --name myenv
conda activate myenv
conda env update --name myenv --file environment.yml --prune
Add your OpenApi key in main.py
OPENAPIKEY = 'XXXXXXXXXXXXXXXXXX'
Start the server
uvicorn main:app --reload
POST /api/query
Parameter | Type | Description |
---|---|---|
query |
string |
Required. The user query from the frontend |
Server: FastAPI, OpenAPI, Langchain
Database: ChromaDB