qdrant-hybrid-search-combining
Fusing scores from multiple searches into a single ranked result (RRF, DBSF, custom fusion). Use when someone asks 'RRF or DBSF?', 'how to combine sparse and…
от qdrant★ 270 звёзд на GitHub
Установить qdrant-hybrid-search-combining в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Combining Prefetch Results
The outer query fuses ranked candidate lists from all parallel prefetches into one ranked list of results. Fusion methods differ in whether they use rank, score or directly vector representations of candidates (their similarity to the outer query) and whether final score incorporates payload metadata. All methods support flat (one fusion step) and nested (multi-stage) prefetch structures.
Tune in this order, cheapest first: confirm fusion beats each prefetch alone on your labels, compare Qdrant's default RRF vs DBSF, if tuning RRF: settle k, then sweep weights at that k, and validate on held-out queries. A weight pair is only valid for the k it was tuned with Tune in this order
Scores Are Not Comparable Across Prefetches & You Want Some Easy Baseline
Use when: searches produce scores on different scales, like BM25 and cosine on dense embeddings.
RRF
- RRF (Reciprocal Rank Fusion): rank-based, ignores scores magnitude.
- Start with RRF at Qdrant's defaults,
k=2and equal weights. - Tune
kto control rank sensitivity in RRF fusion, choosing the value from your labels Use labels to choose akrange. - Add per-prefetch weights when one search should dominate, using Weighted RRF. Weights should be customized per collection and retrievers' score distributions. Tune weights last.
DBSF
- DBSF (Distribution-Based Score Fusion): normalizes each prefetch's scores (mean ± 3 standard deviations) before fusing, so pick it when you trust the retrievers' raw scores to carry magnitude. Normalization is per query, so don't compare absolute DBSF scores across queries, and raise the prefetch
limitif one outlier makes rankings unstable. - DBSF has no parameters to tune, so compare it before hand-tuning RRF
kand weights. Confirm on your own labels Compare RRF and DBSF on your labels
Need Custom Fusion
Use when: recency, popularity or other payload values should affect the merged ranking alongside candidate scores or you need a custom fusion.
With formula query, access score of each prefetch and, if desired, payload field values.
If you want to implement custom fusion on score of each prefetch:
- Use decay or any other available expressions for normalizing score distributions before fusing them.
- Parameters of these expressions should be based on the collection & retriever score distributions (for example, adjusting these parameters on a subsample of real queries).
- Formula query is unable to provide ranks for custom fusions
When using FormulaQuery over multiple prefetches (e.g. per-representation weighting):
$score[i]indexes prefetches in declaration order. Reordering theprefetch=list silently shifts which weight applies to which retriever.- Provide
defaultsfor every$score[i]so the formula still evaluates for candidates that surfaced from only a subset of prefetches. - On Qdrant 1.19.1 or newer,
maxandminexpressions take the best or worst of several$score[i](for example, keep each point's best score across per-field BM25 prefetches), cap a boost (min(cap, boost)), or clamp a value withmax(lo, min(hi, x)). A point absent from a prefetch has$score[i]of0.0, which winsmaxover negative scores andminover positive ones, so setdefaults(keys include the$, placed besideformula, never inside it) to a value outside the expected score range such as-1e30formaxor1e30forminMax and min. - On 1.19.1 or newer,
acoshsupports exact geodesic-distance rescoring for hyperbolic embeddings (Lorentz model withDotdistance,acosh(-$score), negated so closest ranks first). The input must be at least 1 Hyperbolic distance. - Start with RRF when scores are on incomparable scales (e.g. BM25 + cosine). Reach for
FormulaQueryonly when explicit per-representation weighting or payload
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл qdrant-hybrid-search-combining?
Fusing scores from multiple searches into a single ranked result (RRF, DBSF, custom fusion). Use when someone asks 'RRF or DBSF?', 'how to combine sparse and dense', 'how to combine scores from multiple searches?', 'custom fusion', 'fusion is not producing good results', 'how do I tune RRF', 'what k should I use', or 'how do I set fusion weights'
Как установить скилл qdrant-hybrid-search-combining?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл qdrant-hybrid-search-combining запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
GitHubFind, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
build-evidence-map
GitHubBuild an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
pinecone-rag
GitHubBuild production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
qdrant-monitoring-debugging
GitHubDiagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…