Skip to content

AshwanthramKL/PdfChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages