Implemented multi-aspect embeddings from Multi-Head RAG. Took inspiration from this paper: https://arxiv.org/abs/2406.05085
- Navigate to the frontend directory.
- Install the required dependencies:
npm i
- Start the frontend server:
npm start
-
Ensure all dependencies are installed. These can be found in the
requirements.txtfile. Install them using:pip install -r requirements.txt
-
To upload your document and replace the embeddings of the existing sample research paper:
- Run the following command:
python documentapi.py
- Once executed, enter the path to your file when prompted.
- Run the following command:
-
After uploading the document, start the query API by running:
python query_api.py
-
You can now ask questions about your uploaded PDF on the frontend, and the backend will provide answers based on the document.