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 從公開儲存庫中收錄這些內容。

檢舉或申請下架