Skip to content

Chat with PDF is an interactive AI chatbot built with Streamlit, designed to allow you to engage with the content of your PDF documents.

Notifications You must be signed in to change notification settings

Divyanshu9822/chat-with-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat with PDF - Interactive AI Chatbot

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.

image

Features

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

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/Divyanshu9822/chat-with-pdf.git
    cd chat-with-pdf
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt

Usage

  1. Run the Streamlit app:

    streamlit run app.py
  2. Enter your API keys in the sidebar:

    • Groq API Key: Input your Groq API key.
    • Google API Key: Input your Google API key.
  3. Upload PDF(s) using the file uploader.

  4. Process the documents by clicking the 'Process Documents' button.

  5. Start querying the chatbot about the content of the uploaded PDFs.

  6. View responses based on the content of the documents. Relevant sections from the PDFs will be displayed to support the answers.

About

Chat with PDF is an interactive AI chatbot built with Streamlit, designed to allow you to engage with the content of your PDF documents.

Topics

Resources

Stars

Watchers

Forks

Languages