diff --git a/README.md b/README.md index 90dd9ca3..143966d1 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,16 @@ RowBoat supports RAG capabilities to enhance responses with your custom knowledg QDRANT_API_KEY= # Only needed for Qdrant Cloud ``` +3. **Initialize Qdrant Collections** + ```bash + docker compose --profile setup_qdrant up setup_qdrant + ``` + + If you need to delete the collections and start fresh, you can run: + ```bash + docker compose --profile delete_qdrant up delete_qdrant + ``` + ### RAG Features RowBoat supports two types of knowledge base ingestion: diff --git a/docker-compose.yml b/docker-compose.yml index cb026d57..558b5f82 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,6 +69,28 @@ services: - OPENAI_API_KEY=${OPENAI_API_KEY} restart: unless-stopped + setup_qdrant: + build: + context: ./apps/rowboat + dockerfile: scripts.Dockerfile + command: ["npm", "run", "setupQdrant"] + profiles: [ "setup_qdrant" ] + environment: + - QDRANT_URL=${QDRANT_URL} + - QDRANT_API_KEY=${QDRANT_API_KEY} + restart: no + + delete_qdrant: + build: + context: ./apps/rowboat + dockerfile: scripts.Dockerfile + command: ["npm", "run", "deleteQdrant"] + profiles: [ "delete_qdrant" ] + environment: + - QDRANT_URL=${QDRANT_URL} + - QDRANT_API_KEY=${QDRANT_API_KEY} + restart: no + rag_files_worker: build: context: ./apps/rowboat