Skip to content

gowine423/pdf_rag_with_Llama2_and_gradio_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages