Multi PDF Interactive Query Application
The PDF.quest-pro Chat App is a Python application that allows you to chat with multiple PDF documents. You can ask questions about the PDFs and the bot will give you answers from the PDFs. This app will only answer to questions related to the loaded PDFs only else it will tell you that "I don't know".
- PDF Loading: Extract the text from all the uploaded PDFs. {using PyPDF2}
- Text Chunking: The extracted text is divided into smaller chunks for further processing. {using CharacterTextSplitter from langchain}
- Language Model: The application utilizes a language model to generate vector representations of the text chunks. {using OpenAIEmbeddings and HuggingFaceInstructEmbeddings}
- Similarity Matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones. {using FAISS}
- Response Generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.{using langchain, flang-t5 model(best performance)}
Install the required dependencies by running the following command:
pip install -r requirements.txt
Add your API key in the .env file in the already-created variables
Execute the following command in virtual env:
streamlit run app.py
A very interactive user interface app will appear

Select the embedding model you want to use


