Skip to content

RAG-Based PDF ChatBot is an AI tool that enables users to interact with PDF content seamlessly. Powered by Ollama LLM and LangChain, it extracts and provides accurate answers from PDFs, enhancing document accessibility and usability. Perfect for efficient information retrieval.

Notifications You must be signed in to change notification settings

Murghendra/RAG-PDF-ChatBot

Repository files navigation

RAG Based PDF Reader ChatBot

This project is a RAG (Retrieve and Generate) based PDF reader chatbot using the Ollama Large Language Model (LLM). The chatbot allows users to upload PDF files and ask questions about their content, providing accurate and relevant answers based on the extracted text.

Features

  • PDF Upload: Users can upload a PDF file to the application.
  • Text Extraction: The content of the uploaded PDF is extracted using PyPDF2 for further processing.
  • Question Answering: Users can ask questions about the content of the PDF, and the chatbot provides answers using the Ollama LLM.
  • Streamlit UI: A user-friendly interface built with Streamlit to interact with the chatbot.

Technology Stack

  • Streamlit: For building the user interface.
  • Ollama LLM: For generating responses based on the content of the PDF.
  • PyPDF2: For extracting text from PDF files.
  • langchain: For integrating the Ollama model and managing the language processing pipeline.

Installation

  1. Clone the repository:

    git clone https://github.com/Murghendra/RAG-PDF-ChatBot.git
    cd RAG-PDF-ChatBot
    
  2. Install Dependencies:

    pip install -r requirements.txt
    
  3. Run the Streamlit server:

    streamlit run streamlit.py 
    

Screenshots

Here are some screenshots of the application:

Home Page

Home Page

About Project Page

About Project Page

PDF Query Prediction

PDF Query Prediction

About

RAG-Based PDF ChatBot is an AI tool that enables users to interact with PDF content seamlessly. Powered by Ollama LLM and LangChain, it extracts and provides accurate answers from PDFs, enhancing document accessibility and usability. Perfect for efficient information retrieval.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages