A brief description of what this project does and who it's for.
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd Q&A
-
Install the dependencies:
pip install -r requirements.txt
To start the application, run:
python app/main.py
-
Ask a Question
- Endpoint:
/ask
- Method:
POST
- Description: Handles user queries and returns answers using GPT-4 with sentiment awareness, including latency tracking.
- Endpoint:
-
Reembed Messages
- Endpoint:
/reembed
- Method:
POST
- Description: Manually triggers re-embedding of missing chat messages.
- Endpoint:
-
Get Embedding Count
- Endpoint:
/embedding-count
- Method:
GET
- Description: Fetches embedding count information.
- Endpoint:
-
Submit Feedback
- Endpoint:
/feedback
- Method:
POST
- Description: Accepts user feedback for GPT-4 answers.
- Endpoint:
-
Delete All Embeddings
- Endpoint:
/delete
- Method:
DELETE
- Description: Deletes all embeddings from ChromaDB.
- Endpoint:
To run the tests, execute:
./run_tests.sh
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.