chroma-core/chroma
Rust-backed vector database for embedded and self-hosted RAG retrieval
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Chroma is a collection-oriented retrieval database with an in-process Python entry point and a separate client-server deployment. The collection API is the integration boundary: callers submit records with IDs, documents, metadata, or embeddings, then query the collection or fetch records by ID. The same data model is available to an application team whether it starts with an in-memory prototype or deploys a server.
The Rust workspace separates frontend code, workers, segments, indexing, storage, logs, and system metadata into crates including rust/frontend, rust/worker, rust/segment, rust/index, rust/storage, rust/log-service, and rust/sysdb. It also contains SQLite and Python binding crates. The Python package lists NumPy, ONNX Runtime, and tokenizers among its dependencies. These are concrete runtime and module boundaries, not a guarantee that every component runs as a separate service: the Compose configuration builds one server from the Rust CLI target.
Key Capabilities & Differentiators
The collection API supports create, get, get-or-create, and delete operations. Within a collection, callers can add, update, delete, and fetch records by ID. On the text ingestion path, Chroma can handle tokenization, embedding, and indexing; on the vector path, the application supplies embeddings and retains control of model choice. query accepts text and a requested result count through n_results, while metadata filters and document containment conditions such as $contains can narrow the result set.
That makes Chroma suitable for retrieving similar passages within a source or other metadata-defined subset. A containment filter is not a ranked full-text search engine, however. Chroma Cloud offers vector, hybrid, and full-text search; treat those as hosted capabilities and verify any required modes on the exact self-hosted version before committing to the architecture.
Trade-offs & Limitations
Against a vector extension in an existing PostgreSQL deployment, Chroma offers a purpose-built collection API and an in-process path that does not require a separate database service for prototyping. Once deployed as a shared server, it adds a data store to operate alongside the application database. If retrieval depends heavily on SQL joins or transactional consistency with business records, evaluate keeping vectors in PostgreSQL instead. If ranked lexical or hybrid search is mandatory, benchmark that requirement directly rather than treating metadata and substring filters as substitutes.
Self-hosting gives the team control over where retrieval data lives, but makes it responsible for network exposure, backups and restores, and upgrades. A hosted deployment changes those responsibilities and introduces service terms and data-boundary considerations. For either path, test filter selectivity, write and update load, and concurrent queries on a representative corpus. Budget for embedding inference separately from storage and retrieval, especially if the application generates embeddings on the same host.
Hardware & Deployment Guide
Start a prototype with pip install chromadb on Python 3.9+ and chromadb.Client() for in-memory use. For a persistent client-server setup, chroma run --path /chromadbpath selects the data directory. The root docker-compose.yml builds rust/Dockerfile at target cli, mounts the chroma-data volume at /data, maps port 8000, and uses restart: unless-stopped. It accepts an OpenTelemetry endpoint, service name, and OTLP exporter headers.
Pin the package or image and test restart recovery, backups, restores, and upgrades against persistent data before production. Decide how the API will be exposed and authenticated; a port mapping and a named volume do not address those concerns. The release list includes tagged 1.5.9 in May 2026, a separate cli-1.4.4 release, and a 1.5.10.dev326 build from main. Keep the development build out of a stable rollout unless it has been qualified explicitly.
query returns a requested number of similar records; get fetches by ID, and metadata or document content can constrain retrieval.chroma-data volume to /data, publishes port 8000, and exposes OpenTelemetry endpoint and service-name settings.Teams building document RAG that want to prototype in process, then move to a self-hosted retrieval API with persistent storage and metadata filters.
Retrieval must share SQL joins and transactions with business data, or production depends on hybrid ranking or high-availability behavior you have not validated on the target deployment.
Quick Start & Installation
pip install chromadb # python client # for javascript, npm install chromadb! # for client-server mode, chroma run --path /chroma_db_path
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| chroma ★ | 29.8k | +73 | Rust | Apache-2.0 | Rust-backed vector database for embedded and self-hosted RAG retrieval |
| mydb | 258 | +154 | Rust | Apache-2.0 | A Rust HTAP database with MySQL protocol support and SQL-native hybrid retrieval |
| firecrawl | 214.1k | +5k | TypeScript | AGPL-3.0 | Local and hosted web ingestion that turns sites into RAG-ready Markdown |
| markitdown | 199.2k | +927 | Python | MIT | Python library and CLI that turn mixed-format documents into Markdown for RAG in |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/chroma-core/chroma.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about chroma
How should Chroma fit into a RAG ingestion and query pipeline?
Do I need a GPU, and how should I size the deployment?
Can I use and self-host Chroma commercially?
When is Chroma a better fit than pgvector?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy