Qdrant Hybrid Search Combining

作者 qdrant6a03d0ce8f55无许可证收录于 2026年10月8日更新于 2026年10月8日

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', or 'fusion is not producing good results'

AI 生成的概览

指导选择与配置 Qdrant 融合方法(RRF、DBSF、公式、多向量重排)以合并预取结果。

功能
说明如何把多个并行 Qdrant 预取返回的候选排序列表融合为一个排序结果列表。它比较基于排名的 RRF、基于分数分布的 DBSF、带载荷加权的自定义公式融合,以及基于向量的融合(如后期交互多向量重排)。同时列出应避免的做法,例如对不可比分数做线性融合或使用未经调优的权重。
适用场景
适用于在 RRF 与 DBSF 之间做选择、合并稀疏与稠密检索分数、编写自定义融合逻辑,或排查融合排序效果不佳的情况。适合 Qdrant 中混合检索的设计与调优。
运行要求
无脚本,仅为说明性内容。需要已部署的 Qdrant 并支持混合或多预取查询;若使用基于向量的融合,还需为数据点存储命名向量表示。文档中包含指向外部 Qdrant 文档与教程的链接。

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.

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, a decent default to start with.
  • Tune k to control rank sensitivity in RRF fusion.
  • Add per-prefetch weights when one search should dominate, using Weighted RRF. Weights should be customized per collection and retrievers' score distributions!

DBSF

  • DBSF (Distribution-Based Score Fusion) — normalizes score distributions per prefetch before fusing them, for that, instead of min-max, uses mean +- 3 deviations on prefetched list of scores. Avoid relying on resulting absolute scores, as scores in DBSF are normalized per prefetch (aka per a retrieved list of search results), and might be uncomparable across queries.

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 the prefetch= list silently shifts which weight applies to which retriever.
  • Provide defaults for every $score[i] so the formula still evaluates for candidates that surfaced from only a subset of prefetches.
  • Start with RRF when scores are on incomparable scales (e.g. BM25 + cosine). Reach for FormulaQuery only when explicit per-representation weighting or payload-driven boosts are required, and normalize each $score[i] (decay or min-max on a sampled distribution) before combining linearly.

Need Good Ranking of Fused Candidates and Ready To Spend More Resources

Use when: you want to use similarity between query and candidates' vector representations as the prefetches combiner and simultaneously ranker. More resource heavy than score/rank based fusions, but might be necessary due to use case requirements or need in a high top-K precision of results (when parallel prefetches have overall a good recall of retrieved candidates).

You can use any type of vector as an outer query over the prefetches, to perform the fusion on the server-side in one QueryAPI request: sparse, dense, multivector. For that, same type of vector representations for documents need to be stored as named vectors per point.

Instead of using client-side fusion through cross-encoders, a popular option is Late interaction models-based fusion, through reranking on multivectors (e.g. ColBERT for text, ColPali and ColQwen for images).

What NOT to Do

  • Use linear weighted fusion on incomparable score ranges. Why not.
  • Use "vibe" defined weights in weighted RRF. Weights should be fine-tuned per dataset and retrieval pipelines.
  • Pick any fusion type without comparative experiments.
  • Use late interaction multivectors for fusion without evaluating cheaper analogues, for example, MUVERA. More in multi-vector Qdrant search course

来源与署名

来源:qdrant/skills位于skills/qdrant-search-quality/search-strategies/hybrid-search/combining-searches提交6a03d0c

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架