Simple RAG with ChromaDB
Minimal instructions to configure and run the small example scripts in this repo.
Requirements
- Python 3.10+
- pip
Setup
- Create and activate a virtual environment, then install dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt- Create a
.env(refer to .env.example) file in the repository root with the following variables:
API_KEY=your_api_key_here
CHAT_MODEL=your_chat_model_here
Run
- To run the text-based RAG interactive script (loads
story.txt):
python3 txt-rag.py