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

  1. Clone this repository:
git clone <repository-url>
cd <repository-name>
  1. 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

Description
No description provided
Readme 1.9 MiB
Languages
Jupyter Notebook 78.1%
Python 21.9%