this is a minimal implementation of RAG model for question answering.
- Python 3.8 or later
- Download and install MiniConda from here
- Create a new environment using the following command:
$ conda create -n mini-rag python=3.8- Activate the environment
$ conda activate mini-ragexport PS1="\[\033[01;32m\]\u@\h:\w\n\[\033[00m\]\$ "$ pip install -r requirements.txt$ cp .env.example .envset your environment variables in the .env file. Like API_KEY value.
$ uvicorn main:app --reload --host 0.0.0.0 --port 8000Download the POSTMAN collection from /assets/mini-rag-app.postman_collection.json
$ cd docker
$ sudo docker compose up -d
$ cp .env.example .env- update
.envwith your credentials