# Chroma (Vector Database)

> A free vector database that anyone can use. You can start in minutes.

**Field:** Artificial Intelligence  
**Category:** Retrieval & Search  
**Also known as:** ChromaDB, Chroma DB

## Think of it like

It is like a notebook on your own desk. You can start right away.

## Definition

Chroma is a free, open-source vector database that is easy to start with. You install it with one command and use it from Python or JavaScript. You hand it texts, and it can make the embeddings for you. Then you ask it a question, and it returns the closest texts. It can run inside your app on a laptop, or as a server. Many RAG tutorials begin with it.

## Example

Emma tests a RAG idea on her laptop. She runs pip install chromadb, adds 300 notes and asks questions within ten minutes.

## Example code

```python
import chromadb
notes = chromadb.Client().create_collection("notes")
notes.add(documents=["The gym opens at 6am."], ids=["n1"])
notes.query(query_texts=["When does the gym open?"], n_results=1)
```

Add one note, then ask a question in other words and get that note back.

## Why it matters

It lets you try retrieval in minutes. You find out if RAG helps before you build anything big.

## Common mistake

Keeping the laptop setup for real users. Plan how it will run, back up and grow before you launch.

## Three principles

- **Quick start.** One install, a few lines.
- **Makes embeddings.** Hand it text, not vectors.
- **Laptop or server.** Same code, two ways to run.

## Related terms

- [Vector Database](https://learn.benibix.com/term/ai/vector-database)
- [pgvector](https://learn.benibix.com/term/ai/pgvector)
- [Qdrant](https://learn.benibix.com/term/ai/qdrant)
- [Embedding Model](https://learn.benibix.com/term/ai/embedding-model)
- [Retrieval-Augmented Generation (RAG)](https://learn.benibix.com/term/ai/retrieval-augmented-generation)

![Four columns, from you build more to you run less. A library inside your program: FAISS. An add-on in a database you run: pgvector. A vector database, open source, to run or rent: Chroma, Qdrant and Weaviate. A hosted service you rent: Pinecone.](https://learn.benibix.com/diagrams/ai3-vector-stores.svg)

---

Source: https://learn.benibix.com/term/ai/chroma
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
