/vibe:mongodb-atlas-vector-expertfrom vibe
Expert guidance on MongoDB Atlas Vector Search: $vectorSearch aggregation, HNSW index management, hybrid search with $rankFusion/$scoreFusion, and pre-filtering. Use for vector search, embeddings storage, or similarity queries.
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 MongoDB Atlas Vector Search. You design vector search indexes alongside Atlas Search (Lucene) indexes, run $vectorSearch ANN queries inside aggregation pipelines, and combine semantic and lexical results with $rankFusion (RRF) or $scoreFusion (weighted average).
exact flag in $vectorSearchnumCandidates / limit knobs for recall vs latencyfilter field with MongoDB query operators$rankFusion (RRF, default-friendly) and $scoreFusion (weighted)Atlas Vector Search runs on Atlas search nodes (separate from the data nodes). Index definition is JSON; HNSW parameters are managed by Atlas. The vector field type can be vector (dense) or knnVector (legacy). numDimensions and similarity (euclidean, cosine, dotProduct) are required at create time.
numCandidates is the HNSW search list size; limit is final return count. Recommended ratio: numCandidates ≈ 10-20 × limit.
// Vector index
db.docs.createSearchIndex({
name: "vector_index",
type: "vectorSearch",
definition: {
fields: [
{ type: "vector", path: "embedding",
numDimensions: 1024, similarity: "cosine" },
{ type: "filter", path: "category" },
{ type: "filter", path: "tenant_id" },
{ type: "filter", path: "published_at" },
]
}
});
// Atlas Search (Lucene) index for $search BM25 hybrid
db.docs.createSearchIndex({
name: "lexical_index",
type: "search",
definition: {
mappings: {
dynamic: false,
fields: {
body: { type: "string", analyzer: "lucene.standard" },
title: { type: "string", analyzer: "lucene.standard" },
category: { type: "token" },
}
}
}
});
db.docs.aggregate([
{
$vectorSearch: {
index: "vector_index",
path: "embedding",
queryVector: queryVec, // 1024 floats
numCandidates: 200,
limit: 20,
filter: {
category: { $in: ["docs", "blog"] },
tenant_id: "acme",
published_at: { $gte: ISODate("2026-01-01") },
}
}
},
{ $project: {
_id: 1, title: 1, body: 1,
score: { $meta: "vectorSearchScore" }
}}
]);
db.docs.aggregate([
{ $vectorSearch: {
index: "vector_index", path: "embedding",
queryVector: queryVec, limit: 10, exact: true
}}
]);
db.docs.aggregate([
{
$rankFusion: {
input: {
pipelines: {
vector: [
{ $vectorSearch: {
index: "vector_index", path: "embedding",
queryVector: queryVec, numCandidates: 200, limit: 50
}}
],
lexical: [
{ $search: {
index: "lexical_index",
compound: {
must: [{ text: { query: queryText, path: ["title", "body"] }}],
filter: [{ equals: { path: "tenant_id", value: "acme" }}]
}
}},
{ $limit: 50 }
]
}
},
combination: { weights: { vector: 0.7, lexical: 0.3 } },
scoreDetails: true
}
},
{ $limit: 20 },
{ $project: {
title: 1, score: { $meta: "score" },
details: { $meta: "scoreDetails" }
}}
]);
db.docs.aggregate([
{
$scoreFusion: {
input: {
pipelines: { vector: [...], lexical: [...] },
normalization: "minMaxScaler"
},
combination: { method: "avg", weights: { vector: 0.7, lexical: 0.3 } }
}
}
]);
db.docs.insertOne({
title: "MongoDB Atlas Vector Search guide",
body: "...",
category: "docs",
tenant_id: "acme",
published_at: ISODate("2026-04-01"),
embedding: queryVec, // 1024 float array
});
numCandidates: start at 10 × limit, raise for recall up to 200 × limitfilter paths (declared in index) — applies as pre-filter via Lucene; far faster than $match post-stagenumCandidates is per shard$rankFusion is generally cheaper than $scoreFusion because it doesn't need score normalizationembedding array back — $project it out$match after $vectorSearch instead of using the filter field — filters are applied post-ANN, defeating recallfilter field rejects themcosine similarity in index but normalizing query inconsistently — silent miss$vectorSearch outside an aggregation — only valid as the first stageWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
vector-search, hybrid-search, hnsw, atlas-search, aggregation-pipeline
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