Skip to content

ThomasJanssen-tech/Retrieval-Augmented-Generation

Repository files navigation

Build a RAG in 10 minutes with Python, ChromaDB and OpenAI

Watch the full tutorial on my YouTube Channel

Prerequisites

  • Python 3.11+

Installation

1. Clone the repository:

git clone https://github.com/ThomasJanssen-tech/Retrieval-Augmented-Generation.git
cd Retrieval-Augmented-Generation

2. Create a virtual environment

python -m venv venv

3. Activate the virtual environment

venv\Scripts\Activate
(or on Mac): source venv/bin/activate

4. Install libraries

pip install -r requirements.txt

5. Add OpenAI API Key

Get an OpenAI API Key from here: https://platform.openai.com/settings/organization/admin-keys
Add it to .env.example
Rename to .env

Executing the scripts

  • Open a terminal in VS Code

  • Execute the following command:

python fill_db.py
python ask.py

About

Build a RAG (Retrieval Augmented Generation) app in 10 minutes!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages