Implementation of Mini-RAG application based on Abu-Bakr Soliman's tutorial. Leveraging the principles outlined in the tutorial, this repo demonstrates the integration of retrieval-augmented generation (RAG) with a minimal setup, suitable for experimentation and further development.
- python 3.8 or later
- Download and install Miniconda
- Create a new environment using the following command:
$ conda create -n Mini-RAG-App python=3.8- Activate the environment:
$ conda activate Mini-RAG-App$ pip install -r requirements.txt$ cp .env.example .envset your environment variables in the '.env' file like 'OPENAI_API_KEY' value.
$ uvicorn main:app --reload --host 0.0.0.0 --port 5000$ cd docker
$ cp .env.example .env