Chat with PDF is an interactive AI chatbot built with Streamlit, designed to allow you to engage with the content of your PDF documents. Powered by Groq's API and Google’s generative AI embeddings, it enables seamless querying of your uploaded PDFs.
- PDF Interaction: Upload and query PDF documents directly.
- Content-Based Responses: The chatbot provides responses based on the content of your PDFs.
- User-Friendly Interface: Simple and intuitive UI built with Streamlit.
- Customizable API Keys: Enter your Groq and Google API keys for personalized interactions.
- Python: Version 3.12 or higher is required.
- API Keys Required:
- Get your Groq API key from Groq API Key Page.
- Get your Google API key from Google API Key Page.
-
Clone the repository:
git clone https://github.com/Divyanshu9822/chat-with-pdf.git cd chat-with-pdf
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required packages:
pip install -r requirements.txt
-
Run the Streamlit app:
streamlit run app.py
-
Enter your API keys in the sidebar:
- Groq API Key: Input your Groq API key.
- Google API Key: Input your Google API key.
-
Upload PDF(s) using the file uploader.
-
Process the documents by clicking the 'Process Documents' button.
-
Start querying the chatbot about the content of the uploaded PDFs.
-
View responses based on the content of the documents. Relevant sections from the PDFs will be displayed to support the answers.