Chat with your PDF documents using AI!
SmartPDF-Chat is a Streamlit web app that lets you upload any PDF file and interact with its contents using natural language, powered by Google's Gemini AI.
- Upload any PDF and ask questions about its content.
- Conversational interface: Get precise, context-aware answers.
- Powered by Gemini AI for advanced language understanding.
- Runs securely on Streamlit Cloud—no data stored after session ends.
- Upload a PDF via the web interface.
- Ask questions about the document.
- Get instant answers generated by Gemini AI, based on your PDF’s contents.
git clone https://github.com/SekharSunkara6/SmartPDF-Chat.git
cd SmartPDF-Chatpython -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activatepip install -r requirements.txt- For local use:
Create a.envfile in the project root:GOOGLE_API_KEY=your-google-api-key-here - For Streamlit Cloud:
Add yourGOOGLE_API_KEYin the app’s Secrets section (see Streamlit docs).
streamlit run app.py- Deploy easily to Streamlit Cloud.
- Set your API key in the Secrets settings for secure access.
SmartPDF-Chat/
├── app.py
├── utils/
│ └── llm_utils.py
├── requirements.txt
├── .gitignore
├── README.md
- Python
- Streamlit for the UI
- Google Generative AI (Gemini)
- PyPDF2 (or pdfplumber) for PDF parsing
- sentence-transformers and faiss-cpu for semantic search
Pull requests and suggestions are welcome!
For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.
Made with ❤️ by Sunkara PurnaSekhar
Replace yourusername in the git URL with your actual GitHub username.
Update badges and links as needed for your deployment.