Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Assists with storing, searching, and managing vector embeddings using ChromaDB. Use when building RAG pipelines, semantic search engines, or recommendation systems. Trigger words: chromadb, chroma, vector database, embeddings, semantic search, similarity search, vector store, rag.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 21% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 2% | 0% |
ChromaDB is an open-source vector database for storing, searching, and managing embeddings. It provides a simple API for document ingestion, semantic similarity search, and metadata filtering, supporting both Python and JavaScript/TypeScript clients with embedded, server, and cloud deployment options.
get_or_create_collection for idempotent collection setup, choose PersistentClient for development and HttpClient for production server connections.add() calls in chunks of 5,000 documents, always store source metadata (filename, URL, page number) for RAG citations, and use upsert() for incremental updates to avoid duplicates.collection.query(query_texts=..., n_results=...) for text-based search, combine metadata where filters to narrow results before semantic search, and set n_results based on the LLM's context window (5-10 for most RAG pipelines).$eq, $gt, $in with $and/$or logical operators, and combine with where_document for content-based filtering alongside semantic similarity.PersistentClient for single-node applications, Docker for server mode, or Chroma Cloud for managed hosting with multi-tenancy support.hnsw:M, hnsw:construction_ef, hnsw:search_ef) for the quality-speed tradeoff and choose cosine distance for normalized embeddings (OpenAI, Cohere).User request: "Set up a RAG pipeline with ChromaDB for answering questions about our docs"
Actions:
upsert() for idempotent ingestioncollection.query() and pass retrieved chunks as context to the LLMOutput: A semantic search pipeline that retrieves relevant document chunks for LLM-powered Q&A.
User request: "Implement product search that combines text similarity with category filters"
Actions:
query_texts with where={"category": "electronics"}$gte and $lte operatorsOutput: A filtered semantic search that narrows by metadata before ranking by text similarity.
get_or_create_collection for idempotent collection initialization; it is safe for restarts.add() calls in chunks of 5,000 documents to manage memory usage.upsert() for incremental updates to avoid duplicate documents when re-ingesting.n_results based on the LLM's context window: 5-10 results for most RAG pipelines.cosine distance for normalized embeddings (OpenAI, Cohere) and l2 for unnormalized.Other measured skills in the registry, with their headline benchmark lift.