Skip to content

SekharSunkara6/SmartPDF-Chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SmartPDF-Chat 📄

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.

Features

  • 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.

Demo

How it Works

  1. Upload a PDF via the web interface.
  2. Ask questions about the document.
  3. Get instant answers generated by Gemini AI, based on your PDF’s contents.

Getting Started

1. Clone the Repository

git clone https://github.com/SekharSunkara6/SmartPDF-Chat.git
cd SmartPDF-Chat

2. Create a Virtual Environment

python -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

3. Install Requirements

pip install -r requirements.txt

4. Set Up API Key

  • For local use:
    Create a .env file in the project root:
    GOOGLE_API_KEY=your-google-api-key-here
    
  • For Streamlit Cloud:
    Add your GOOGLE_API_KEY in the app’s Secrets section (see Streamlit docs).

5. Run the App

streamlit run app.py

Deployment

  • Deploy easily to Streamlit Cloud.
  • Set your API key in the Secrets settings for secure access.

Folder Structure

SmartPDF-Chat/
├── app.py
├── utils/
│   └── llm_utils.py
├── requirements.txt
├── .gitignore
├── README.md

Tech Stack

  • Python
  • Streamlit for the UI
  • Google Generative AI (Gemini)
  • PyPDF2 (or pdfplumber) for PDF parsing
  • sentence-transformers and faiss-cpu for semantic search

Contributing

Pull requests and suggestions are welcome!
For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the MIT License.

Acknowledgements

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.

About

Chat with your PDFs using AI. Powered by Gemini and Streamlit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages