This chat bot is designed to be utilized within the Protracking App.
This application is developed using FastAPI, Langchain, and OpenAI.
Use the package manager pip to install the requirements.
pip install -r requirements.txtUse uvicorn to run the app.
- [Frontend] {https://github.com/HuuTri130401/exe-pro-tracking}
- [Backend] {https://github.com/danialtien/ProTracking}
uvicorn main:app --reload- User Authentication
- Chat Bot + Google Search
The API documentation is available at /docs.
Create a .env file in the root directory of the project and add the following variables.
OPENAI_API_KEY=YOUR_API_KEY
GOOGLE_CSE_ID=YOUR_CSE_ID
GOOGLE_API_KEY=YOUR_API_KEY
DB_URL=YOUR_DB_URL
ALLOWED_ORIGINS=YOUR_ALLOWED_ORIGINS
# This is config to connect with the Protracking App
JWT_SECRET=YOUR_JWT_SECRET
JWT_ALGORITHM=YOUR_JWT_ALGORITHM
JWT_EXPIRE_TIME=YOUR_JWT_EXPIRE_TIME
EXTERNAL_SERVER_URL=YOUR_EXTERNAL_SERVER_URL
EXTERNAL_SERVER_ISS=YOUR_EXTERNAL_SERVER_ISS
EXTERNAL_SERVER_AUD=YOUR_EXTERNAL_SERVER_AUD
EXTERNAL_SERVER_NAME=YOUR_EXTERNAL_SERVER_NAME
EXTERNAL_SERVER_EMAIL=YOUR_EXTERNAL_SERVER_EMAIL
EXTERNAL_SERVER_PASSWORD=YOUR_EXTERNAL_SERVER_PASSWORD
EXTERNAL_SERVER_ACCOUNT_TYPE=YOUR_EXTERNAL_SERVER_ACCOUNT_TYPEGithub:
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.