Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1.77 KB

File metadata and controls

45 lines (35 loc) · 1.77 KB

PDF RAG ChatBot with Llama2 and Gradio

image

PDFChatBot is a Python-based chatbot designed to answer questions based on the content of uploaded PDF files. It utilizes the Gradio library for creating a user-friendly interface and LangChain for natural language processing.

Technologies Used 🚀

  • Langchain
  • Llama2
  • ChromaDB
  • Hugging Face
  • Gradio

Features ⭐

  • Process PDF files and extract information for answering questions.
  • Maintain chat history and provide detailed explanations.
  • Generate responses using a Conversational Retrieval Chain.
  • Display specific pages of PDF files according to the answer.

Prerequisites 📋

Before running the ChatBot, ensure that you have the required dependencies installed. You can install them using the following command:

pip install -r requirements.txt

Configuration ⚙️

The ChatBot uses a configuration file (config.yaml) to specify Hugging Face model and embeddings details. Make sure to update the configuration file with the appropriate values if you wanted to try another model or embeddings.

Usage 📚

  1. Upload a PDF file using the "📁 Upload PDF" button.
  2. Enter your questions in the text box.
  3. Click the "Send" button to submit your question.
  4. View the chat history and responses in the interface. image

Running Locally 💻

To run the PDF Interaction ChatBot, execute the following command:

cd src
python app.py

License

This project is licensed under the Apache License 2.0.