An educational chatbot project demonstrating Retrieval-Augmented Generation (RAG), designed as a reference for developers exploring document-based AI assistants.
This project showcases how to combine document retrieval with OpenAI's language models to answer user queries using relevant content from uploaded documents. It serves as a practical reference for developers interested in building AI-powered assistants.
-
Clone the repository:
git clone https://github.com/aporia-ai/simple-rag-chatbot.git cd simple-rag-chatbot
-
Install dependencies:
poetry install
-
Activate the virtual environment:
poetry shell
-
Set the OpenAI API Key:
export OPENAI_API_KEY=your_api_key
Run the chatbot using Chainlit:
chainlit run src/simple_rag_chatbot.py
MIT License. See LICENSE file for details.