/agentdb-search:agentdb-hybrid-searchfrom agentdb-search
Combines BM25 keyword search with dense vector search via Reciprocal Rank Fusion. Use for queries with code symbols, identifiers, or proper nouns that pure semantic search might miss.
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.
Combine sparse (BM25, exact terms) and dense (vector, semantic) search via Reciprocal Rank Fusion. Catches both "exact-string" queries and "intent" queries in one call.
getUserById, JWT_SECRET)agentdb_hybrid_search(
query: <string>
k: 5
weights?: { bm25: 0.5, vector: 0.5 } // default; bandit can pick
filters?: { ... } // metadata filters
)
Each result gets a rank in BM25 list (r_bm25) and a rank in vector list (r_vec). Final score:
score(i) = w_bm25 / (60 + r_bm25(i)) + w_vec / (60 + r_vec(i))
The constant 60 (k in the RRF paper) prevents top-1 hits from dominating; the additive structure rewards being well-ranked in both lists.
weights manually per query. Let the bandit (weights: 'auto') learn the right balance.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 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-mmrMaximal Marginal Relevance rerank — get diverse top-k instead of redundant top-k. Use when standard search returns 5 near-duplicates, or when you want broader coverage of a topic./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.npx claudepluginhub ruvnet/agentdb --plugin agentdb-searchOther plugins' skills for the same job