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.
- Clone the repository
- Install the requirements using the following command
pip install -r requirements.txt
-
Add your pdf files to the
data/
folder or you can use the sample pdf files provided in the folder. -
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
- 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.
- HuggingFace
- HuggingFace Embeddings
- Llama-7B-Chat
- PyPDF2
- Langchain
- all-MiniLM-L6-v2
- CTransformers
- RetrievalQA
- FAISS
Tell me about Query2doc?