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.
- Langchain
- Llama2
- ChromaDB
- Hugging Face
- Gradio
- 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.
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
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.
- Upload a PDF file using the "📁 Upload PDF" button.
- Enter your questions in the text box.
- Click the "Send" button to submit your question.
- View the chat history and responses in the interface.
To run the PDF Interaction ChatBot, execute the following command:
cd src
python app.py
This project is licensed under the Apache License 2.0.