Qdrant Search Quality Diagnosis
QdrantOfficialPublished by Qdrant
- Skill
- Guidelines
- Software development
- Apache-2.0
- No issues found
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured methodology for diagnosing and fixing search quality regressions in Qdrant. It distinguishes between retrieval relevance issues (model or data problems) and index performance issues (approximate search configuration). It emphasizes the necessity of establishing a labeled ground truth dataset to validate improvements and avoid noise, while offering specific troubleshooting paths for embedding model selection, HNSW index tuning, quantization impacts, and pipeline optimization.
What it does
- Provides a diagnostic workflow to isolate search quality issues.
- Guides the creation of labeled query sets to measure retrieval performance.
- Offers specific tuning parameters for HNSW index optimization.
- Explains how to validate embedding model suitability for specific data domains.
- Outlines best practices for quantization and rescoring to maintain recall.
- Identifies common pitfalls in search pipeline configuration.
When to use it
- When users report irrelevant, missing, or poor search results.
- When approximate search performance is significantly worse than exact search.
- When evaluating whether to fine-tune an embedding model.
- When search quality degrades after applying quantization.
- When establishing a baseline for search relevance in a production pipeline.
Advantages
- Separates index-level issues from model-level issues.
- Promotes data-driven decision making using metrics like Recall@k and NDCG.
- Prevents common configuration errors like using binary quantization without rescore.
- Provides clear steps for validating improvements against held-out queries.
Usage examples
- “My search results are not relevant. How do I start diagnosing this?”
- The agent will guide you to establish a labeled query set and compare exact vs. approximate search to isolate whether the issue lies in the embedding model or the HNSW index configuration.
- “How do I know if my HNSW index is configured correctly for high recall?”
- The agent will explain how to test recall@k, adjust hnsw_ef, ef_construct, and m parameters, and verify if oversampling is needed for your specific quantization settings.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/qdrant/qdrant-search-quality-diagnosis/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip qdrant-search-quality-diagnosis.zip -d .agents/skills
Documentation by Qdrant
How to Diagnose Bad Search Quality
Before diagnosing or evaluating search quality, establish two different ground truths: a labeled query set measures whether the results are the right ones; exact KNN measures whether ANN finds what brute force would (no labels needed). The first diagnoses relevance, the second diagnoses the index.
Need a Labeled Baseline to Score Quality or Validate a Gain
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. Every fix in the sections below should be validated this way.
Pick the metric by usage:
Recall@kfor RAG,MRR/Hits@1for single-answer,NDCG@kfor re-ranking Choosing the metricBuild a labeled query set (human, log-based, or LLM-synthetic) and score retrieval with
ranxMeasuring Retrieval RelevanceWhen tuning and evaluating search quality, set a minimum target gain, then make sure your labeled query set is large enough to measure it reliably. Quantify the uncertainty around a measured gain with a confidence interval (e.g. bootstrap the per-query gains, 95%): if it includes zero, the improvement is inconclusive and may be due to query-to-query variation. Adding labeled queries narrows the interval; how many you need depends on the size of the gain you are targeting and on query-to-query variation, not on collection size Before tuning a collection
If you use the labeled queries to tune or select a configuration, evaluate the final choice on held-out queries. A gain that doesn't survive the held-out evaluation isn't reliable evidence of an improvement.
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
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@kWeb UI ANN RecallFor the same comparison in code (CI gating, regression tests), run each query twice: once approximate, once with
exact=true. Computerecall@kfrom the overlap ANN recall in CITarget >95%
recall@kin production. Exact search bad = model, data, or search pipeline problem. Exact good, approximate bad = tune HNSW.Match the embedding model to your data: the context window should fit your chunk length with room for special tokens, the model must cover every language in your corpus, and its training domain should resemble yours (e.g. a code-trained model for code) How to choose an embedding model
Make sure documents are properly chunked; splitting chunks mid-sentence alone can drop quality by 30-40%
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 ranked text search are different things. Metadata (dates, categories, tags) goes in payload for filtering. To rank text content, on Qdrant 1.20 or newer use BM25 on a full-text index with scoring enabled (queried with a text query); on older versions, or for learned sparse models, use sparse vectors. A full-text index without scoring only filters.
Approximate Search Worse Than Exact
Use when: exact search returns good results but HNSW approximation misses them.
hnsw_efcontrols ANN search breadth; increase it while recall is still climbing, stop at the lowest value that hits your recall target inside your latency budget Search params Raisehnsw_efonly when recall is still climbingIncrease
ef_construct(200+ for high quality) HNSW configIncrease
m(16 default, 32 for high recall) HNSW configEnable oversampling + rescore with quantization Search with quantization
ACORN for filtered queries (v1.16+) ACORN
Binary quantization requires rescore. Without it, quality loss is severe. Use oversampling to recover recall: the docs report 0.98 recall with 2x oversampling on 4096-dimensional and 4x on 1536-dimensional embeddings, so start around 2-4x and tune on your data. 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.
If your data is strongly hierarchical (taxonomies, product catalogs, part-whole relationships), consider hyperbolic (Poincaré) embeddings. They capture tree structure in far fewer dimensions than flat ones. In Qdrant, use Euclidean HNSW to pull a candidate set from the original Poincaré coordinates, then a Formula Query to rescore with the real hyperbolic distance. How to serve hyperbolic embeddings with Qdrant.
Consider fine-tuning an embedding model for your specific use case only after trying better-suited models and retrieval/pipeline tuning and confirming that the embedding model remains the bottleneck. Fine-tuning is most useful when general-purpose embeddings fail to capture important domain- or task-specific distinctions and you have good labeled query-document pairs. Fine-tuning requires re-embedding and re-indexing the collection Model migration.
Unoptimized Search Pipeline
Use when: exact search also returns bad results and model choice is confirmed by user.
Optimize search according to the advanced search-strategies skill
Check candidate depth: if your retrieval pipeline includes a first-stage retriever that feeds a reranker or fusion stage, test whether increasing the prefetch limit improves your quality metric. A downstream ranker cannot recover relevant documents that never enter its candidate set. For hybrid search, start around
limit=100-200and test larger values against your labeled queries Candidate depth
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_eflower 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)
Compare two configs on a query set too small to resolve the difference between them (the result is noise, not evidence)
Confuse payload filtering with ranked text search (different things, different config)
Files
- ATTRIBUTION.mdAdded by AutoGineer874 B
- LICENSELicence file added by AutoGineer11.1 KiB
- SKILL.md9.3 KiB
ATTRIBUTION.md
Attribution
This folder is an unmodified copy of the Agent Skill "qdrant-search-quality-diagnosis", distributed by AutoGineer (https://autogineer.com/agent-skills).
Commit: 9f55f6a7fb225932da70c6e7dcd671c7e9a8929a
Published by: Qdrant (https://github.com/qdrant)
Publisher: Qdrant (https://github.com/qdrant)
Licence: Apache License 2.0 (https://github.com/qdrant/skills/blob/9f55f6a7fb225932da70c6e7dcd671c7e9a8929a/LICENSE)
Licence evidence: repository licence LICENSE
Retrieved: 2026-11-07
The skill's own files are unmodified copies. AutoGineer is not affiliated with or endorsed by the author or the publisher.
Files added by AutoGineer
ATTRIBUTION.md: this file, written by AutoGineer
LICENSE: copied from LICENSE
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Python
Security
No issues found by our static scan· No issues found
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Qdrant
- Publisher
- Qdrant (Official)
- Source
- qdrant/skills · skills/qdrant-search-quality/diagnosis · commit 9f55f6a
- Licence
- Apache License 2.0 (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Qdrant.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download qdrant-search-quality-diagnosis.zip