Skip to content

Latest commit

 

History

History
71 lines (48 loc) · 2.1 KB

Readme.md

File metadata and controls

71 lines (48 loc) · 2.1 KB

PdfChat with llama2

Table of Contents

Description

PdfChat is a application where you can chat with your research paper in pdf format. You can ask questions to your pdf and it will answer you. It is a fun way to interact with your pdf.

Installation

  1. Clone the repository
  2. Install the requirements using the following command
pip install -r requirements.txt
  1. Add your pdf files to the data/ folder or you can use the sample pdf files provided in the folder.

  2. Ensure you have downloaded the 8-bit quantised GGML binary file from https://huggingface.co/TheBloke/Llama-2-7B-Chat-GGML/tree/main and placed it into the models/ folder

Llama model

  1. To start parsing user queries into the application, launch the terminal from the project directory and run the following command:
python main.py "<user query>"
Note:
The user query should be in double quotes.
It takes the application about 2-3 minutes to load the model, parse the query and provide an answer.

Tech Stack

Flowchart

Flowchart

Demo

Sample Query

Tell me about Query2doc?

Sample Query

Sample Output

Sample Output