This is a Flask-based web application that allows users to add PDF documents to a Qdrant vector store for searching. The application uses the LlamaIndex library to create embeddings and store the documents. The embeddings are created using the HuggingFace Embedding model. The application also uses the OpenAI API for querying the stored documents.
To set up the application, follow these steps:
- Clone the repository to your local machine.
- Install the required dependencies by running
pip install -r requirements.txt
in the terminal.
To use the application, follow these steps:
- Start the application by running
python app.py
in the terminal. - The application will be available at
http://localhost:5000/
.
The application has two endpoints:
/add_pdf
: This endpoint allows users to upload a PDF document and store it in the Qdrant vector store./query
: This endpoint allows users to query the stored documents using the OpenAI API.
Contributions to this project are welcome. If you would like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.