Skip to content
Snippets Groups Projects
Samuel Jędrzejewski's avatar
276b2baf

RAG console app

Installation

Use the docker to install RAG console application.

Build RAG app image

docker build -t rag-llm-app .

Run builded image, replace /path/to/data with path to a folder where are stored documents you want to use in app

docker run -dit --network host -v /path/to/data:/app/data --name my-rag  rag-llm-app

Now you can run container bash and execute needed commands

docker exec -it my-rag bash

Supported commands

Reset chromadb data

python populate_database.py --reset

Load data from your directory to chromadb

python populate_database.py

Search using imported data

python query_data "your_query"