Notes

Chroma

The first version of a retrieval system does not need a database cluster. It needs somewhere to put a few thousand embedded documents and get the closest ones back. Chroma is built for exactly that moment, and it is deliberately unexciting to start with.

What it does

Chroma is an open-source embedding database that runs inside your own process — the comparison it invites is SQLite, not a server you provision. You create a collection, add documents with optional metadata and ids, and query it with plain text or with vectors. If you do not supply embeddings it computes them itself using a bundled sentence-transformer model, so a working semantic search is about five lines of Python.

Where it sits among the alternatives
  • Faiss is a similarity-search library: faster at raw scale, but it stores no documents, no metadata and nothing on disk — you build that part yourself.
  • Pinecone, Milvus and Weaviate are services or clusters: the right answer at tens of millions of vectors, and overhead before then.
  • Chroma takes the middle: local persistence, metadata filtering alongside vector search, and a client-server mode for when one process stops being enough.
What to watch

Its ceiling is real — collections in the low millions of vectors on a single machine, with indexing choices that are not tuned for you. The deeper point is that swapping vector stores rarely rescues a weak RAG pipeline: chunking, the embedding model and reranking decide answer quality long before the store does.

Chroma is an open-source vector database built for retrieval-augmented generation: you hand it documents, it stores their embeddings alongside the text and metadata, and it returns the nearest matches for a query. It runs in-process in Python or JavaScript with no server to operate, which makes it the usual first choice for prototyping a RAG pipeline before a workload justifies a hosted store like Pinecone or a cluster like Milvus.

Imagine a library where nothing is filed by title or author. Instead, every page is shelved by what it is actually about, so when you walk in and describe the idea you are chasing, the librarian goes straight to the right shelf. Chroma is a small, free piece of software that does exactly that for your own documents. It keeps your text next to a numerical fingerprint of its meaning, and when a chat assistant needs facts it was never taught, Chroma finds the handful of passages that match the question and hands them over. People reach for it first because it runs on a laptop, with nothing to set up.