In today's fast-paced world, efficient access to information is crucial for organizations. DocuGenie, our cutting-edge AI bot, is designed to revolutionize the way you handle and extract information from your local PDF files.
-
Chat History: The app provides a chat history feature, allowing users to access previous chat sessions.
-
Multiple PDF Upload: Users can upload multiple PDFs, with a maximum file size of 200MB.
-
Automatic Chat History Saving: The app automatically saves chat history to their respective chat sessions.
-
Contextual Answering: The app filters out invalid or offensive questions and only answers questions related to the uploaded PDFs. Out-of-context questions are not answered.
-
Accurate Answers: The app guarantees 100% accuracy in retrieving answers from the uploaded PDFs.
The application follows these steps to provide responses to your questions:
-
PDF Loading: The app reads multiple PDF documents and extracts their text content.
-
Text Chunking: The extracted text is divided into smaller chunks that can be processed effectively.
-
Language Model: The application utilizes a language model to generate vector representations (embeddings) of the text chunks.
-
Similarity Matching: When you ask a question, the app compares it with the text chunks and identifies the most semantically similar ones.
-
Response Generation: The selected chunks are passed to the language model, which generates a response based on the relevant content of the PDFs.
To install the MultiPDF Chat App, please follow these steps:
-
Clone the repository to your local machine.
-
Install the required dependencies by running the following command:
pip install -r requirements.txt -
Download Ollama and install llamma3 into your system locally -- Ollama Download
To use the MultiPDF Chat App, follow these steps:
-
Ensure that you have installed the required dependencies and make sure Ollama is running in the background.
-
Run the
app.pyfile using the Streamlit CLI. Execute the following command:streamlit run app.py -
The application will launch in your default web browser, displaying the user interface.
-
Load multiple PDF documents into the app by following the provided instructions.
-
Ask questions in natural language about the loaded PDFs using the chat interface.