# Chroma (vector database)

> Canonical: https://skillalmanac.com/glossary/chroma-db | Verification status: pending | Index status: not offered to search engines

Chroma describes itself as open-source data infrastructure for AI, used as a vector database: a store that keeps documents with their embeddings (lists of numbers that capture meaning) so a program can search by meaning.

Also called: Chroma, ChromaDB, Chroma DB, Chroma vector database, Chroma database.

## In plain language

Chroma is a program that stores pieces of text, plus a numeric fingerprint of what each piece means, so you can later ask for the pieces closest in meaning to a question. Think of a filing cabinet where folders are arranged by topic, not by alphabet. An AI app can use it to pull relevant notes before it answers. It does not write answers itself, and it can find just what you have put in. Poor splitting of documents or a weak embedding model gives poor results. You also run it, whether on your own computer, on a server you manage or in Chroma's hosted cloud, so there is upkeep and possibly a hosting bill.

## Technical definition

Chroma stores records in collections. Each record needs an ID and a document, an embedding or both, with metadata optional; Chroma can compute an embedding with a configured embedding function or accept from you. A query takes query text or vectors plus n_results and returns the nearest records by vector similarity, optionally restricted by a metadata filter (where) or a document-content filter (where_document). Chroma's README describes an in-memory mode for prototyping, persistence options, a client-server mode, and Python and JavaScript clients, and the documentation describes local, self-hosted and Chroma Cloud options. The project is licensed under Apache 2.0.

## How it shows up when you use agents

When an agent or app needs to answer from a large set of documents, a team may place those documents in a [vector database](/glossary/vector-database) and have the app query it before the model replies. Chroma is one such database. In a session you meet it indirectly: a coding agent's tool or an [MCP server](/glossary/mcp-server) may query a Chroma collection and return passages, which then fill the prompt. This is the retrieval half of [retrieval-augmented generation](/glossary/retrieval-augmented-generation).

Chroma stores [embeddings](/glossary/embedding), so [semantic search](/glossary/semantic-search) quality depends on the embedding model and on how documents were split before they were added. If you change the embedding model after loading data, the stored vectors and new query vectors no longer match, and results degrade. If answers look wrong, first print the passages the query returned and check whether the right text was among them before editing the prompt.

Running it is a choice. The documentation lists local, self-hosted and a managed cloud service. A local store suits a prototype. A shared or production store needs backups, access control and someone to keep the documents current. Next step: read [What is RAG](/learn/what-is-rag), then test your chunk settings with the [RAG chunking planner](/skills/skill-almanac/rag-chunking-planner) before you load a collection.

## Common confusions

- **Chroma versus RAG.** RAG is a pattern: retrieve, then generate. Chroma is one component that can store and search the documents. It does not call a model for you.
- **Chroma versus the embedding model.** Chroma stores and searches vectors. A separate embedding model, which you configure or which Chroma's embedding function wraps, produces them.
- **Vector search versus keyword search.** Vector search finds text close in meaning. It can miss an exact code or name that a keyword search would find, so some systems combine both.
- **Myth.** A vector database makes a model remember your data. The model does not change. Retrieved text is placed in the prompt for each question.

## Worked examples in this catalogue

### [What Is RAG? Retrieval-Augmented Generation Explained](https://skillalmanac.com/learn/what-is-rag)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The guide walks through indexing and querying, then a worked chunking example in which a sentence stored alone loses the company and quarter it belongs to.

Why it exercises the concept: A store such as Chroma is where the indexed chunks and their embeddings live. The guide shows what has to be put in before a query can find anything.

### [rag-chunking-planner](https://skillalmanac.com/skills/skill-almanac/rag-chunking-planner)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Your documents split by three chunking strategies, with defects and offline recall reported for each, so chunk settings are chosen with numbers.

Why it exercises the concept: What you add to a collection is decided by chunking. The skill measures that step before you load a vector database.

### [library-docs-lookup](https://skillalmanac.com/skills/skill-almanac/library-docs-lookup)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: An answer to a library question drawn from the installed package's own files, with file and line cited.

Why it exercises the concept: It is retrieval for a coding agent without a vector database: it reads the installed files directly. It shows the same retrieve-then-answer idea that Chroma serves.

## Related terms

- [Vector database](https://skillalmanac.com/glossary/vector-database.md)
- [Embedding](https://skillalmanac.com/glossary/embedding.md)
- [Semantic search](https://skillalmanac.com/glossary/semantic-search.md)
- [Retrieval-augmented generation (RAG)](https://skillalmanac.com/glossary/retrieval-augmented-generation.md)
- [Self-hosted LLM](https://skillalmanac.com/glossary/self-hosted-llm.md)

## Sources

- [Chroma documentation: Introduction](https://docs.trychroma.com/docs/overview/introduction), Chroma (accessed 2026-11-24)
- [Chroma documentation: Add data to a collection](https://docs.trychroma.com/docs/collections/add-data), Chroma (accessed 2026-11-24)
- [Chroma documentation: Query and get](https://docs.trychroma.com/docs/querying-collections/query-and-get), Chroma (accessed 2026-11-24)
- [chroma-core/chroma (README)](https://github.com/chroma-core/chroma), GitHub (Chroma) (accessed 2026-11-24)
- [What is a vector database?](https://www.ibm.com/think/topics/vector-database), IBM (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above. Independent source and example-target verification is pending. [Glossary index](https://skillalmanac.com/glossary.md).
