Discover Packages
github.com/bzdvdn/draftrag
examples
chromadb
command
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jul 14, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
ChromaDB — RAG with ChromaDB
Interactive RAG chat with ChromaDB as a vector store. The collection is created automatically on first run.
Quick start
1. Start ChromaDB:
docker compose up -d
2. Run the example:
cd examples/chromadb && cp .env.example .env && go run .
For mock mode this is sufficient. For a real LLM, set LLM_PROVIDER=ollama|openai|anthropic and the corresponding keys.
Environment variables
Variable
Default
Description
LLM_PROVIDER
mock
LLM provider (mock, ollama, openai, anthropic)
EMBEDDING_DIM
1536
Vector dimension
CHROMADB_URL
http://localhost:8000
ChromaDB server URL
COLLECTION_NAME
draftrag_chunks
Collection name
Tutorial
Detailed guide on working with ChromaDB and metadata — tutorial 04: Metadata Filter .
Expand ▾
Collapse ▴
Documentation
¶
@sk-task docs-and-examples#T3.1: chromadb example — RAG-чат с ChromaDB (AC-003).
Использует публичный API draftrag напрямую. Shared только для mock/print.
Быстрый старт с Docker:
docker compose up -d
cp .env.example .env && go run .
Source Files
¶
Click to show internal directories.
Click to hide internal directories.