Skip to content

Question Answer Retrieval using Mistral 7B, Langchain, and FastAPI.

Notifications You must be signed in to change notification settings

craterr/Question-Answer-Retrieval

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Question-Answer-Retrieval

This project uses Mistral-7B model to generate Question and Answers from a PDF and gives output in a CSV file and on the terminal.

Steps to run the code:

  1. Download the code:

    • Clone the repository or download the code as a ZIP file.
  2. Navigate to the directory:

    • Use Annaconda CLI to navigate to the directory where the code is located.
  3. Create a conda environment and activate it

  4. Install dependencies:

    • pip install -r requirements.txt
      
  5. Run the code:

    • Execute the command to run the code.
      python app.py
      
    • Start the server
      uvicorn app:app --reload
      
  6. Open localhost:8000 and upload the desired pdf and generate😀

Project Preview

localhost:8000 image

image

image Click on download button to download the csv file else it will be saved here.

image

About

Question Answer Retrieval using Mistral 7B, Langchain, and FastAPI.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published