# Repository Briefing: chroma-core/chroma
> Source: https://repoforai.com/repo/chroma-core/chroma (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/chroma-core/chroma
- **Official Docs / Website**: https://www.trychroma.com/
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 22/25 · Releases 14/20 · License 20/20)
- **Latest Release**: 1.5.9 (2026-05-05) — https://github.com/chroma-core/chroma/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 29,812 ★ total (+1 24h / +73 7d) · 2,636 forks
- **Topics**: `agents`, `ai`, `ai-agents`, `database`, `rust`, `rust-lang`
- **When to Use**: Best for: Teams building document RAG that want to prototype in process, then move to a self-hosted retrieval API with persistent storage and metadata filters. Skip if: 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.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Runtime: Python 3.9+ package for in-process prototyping and a Rust CLI target for the containerized server.
- Workspace: Separate Rust crates for frontend, workers, segments, indexing, storage, logging, and system metadata.
- Ingestion: Collection records combine unique IDs, documents, and metadata; callers can provide their own embeddings.
- Retrieval: `query` returns a requested number of similar records; `get` fetches by ID, and metadata or document content can constrain retrieval.
- Persistence and telemetry: Compose maps the `chroma-data` volume to `/data`, publishes port 8000, and exposes OpenTelemetry endpoint and service-name settings.
- Deployment boundary: The hosted service offers vector, hybrid, and full-text search; validate any required search mode on the specific self-hosted version.
```

## Quick Start / Clone
```bash
pip install chromadb # python client
# for javascript, npm install chromadb!
# for client-server mode, chroma run --path /chroma_db_path
```
