Data & AI Infrastructure
Chroma
Use a vector collection to store and retrieve embeddings for text or other supported content.
- G2 rating
- Pricing
- Open-source client and local setup
- Free software with local computing requirements
- Cloud Starter
- $0 base plus usage beyond included credits at the time checked
- Best for
- Developers who want a compact way to test embedding retrieval in Python or a small application.
Video tutorial
ChromaDB Crash Course - Intro to Vector Databases · Alejandro AO · Watch on YouTube ↗
What is Chroma?
Chroma can underpin a small retrieval proof of concept with documents, embeddings, IDs, and metadata in one collection. Establish what a successful query returns and compare the ordered IDs directly before feeding results to a model.
Use stable IDs for source snippets and record the embedding model. Keeping the same source text with a different model can require a new collection or a complete reindex.
Set up and test a real workflow
In a local Python test, initialize PersistentClient with a disposable path such as ./guide-chroma. Create a collection called support_articles and use the same embedding function for both inserts and searches. Seed stable string IDs W-01 and W-02 with documents and short category metadata. Keep an explicit model and storage path in your fixture script so a teammate can recreate the collection.
What to look for in the result
Add W-01 for a 30-day battery warranty and W-02 for standard packaging returns. Search with query_texts set to when does the battery warranty end and request one result. Confirm W-01 leads the test. Restart against the same path, then upsert W-01 with a 45-day warranty. Fetch the record by ID and require the revised text and a collection count of two.
| Problem | What to check | What to change |
|---|---|---|
| The collection is empty after restarting | Compare PersistentClient path and collection name with the fixture script | Reopen the intended on-disk path instead of creating a fresh in-memory client |
| An edited article still returns old text | Check whether the code used add again for an existing ID | Use update or upsert with the same ID and verify the stored document before judging search ranking |
Try it: Benchmark retrieval for five fictional FAQs
Use a known document set and note the expected answer source for each query.
Index fictional FAQ records for returns, shipping, substitutions, warranties, and invoice corrections. Associate each with a stable ID. Search “Can I update the billing address on an old invoice?” and return three IDs and titles.
- Create a temporary collection using a compatible embedding configuration. Add the five records and verify stored IDs.
- Run the query and a simpler paraphrase. Confirm the billing entry appears in both top-three lists.
- Add a category filter and one deliberately irrelevant query to see how the app treats weak matches.
What a usable result looks like
The invoice entry is retrieved consistently for related wording and the filter rules out unwanted categories.
| Check | What you might see | What to do next |
|---|---|---|
| Paraphrase | Invoice entry remains in the candidate set. | Compare ranking to the original. |
| Filter | The returned results match the selected category. | Check version metadata. |
| Unknown query | A weak result is identified as weak. | Add a supported application fallback. |
What to save from the trial
Five indexed snippets with recorded retrieval checks.
Another scenario
Rebuild the collection with a different embedding model, then run the same query set to measure the change.
Use cases and what to check
| Use case | How to try it | What to check |
|---|---|---|
| Prototype search | Index fictional FAQ passages and query by topic. | Verify returned source IDs and order. |
| Metadata restriction | Attach document version and category. | Check whether a filter rules out expired docs. |
Which plan should you try?
| Plan | Price | Who should consider it |
|---|---|---|
| Open-source client and local setup | Free software with local computing requirements | Start with a small local retrieval test. |
| Cloud Starter | $0 base plus usage beyond included credits at the time checked | Check writes, storage, querying, and returned data. |
Estimate fixed and variable charges by usage component when switching to cloud.
Provider pricing and access ↗ · Checked
What people say about Chroma
1 featured user review.
Adding semantic search to a personal site
The developer used Chroma to store embeddings alongside metadata from blog posts and video transcripts. They found the ingestion code short and separated scheduled indexing from live search requests.
September 28, 2025 · CodeX on Medium, implementation write-up ↗ · Paraphrased
Limits to check
A returned match does not prove the record supports a correct answer.
When to choose it
Chroma fits a Python prototype when you need a local vector collection and straightforward updates. Use this test to validate persistence and replacement before trying server hosting or sharing the collection across several application instances.
Common questions
- Should I use the same model for index and query?
- Ensure the vectors are compatible with the collection’s embedding configuration.
- Can I use retrieval alone during evaluation?
- Yes. Compare document IDs independently before adding a generative answer layer.
Community posts
-
Build semantic search across articles and video transcripts ↗
A developer separates the nightly Chroma indexing job from the live search endpoint and records which metadata makes results useful in the interface.
CodeX on Medium