/agentdb-search:agentdb-mmrfrom agentdb-search
Diversity reranking using Maximal Marginal Relevance (MMR) to reduce redundancy in vector search results. Balances relevance and novelty for broader topic coverage.
Ships in agentdb-search. 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.
Diversity reranking on top of vector search. MMR balances relevance to the query with novelty among the picked results.
agentdb_diversity_rank(
query: <embedding | string>
candidates: <id list> // typically the top-50 from vector search
k: 5 // final size
lambda: 0.5 // 0=pure diversity, 1=pure relevance
)
MMR picks greedily:
score(i) = λ · sim(query, i) - (1-λ) · max sim(i, picked_j)
High λ → behaves like vanilla top-k (relevance-only). Low λ → emphasizes novelty among picks.
Default λ = 0.5 is a sensible balance for most uses.
agentdb_diversity_rank with k=5.This is a 50→5 reduction with much higher topic coverage than top-5 directly.
lambda: 'auto' and let it learn.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ruvnet/agentdb --plugin agentdb-search4 skills in this plugin
/agentdb-explainable-recallSearch with feature attributions — return WHY each match scored where it did. Use when debugging recall quality, auditing for bias, or explaining results to a user./agentdb-hybrid-searchHybrid search — BM25 keyword + dense vector fused with Reciprocal Rank Fusion. Use when queries have specific identifiers, code symbols, or proper nouns that pure semantic search might miss./agentdb-quantized-searchSpeed up AgentDB's built-in sql.js vector backend on large collections with the opt-in RaBitQ 1-bit quantized index (@ruvector/rabitq-wasm). Use when SqlJsRvfBackend search gets slow past ~10,000 vectors, when choosing between exact and approximate search for a browser or no-native install, or when the user asks about RaBitQ or quantized search in AgentDB.Other plugins' skills for the same job