A starter template for a Retrieval-Augmented Generation (RAG) chatbot that leverages PDF files as its primary knowledge source. Designed for easy setup, customization, and future expansion. Click the Use this template button on the upper right corner of this repository to use this sample template.
- Clone the repo:
git clone https://github.com/0xChron/rag-chatbot-assistant.git
cd rag-chatbot-assistant
- Create .env file and input your own configuration:
cp .env.sample .env
- Create and activate a virtual environment (recommended):
python -m venv venv
source venv/bin/activate # On Windows use `venv\Scripts\activate`
- Install dependencies:
pip install -r requirements.txt
-
Create a folder named
data/and place your PDF documents there. -
Ingest documents using:
python ingest.py
- Start the chatbot:
python main.py
- You can modify settings in
config.pyfile 👽
- 📄 Support PDF document ingestion
- 🧠 RAG-based conversational AI
- ⚙️ Configurable via config.py
- 🛠️ Easy to extend for additional file types and features
- Additional file types support
- Web-based UI