/vibe:chroma-expertfrom vibe
Deep expertise in Chroma 1.0+ — collections, multi-modal (OpenCLIP), distance metrics, persistence options, server vs embedded, Rust core performance. Use when implementing vector search, embeddings storage, or similarity queries with chroma.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Chroma — the AI-native open-source search infrastructure that pairs a friendly Python API with a Rust core. You design collections with the right embedding function, persistence model, and distance metric; deploy embedded (in-process), persistent (file-backed SQLite), or single-node server; and run multi-modal collections with OpenCLIP.
l2 (default), cosine, ip — set at create time, immutablespace, ef_construction, ef_search, M per collectionOpenCLIPEmbeddingFunction — text and image in one space$and, $or, $in, $nin, $gt, $lt)Chroma stores embeddings in HNSW (hnswlib-derived but rewritten in Rust as of 1.0). Metadata + documents live in SQLite. Collections persist as chroma.sqlite3 plus per-collection .bin HNSW files. The 2025 Rust-core rewrite removed the Python GIL bottleneck — writes and queries are now ~4x faster and threaded.
Embedding-function configuration is persisted server-side from v1.1.13, so reconnecting clients re-instantiate the right embedder automatically.
import chromadb
from chromadb.utils.embedding_functions import OpenAIEmbeddingFunction
from chromadb.config import Settings
client = chromadb.PersistentClient(
path="./chroma_data",
settings=Settings(anonymized_telemetry=False),
)
collection = client.create_collection(
name="docs",
embedding_function=OpenAIEmbeddingFunction(
api_key="…", model_name="text-embedding-3-small",
),
metadata={
"hnsw:space": "cosine",
"hnsw:M": 32,
"hnsw:construction_ef": 200,
"hnsw:search_ef": 100,
},
)
collection.add(
ids=["d1", "d2", "d3"],
documents=["Chroma is open source.", "HNSW config matters.", "Rust core is fast."],
metadatas=[
{"category": "intro", "tokens": 5},
{"category": "perf", "tokens": 4},
{"category": "perf", "tokens": 4},
],
)
results = collection.query(
query_texts=["how do I tune HNSW?"],
n_results=10,
where={
"$and": [
{"category": {"$in": ["perf", "tuning"]}},
{"tokens": {"$gte": 3}},
]
},
where_document={"$contains": "HNSW"},
include=["documents", "metadatas", "distances"],
)
from chromadb.utils.data_loaders import ImageLoader
from chromadb.utils.embedding_functions import OpenCLIPEmbeddingFunction
import numpy as np
from PIL import Image
multi = client.create_collection(
name="media",
embedding_function=OpenCLIPEmbeddingFunction(), # text + image → same space
data_loader=ImageLoader(),
metadata={"hnsw:space": "cosine"},
)
multi.add(
ids=["img1", "img2"],
images=[np.array(Image.open("photo1.jpg")), np.array(Image.open("photo2.jpg"))],
metadatas=[{"src": "photo1.jpg"}, {"src": "photo2.jpg"}],
)
# Query images by text
multi.query(query_texts=["a sunset over mountains"], n_results=5, include=["uris"])
# Query text by image
multi.query(query_images=[np.array(Image.open("query.jpg"))], n_results=5)
# Server: chroma run --path ./chroma_data --port 8000
import chromadb
client = chromadb.HttpClient(host="localhost", port=8000)
# Same API as PersistentClient from here
collection.upsert(
ids=["d1"], documents=["Chroma 1.0 has a Rust core for 4x speedup."],
metadatas=[{"category": "perf", "tokens": 8}],
)
collection.delete(where={"category": "intro"})
hnsw:M = 32 and hnsw:construction_ef = 200 for collections > 1Mhnsw:search_ef is the runtime knob — start at 100, raise for recallEmbeddingFunction instances that batch (OpenAI, Cohere) — Chroma calls them with batcheschromadb.PersistentClient keeps SQLite WAL hotadd() — memory and disk hits explodewhere and where_document as one filter — they apply to metadata vs document text respectivelydata_loader when ingesting uris instead of inline image arraysVectorStore quick winsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
chroma, vector-db, hnsw, multi-modal, openclip, embedded-vector-store
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job