This is a Streamlit web application that allows users to interactively chat with PDF documents using the Gemini model.
This application leverages the Gemini model from Google's GenerativeAI to enable users to ask questions about uploaded PDF documents. The PDF documents are processed to extract text, which is then split into smaller chunks for efficient processing. The text chunks are embedded using GoogleGenerativeAIEmbeddings and indexed using FAISS for fast similarity search. Users can then ask questions about the content of the PDF documents, and the application provides detailed answers based on the provided context.
- Upload multiple PDF documents for processing.
- Ask questions about the content of the PDF documents.
- Receive detailed answers based on the provided context.
- Utilizes Google's GenerativeAI model for conversational responses.
-
Clone this repository:
git clone https://github.com/raghulajithn/pdfQuery.git -
Navigate to the project directory:
cd pdfQuery -
Install the required dependencies:
pip install -r requirements.txt -
Set up your Google API key by creating a
.envfile and adding your API key:GOOGLE_API_KEY=your_api_key_here
-
Run the Streamlit app:
streamlit run app.py -
Upload your PDF files using the file uploader.
-
Click the "Submit & Process" button to process the uploaded PDF files.
-
Enter your question in the text input field and press Enter to get a response.
- This application utilizes the Gemini model from Google's GenerativeAI.
- It also uses the Streamlit library for building interactive web apps.
This project is licensed under the MIT License - see the LICENSE file for details.
