- Create the image.
docker build -t rag-app .
- Run the container based on the image created.
docker run --rm rag-app --query "What is builder design pattern?"
- Install the requirement packages.
pip3 install -r requirement.txt
- Set up Chroma database for our corpus. (Make sure you modified the
data
directory to store the files.)
python3 create_db.py
- Input the query and run the RAG application.
python3 rag.py --query "What is builder design pattern?"