Qdrant Search Quality Diagnosis

作者 qdrant6a03d0ce8f55無授權條款收錄於 2026年10月8日更新於 2026年10月8日

Diagnoses Qdrant search quality issues. Use when someone reports 'results are bad', 'wrong results', 'not relevant results', 'missing matches', 'recall is low', 'approximate search worse than exact', 'which embedding model', 'quality dropped after quantization', 'how to measure retrieval quality', 'build a golden set', 'ground truth dataset', or 'how to score recall@k'. Also use when search quality degrades without obvious changes.

AI 產生的概覽

診斷 Qdrant 向量搜尋品質問題,並指引召回率量測與調校。

功能
此技能提供一套 Qdrant 搜尋結果不佳的診斷流程,以精確 KNN 作為基準真值,並與近似 HNSW 搜尋進行比較。內容涵蓋定位原因,例如嵌入模型選擇、量化、過嚴的篩選條件與 HNSW 參數,並說明如何建立帶標註的查詢集,以及計算 recall@k、MRR 或 NDCG。同時列出應避免的做法,例如尚未確認模型是否合適就調校,或使用二值量化卻不做重評分。
適用情境
當使用者反映搜尋結果不相關或缺少預期結果、召回率偏低、近似搜尋效果不如精確搜尋,或量化等變更後品質下降時使用。也適合需要衡量檢索品質、建立黃金集,或以檢索指標作為發布門檻的情境。
執行需求
僅為說明性內容,不含指令碼。需要可存取的 Qdrant 部署;量測步驟還需要帶標註的查詢資料,以及 ranx 或 Ragas 等工具。部分參考資料為外部文件。

How to Diagnose Bad Search Quality

Before tuning, establish baselines. Use exact KNN as ground truth, compare against approximate HNSW. Target >95% recall@K for production.

Don't Know What's Wrong Yet

Use when: results are irrelevant or missing expected matches and you need to isolate the cause.

  • For a no-code quick check, use the Web UI's ANN Recall tab to compare approximate vs exact recall@k Web UI ANN Recall
  • For the same comparison in code (CI gating, regression tests), run each query twice — once approximate, once with exact=true — and compute recall@k from the overlap ANN recall in CI
  • Exact search bad = model or search pipeline problem. Exact good, approximate bad = tune HNSW.
  • Check if quantization degrades quality (compare with and without)
  • Check if filters are too restrictive (then you might need to use ACORN)
  • If duplicate results from chunked documents, use Grouping API to deduplicate Grouping

Payload filtering and sparse vector search are different things. Metadata (dates, categories, tags) goes in payload for filtering. Text content goes in sparse vectors for search.

Approximate Search Worse Than Exact

Use when: exact search returns good results but HNSW approximation misses them.

Binary quantization requires rescore. Without it, quality loss is severe. Use oversampling (3-5x minimum for binary) to recover recall. Always test quantization impact on your data before production. Quantization

Wrong Embedding Model

Use when: exact search also returns bad results.

Check Qdrant team recommendations on how to choose an embedding model.

Test top 3 MTEB models on 100-1000 sample queries Hosted Qdrant inference. Score them against a labeled set to compare apples to apples Measuring Retrieval Relevance.

Unoptimized Search Pipeline

Use when: exact search also returns bad results and model choice is confirmed by user.

Optimize search according to advanced search-strategies skill.

Need a Labeled Baseline to Score Recall, MRR, or NDCG

Use when: user has no golden set, asks "how do I know if my search is good?", or needs to gate releases on a retrieval metric.

  • Build a labeled query set — human, log-based, or LLM-synthetic — and score retrieval with ranx Measuring Retrieval Relevance
  • Pick the metric by usage: Recall@k for RAG, MRR/Hits@1 for single-answer, NDCG@k for re-ranking Choosing the metric
  • For full RAG pipelines, also score generation with Ragas and use the retrieval-vs-generation 2x2 to isolate regressions Pipeline Output Quality
  • Gate CI on a per-metric threshold to catch regressions from embedding-model swaps, prompt changes, or index config changes

What NOT to Do

  • Tune Qdrant before verifying the model is right for the task (most quality issues are model issues)
  • Use binary quantization without rescore (severe quality loss)
  • Set hnsw_ef lower than results requested (guaranteed bad recall)
  • Skip payload indexes on filtered fields then blame quality (HNSW can't traverse filtered-out nodes, and filterable HNSW is built only if payload indexes were set up prior)
  • Deploy without baseline recall or other search relevance metrics (no way to measure regressions)
  • Confuse payload filtering with sparse vector search (different things, different config)

來源與署名

來源:qdrant/skills位於skills/qdrant-search-quality/diagnosis提交6a03d0c

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架