qdrant-search-quality-diagnosis
Skill254 starsChanged 8 months agoApache-2.0View on GitHub
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.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- github/awesome-copilotedited, first seen Sep 23, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- github/awesome-copilot★ 40k82% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- qdrant-clients-sdkSkill
- qdrant-deployment-optionsSkill
- qdrant-edgeSkill
- qdrant-hybrid-cloud-setupSkill
- qdrant-migration-toolSkill
- qdrant-model-migrationSkill
- qdrant-monitoring-debuggingSkill
- qdrant-monitoring-setupSkill
- qdrant-monitoringSkill
- qdrant-multitenancySkill
- qdrant-indexing-performance-optimizationSkill
- qdrant-memory-usage-optimizationSkill
- qdrant-search-speed-optimizationSkill
- qdrant-performance-optimizationSkill
- qdrant-minimize-latencySkill
- qdrant-scaling-data-volumeSkill
- qdrant-scaling-qpsSkill
- qdrant-scaling-query-volumeSkill
- qdrant-scalingSkill
- qdrant-search-strategiesSkill
- qdrant-search-qualitySkill
- qdrant-sizingSkill
- qdrant-version-upgradeSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 12 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Before tuning, establish baselines.
- Distinctive: line 12
Use when: results are irrelevant or missing expected matches and you need to isolate the cause.
- Distinctive: line 17
Check if quantization degrades quality (compare with and without)
- Distinctive: line 18
Check if filters are too restrictive (then you might need to use ACORN)
- Distinctive: line 19
If duplicate results from chunked documents, use Grouping API to deduplicate Grouping
- Distinctive: line 25
Use when: exact search returns good results but HNSW approximation misses them.
- Distinctive: line 37
Use when: exact search also returns bad results.
- Distinctive: line 39
Check Qdrant team recommendations on how to choose an embedding model.
- Distinctive: line 41
Test top 3 MTEB models on 100-1000 sample queries Hosted Qdrant inference.
- Distinctive: line 45
Use when: exact search also returns bad results and model choice is confirmed by user.
- Distinctive: line 51
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.
- Distinctive: line 61
Use binary quantization without rescore (severe quality loss)
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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@kWeb UI ANN Recall - For the same comparison in code (CI gating, regression tests), run each query twice — once approximate, once with
exact=true— and computerecall@kfrom 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.
- Increase
hnsw_efat query time Search params - Increase
ef_construct(200+ for high quality) HNSW config - Increase
m(16 default, 32 for high recall) HNSW config - Enable 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 (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
ranxMeasuring Retrieval Relevance - Pick the metric by usage:
Recall@kfor RAG,MRR/Hits@1for single-answer,NDCG@kfor 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_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)
- Confuse payload filtering with sparse vector search (different things, different config)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

