RAG Chatbot
This repository contains a Retrieval Augmented Generation (RAG) chatbot implementation that can process data and answer questions based on the provided context.
Requirements
Python Version
⚠️ Important: This project requires Python version lower than 3.12. Python 3.11 works correctly.
Installation
- Clone this repository:
git clone <repository-url>
cd <repository-name>
- Install the required dependencies:
pip install -r requirement.txt
Usage
Command Line Interface
Run the chatbot in terminal mode:
python cli.py
Web Interface
Launch the Gradio web interface:
python gradio_chatbot.py
RAG Implementation
If you want to import the RAG functionality in your own Python script:
from rag_chatbot import RagChatbot
chatbot = RagChatbot()
response = chatbot.query("your question here")
PDF Processing
The repository includes a Jupyter notebook final_pdf.ipynb for processing PDF documents as knowledge sources for the chatbot.
Project Structure
cli.py: Command-line interface implementationgradio_chatbot.py: Gradio web interfacerag_chatbot.py: Core RAG implementationfinal_pdf.ipynb: Jupyter notebook for PDF processing
Description
Languages
Jupyter Notebook
78.1%
Python
21.9%