Skip to content

vividwalker/Multi-Head-Rag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Implemented multi-aspect embeddings from Multi-Head RAG. Took inspiration from this paper: https://arxiv.org/abs/2406.05085

Steps to Run the Application

Frontend:

  1. Navigate to the frontend directory.
  2. Install the required dependencies:
    npm i
  3. Start the frontend server:
    npm start

Backend:

  1. Ensure all dependencies are installed. These can be found in the requirements.txt file. Install them using:

    pip install -r requirements.txt
  2. 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.
  3. After uploading the document, start the query API by running:

    python query_api.py
  4. You can now ask questions about your uploaded PDF on the frontend, and the backend will provide answers based on the document.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published