liveBook · Manning

Chroma DB

As explained in Effective Conversational AI

Chroma is an open-source vector database and retrieval system for storing and searching embedding vectors.

When a retrieval-augmented generation system cannot find the right passage, its language model lacks the context needed for an accurate response. Chroma provides a practical store for embedded document chunks, allowing retrieval by semantic similarity before response generation. section 6.3.2

A simple ingestion flow

Start with a text file, split it into sentence- or word-based chunks, convert those chunks into embeddings, and load them into Chroma. A user query can then retrieve semantically similar passages for the language model to synthesize into a response. section 6.3.2

A practical Chroma workflow includes:

  • Choose a chunking strategy and experiment with chunk size or splitting method. section 6.3.2
  • Embed the chunks with an open-source or custom embedding function. section 6.3.2
  • Store the resulting vectors in Chroma and evaluate retrieval performance. section 6.3.2
Figure 6.9 RAG uses a vector database during build time and run time.
figure

Use the figure to see how a vector database participates in RAG during both build time and run time. section 6.3.2

How Effective Conversational AI covers it

How deep it goes
Explains chunking, embedding, storage, and retrieval, while noting alternative retrieval methods and model-dependent performance.
Examples
Uses text files, chunking experiments, open-source embeddings, Chroma ingestion, and a LangChain example.
What you can do after
Build it from scratch by chunking sample text, embedding chunks, and loading them into Chroma for retrieval experiments.
How it connects
Connects document chunking, embedding models, semantic similarity, RAG, and language-model response generation.

Also explained in

Compare how 7 books explain Chroma DB →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Conversational AI. The section links point to the parts of the book it draws on.