Skip to content

anilsharmay/chat-with-pdfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PDF Chatbot with Gemini

A Streamlit application that allows you to chat with your PDF documents using Google's Gemini AI model.

Features

  • Upload and process multiple PDF documents
  • Interactive chat interface
  • Real-time progress tracking during PDF processing
  • Powered by Google's Gemini 2.5 Pro model
  • Maintains conversation history

Setup

  1. Clone the repository:
git clone <your-repo-url>
cd <repo-name>
  1. Create and activate a virtual environment:
python3 -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Create a .env file in the project root and add your Google API key:
GOOGLE_API_KEY=your_api_key_here
  1. Run the application:
streamlit run app.py

Requirements

  • Python 3.8+
  • Google API key with access to Gemini models
  • Required Python packages (see requirements.txt)

Usage

  1. Open the application in your browser (default: http://localhost:8501)
  2. Upload one or more PDF documents using the sidebar
  3. Click "Process PDFs" to analyze the documents
  4. Start chatting with your documents!

Note

Make sure to keep your Google API key secure and never commit it to version control.

About

A chatbot to query the contents of PDFs via natural language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages