Qdrant Hybrid Search

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

Explains hybrid search in Qdrant. Use when someone asks 'how do I setup hybrid search?', 'how to combine keyword and semantic search?', 'sparse plus dense vectors?', 'missing keyword matches', 'how to combine results from multiple searches?' and 'combining multiple representations'. Also use for how a hybrid query is scoped: 'how is IDF scoped?', 'can one tenant's data contaminate another tenant's scoring?'

仅含说明AI & Agents
AI 生成的概览

讲解 Qdrant 混合搜索:prefetch 构建块、结果合并以及跨租户的 IDF 隔离。

功能
该技能提供在 Qdrant 中设置混合搜索的指导,即并行运行多个搜索并合并结果。它帮助判断哪些搜索类型可以放入单个 prefetch,以及如何使用 RRF、DBSF、FormulaQuery 或重排序来合并结果。它还涵盖使用命名向量配置集合、通过 Query API 构建混合查询,以及在真实数据上评估搜索质量。另有单独一节说明并行搜索的隔离程度,包括按分片的索引与 IDF 计算以及租户范围限定。
适用场景
当有人询问如何设置混合搜索、如何结合关键词与语义搜索、如何使用稀疏加稠密向量、如何处理关键词匹配缺失,或如何合并多个搜索的结果时使用。它也适用于关于混合查询作用范围的问题,例如 IDF 如何限定范围,或某个租户的数据是否会影响另一个租户的评分。
运行要求
不包含脚本,仅为说明性指令。智能体需要 Read、Grep 和 Glob 工具。按照指导操作需要可访问 Qdrant 部署及其 Query API,部分所述功能需要 Qdrant 1.19 或更高版本,并在被过滤字段上建立 payload 索引。

Hybrid Search in Qdrant

Hybrid search means running two or more different searches in parallel and combining their results into one.

In Qdrant this is powered by the Query API via prefetch: each prefetch runs exactly one type of search independently, and the outer query combines results from parallel prefetches.
Prefetches can be nested and searches can be multi-stage, all pipeline happening in one request through Query API. See Universal Query API for examples.

Identify the user's problem and pick building blocks:

  • What can go into one prefetch, e.g. power one search, in Search Types [blocked]
  • How to combine results of these searches (RRF, DBSF, FormulaQuery, reranking) in Combining Searches [blocked]

Based on what you've picked, test your approach:

  1. Configure Qdrant collection with named vectors, where each named vector usually corresponds to one representation (different embedding models or different vector types) of a data point.
  2. Construct a hybrid search request with Query API from your building blocks. You can search independently among one type of vectors, with prefetch + using, like shown in examples in Hybrid Queries documentation.
  3. Evaluate hybrid search quality on real user data and provide user with improvements and tradeoffs (speed/resources).

How Isolated Are Parallel Searches?

Use when: different tenants share one collection and you need to understand hybrid search isolation guarantees.

If user wants to isolate/share hybrid search pipelines between tenants, consider that:

  • Indexes (sparse, payload and dense) and IDF modifier for sparse vectors are computed independently per shard, not per tenant, by default — payload-based tenant partitioning alone does not isolate IDF statistics. On Qdrant 1.19 or newer, the idf search param can scope IDF statistics to a payload-filtered corpus (requires a payload index on the filtered field), giving each tenant properly isolated BM25 scoring instead of shard-wide statistics.
  • Prefetch runs independently per shard to retrieve #limit results, so for collection-level prefetches if collection has several shards, Qdrant will always prefetch under the hood #limit * #shard results. Final results are merged based on scores.
  • In nested prefetches (deeper than 1 level), methods described in "Combining Searches" might be done on a shard level first, then per-shards results once again will be merged based on scores.

What NOT to Do

  • Choose a hybrid search pattern based on "vibes" without any hybrid search quality evaluation in-place.
  • Create too many named vectors without a need. An unfilled named vector might take as much resources as a filled one.

来源与署名

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

许可证: 无许可证

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

举报或申请下架