Skip to content

vinmein/question-and-answer-system

Repository files navigation

Project Title

A brief description of what this project does and who it's for.

Installation

  1. Clone the repository:

    git clone <repository-url>
  2. Navigate to the project directory:

    cd Q&A
  3. Install the dependencies:

    pip install -r requirements.txt

Usage

Running the Application

To start the application, run:

python app/main.py

API Endpoints

  • Ask a Question

    • Endpoint: /ask
    • Method: POST
    • Description: Handles user queries and returns answers using GPT-4 with sentiment awareness, including latency tracking.
  • Reembed Messages

    • Endpoint: /reembed
    • Method: POST
    • Description: Manually triggers re-embedding of missing chat messages.
  • Get Embedding Count

    • Endpoint: /embedding-count
    • Method: GET
    • Description: Fetches embedding count information.
  • Submit Feedback

    • Endpoint: /feedback
    • Method: POST
    • Description: Accepts user feedback for GPT-4 answers.
  • Delete All Embeddings

    • Endpoint: /delete
    • Method: DELETE
    • Description: Deletes all embeddings from ChromaDB.

Testing

To run the tests, execute:

./run_tests.sh

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published