Measuring Qdrant search recall

Measuring Qdrant search recall means comparing approximate results against an exact baseline on labeled queries, so you know quantization and HNSW changes still return the right answers.

On this page

Why teams measure Qdrant search recall before and after tuning

Teams that have tuned HNSW, changed quantization or re-embedded their data need evidence that search still returns the right results. Recall at k is the measure that answers this: for a set of labeled test queries, it is the share of the true top k results (computed by exact search over the same data) that the approximate search also returns. Approximate nearest neighbor search trades exactness for speed, so it can miss relevant vectors that an exhaustive scan would find. Lowering ef at query time, using a smaller m or ef_construct at build time, or compressing vectors with scalar, binary or product quantization all widen that gap. Latency and memory numbers can look fine while the wrong documents quietly drop out of the top results, which is why speed tests alone do not prove a configuration is correct.

The check is needed at specific points: after changing HNSW parameters, after enabling or changing quantization and rescoring, after switching to a new embedding model, and after a large bulk load, when indexing thresholds and segment layout have changed. It is also useful before a go-live that follows a migration with the Qdrant Migration Tool, because the source system's ranking may not match Qdrant's. Qdrant's embedding model migration tutorial recommends comparing Recall@10, MRR and nDCG@10 on the same labeled queries, so that each configuration is judged by the same yardstick. Confirm with your search owners which queries and relevance labels count as the ground truth before you start, since the measurement is only as good as those labels.

Averages hide the problems that matter most. The same tutorial advises reviewing the individual queries that got worse, not just the summary numbers, because a small average drop can hide a whole class of important queries, such as filtered searches or rare terms, failing completely. Record the exact collection settings, quantization configuration and embedding model version next to each result so that a later regression can be traced to one change. Ask your team to agree on a pass threshold for each metric before the test runs, and to re-run the same query set whenever the collection, index settings or embedding model changes.

How to build an exact search baseline and labeled query set

This sequence produces a labeled query set that reflects production filters and payloads, plus exact search ground truth and a recall at k measurement for each approximate configuration you plan to run. Each step ends with an artifact you can review before tuning begins.

  1. Export representative queries from production logs

    The team that owns the search application pulls a sample of real user queries from application logs, search traces or support tickets, covering the common intents and the rare ones that matter most to the business. Record the query text or embedding input, the filters the application sends with each query (tenant, date range, category, access scope) and the collection and vector name it targets. If production traffic is not yet available, build the sample from known user journeys and label it as representative in the documentation. The step is done when the sample includes the filter combinations production actually uses, not only unfiltered queries.

  2. Label relevant results for each query

    Subject-matter reviewers, ideally people who would judge the answers in production, mark which documents are relevant to each query and, where useful, grade them. Reviewers see the payload fields the application shows users, so judgments reflect what a user would actually see. Keep the labeling guide in version control so later reviewers apply the same rules. The step closes with a labeled file that maps each query ID to its relevant point IDs, with the reviewer and date recorded for every judgment. Expect disagreements; resolve them and note the rule that settles each one.

  3. Apply production filters and payload scope to the query set

    Attach each query's production filter to its record and confirm the labeled relevant results satisfy that filter. A result that is relevant but excluded by the tenant or access filter should not count as a miss, and a result that passes the filter but was never shown to users should be reviewed. Check that the payload fields used in filters exist on the points you labeled. The step is complete when a script can replay every query with its exact filter and returns the labeled IDs that remain in scope for that query.

  4. Compute exact search ground truth

    Run each labeled query against the collection with exact search enabled, which compares the query against every stored vector instead of using the HNSW graph, and with the same filter applied. Store the top results for each query with their IDs and scores as the ground truth. Run this against a snapshot or a copy of the collection where possible, so the baseline does not shift while the team tunes. The step is done when the ground truth file lists, for each query, the exact top results and confirms that each labeled relevant result that falls in scope appears among the candidates you will compare against.

  5. Run approximate search at each candidate setting

    Execute the same queries, with the same filters and limits, against the approximate configuration you want to test, changing one setting at a time such as HNSW ef, quantization or rescoring. Record the returned IDs and scores for each query and setting pair. Keep the collection version, Qdrant release and index parameters in the run log so results can be reproduced. The step is complete when every candidate setting has a full result set for every query in the labeled file.

  6. Calculate recall at k for each query and setting

    Compare each approximate result list with the exact ground truth for the same query and compute recall at k, the share of the exact top k results that the approximate search also returned. Report the per-query values alongside the average, because a stable average can hide queries that fell sharply. Also compute the other metrics you agreed on, such as MRR or nDCG at 10 against the labeled judgments, using the same query set for every setting. The step ends with a table that shows recall at k, the metric values and the latency measured for each setting, so the team can compare settings on the same evidence.

  7. Review the worst-performing queries before accepting a setting

    Sort the queries by how far recall dropped relative to the exact baseline and read the lowest ones by hand. Look for patterns such as restrictive filters, rare terms, long payloads or specific tenants, because averages can pass a setting that fails a critical group of users. Record the findings and the decision for each setting, including whether a change to HNSW, payload indexing or rescoring is needed before the setting is approved. The step closes with a signed-off decision record that names the accepted setting, the query set version and the date it was tested, which becomes the reference for re-runs after changes.

Which recall metrics fit which question

This table compares Recall@10, MRR and nDCG@10 by what each one measures, when it fits, and what it hides. Read the metrics together, then check the individual queries that moved, because an average can stay flat while important queries get worse.

MetricWhat it showsWhen it fitsWhat averages hide
Recall@10Share of the known relevant results that appear in the top 10 returnedChecking that approximate search and quantization still surface the candidates a downstream step needsPosition within the top 10, and whether one strong result is buried among weaker ones
MRRReciprocal rank of the first relevant result, averaged across queriesSingle-answer lookups where the user needs one correct hit near the topAny relevant results after the first one, so it says little about list quality
nDCG@10Graded ranking quality in the top 10, rewarding relevant results that sit higherQueries with several relevant results at different relevance levels, or when order matters to the userRequires graded relevance labels, so weak labels produce misleading scores
Exact search baselineThe ground truth each metric is compared against, from full-precision search without HNSW or quantizationEvery comparison, since approximate results only mean something against an exact referenceNothing on its own, because it does not reflect the production latency or memory settings
Per-query deltasHow each labeled query changed between the old and new configurationAfter any change to HNSW, quantization, embedding model or rescoring settingsOnly the individual queries that moved, which averages blend away
Worst-query reviewThe queries that lost the most recall or rank after a change, with their top results side by sideBefore approving a change, and when users report a specific failurePatterns across a small share of queries, such as filtered or rare-term searches

What to compare when quantization or HNSW settings change

Every settings change should be measured against a fixed comparison matrix, not a single recall number. The four axes that matter are exact search versus approximate search, quantized versus unquantized vectors, rescoring and oversampling on or off, and filtered versus unfiltered queries. Run the same labeled query set through each cell that your change touches, and keep the exact-search baseline (a full scan with no quantization) as the reference column. If you change m, ef_construct or the search-time ef value, compare against the unchanged collection on the same data, so that a difference can be traced to one setting rather than to a reindex or a data drift.

Filtered queries deserve their own rows. A setting that looks neutral on unfiltered search can lower recall when a payload filter is restrictive, because the filter changes which candidates HNSW can reach. Confirm that payload indexes exist for every filtered field before you measure, since the Qdrant documentation ties filterable HNSW to indexes created before ingestion. Record whether rescoring and oversampling are enabled for each run, because quantized scores are only an estimate until they are rescored. Also record the quantization type and the exact search parameters used, so each result row can be reproduced later.

Averages hide regressions. For each run, export the per-query recall at k and list the queries that got worse than the baseline, then look at the settings that produced each drop. Qdrant's embedding model migration tutorial makes the same point: review queries that got worse, not only the mean, and compare Recall@10, MRR and nDCG@10 on the same labeled queries. Group the regressions by pattern, such as filtered queries on one payload field, long queries, or one product category, and then decide whether the cause is the quantization type, the search ef, or the missing rescoring. Set the acceptance thresholds in writing before the run, because no universal recall target applies to every workload.

Setting up the recall check on your Qdrant collection

This sequence turns recall from a one-time impression into a repeatable measurement: a frozen collection, a labeled query set, an exact baseline and a recorded decision. Each step leaves an artifact that a reviewer or auditor can re-open later.

  1. Freeze the collection and its versions

    The platform engineer records the Qdrant server version, the client SDK version, the embedding model name and revision, the collection name, the vector dimensions and datatype, and the HNSW and quantization settings in effect. They also take a snapshot of the collection so the data under test can be restored later. The step is done when a version record file exists in the team's change system and the snapshot is listed as completed. Without this record, a later drop in recall cannot be traced to a cause.

  2. Build the labeled query set

    The search owner, with a domain expert, writes a set of representative queries and marks the relevant documents for each one, using the same document IDs stored in the collection. The set should cover the query types users actually send, including the filtered queries that matter for your application. Ask the domain expert to review the labels independently before the set is locked. The set is done when it is versioned, has a fixed size, and every query has at least one labeled relevant result.

  3. Run exact baseline queries

    The engineer runs every labeled query against the collection with exact search enabled, which compares each query vector against all stored vectors instead of following the HNSW graph. This gives the ground-truth top results that approximate search is measured against. The engineer saves the ranked IDs and scores per query to a file. The step is done when the baseline output covers every query in the set and a spot check of a few queries confirms the exact results make sense.

  4. Run candidate search settings

    The engineer runs the same queries with each candidate configuration, such as a different search ef value, quantization with rescoring, or oversampling. Only one setting should change per run so the effect is attributable. Each run stores the exact parameters it used. The step is done when every candidate has produced results for the full query set, and the parameters for each run match the version record from the first step.

  5. Compute recall and ranking metrics

    The engineer compares each candidate's top results with the exact baseline to compute Recall@k, and computes rank-aware metrics such as MRR and nDCG@10 against the labels. Qdrant's embedding model migration tutorial recommends this combination when comparing configurations on the same labeled queries. The step is done when each candidate has a metrics table with the same k values and the calculation script is saved next to the results.

  6. Review the worst-performing queries

    The search owner sorts queries by how much worse they performed against the baseline and reads the lowest-scoring ones by hand, alongside their expected and returned documents. Averages can hide a small group of queries that fail badly, such as queries with rare terms or restrictive filters. The reviewer records a short cause for each failure, such as a missing payload index or a quantization loss. The step is done when the worst queries have a written cause or an open ticket attached.

  7. Record results and decide

    The team writes a short decision record that names the chosen settings, the metrics for the chosen and rejected candidates, the worst-query findings, and the approver. The record and the result files are stored in a version-controlled repository or document system with restricted write access and retention that matches your audit policy. Confirm retention and access rules with your compliance team. The step is done when the decision is approved and the stored files can be opened by someone who was not involved in the run.

  8. Schedule the re-run triggers

    The team defines the events that require repeating the check, such as a Qdrant version upgrade, a change to the embedding model, a new quantization or HNSW setting, a large data load, or a change in the query mix. Each trigger is added to the change process and linked to the labeled set version. The step is done when the trigger list is documented and the owner of each trigger is named. Confirm with your upgrade plan how often routine re-runs should happen.

How the recall check flows from query set to decision

The check starts with a labeled query set that is sent to the same Qdrant collection twice: once with exact search as the baseline and once with the approximate settings you plan to ship. Both result lists feed the metric calculation, which compares them per query. Review the queries that got worse, not just the average, before deciding to accept the settings, retune HNSW or quantization, or re-embed the collection.

Labeled queries run through exact and approximate search, then compared per query.

When to re-run the recall check

Recall is not a one-time measurement. Each change below moves the path a query takes through the index or changes which vectors the index holds, so the same labeled queries can return different top results. Re-run the same baseline after each trigger and compare per-query results, not just averages.

HNSW parameter changes

Changing m, ef_construct or the search ef alters how the graph connects vectors and how far the search explores. Lowering ef to cut latency is the most common change that quietly reduces recall. Re-run the full labeled set at the new values and compare Recall@10 against the exact search baseline for the same queries before the change reaches production traffic.

Migration tutorial

Quantization method changes

Moving from scalar to binary, TurboQuant or product quantization changes the approximate distances used during candidate selection. Rescoring and oversampling can recover some loss, but only a measured run shows how much. Re-check with rescoring enabled and disabled, and review the queries that got worse, since compressed scores often fail on the same subset of queries.

New embedding model or re-embedding

A new embedding model produces a different vector space, so old relevance judgments no longer describe the new neighbors. Qdrant's embedding migration guidance recommends comparing Recall@10, MRR and nDCG@10 on the same labeled queries. Treat this as a new baseline: rebuild the labeled set against the new model where the old judgments no longer apply.

Embedding migration tutorial

Major Qdrant version upgrade

A new release can change default index behavior, optimizer timing and quantization handling. Re-run the check on a copy of the production collection, using the upgraded server and the same client SDK version you plan to ship. Confirm that the results match before the cutover, because a clean upgrade does not prove that recall held.

Large data loads

Bulk loads that defer HNSW indexing or add a large share of new vectors change which segments are searchable at a given moment. Confirm that indexing has finished, then measure recall against the exact baseline. Results taken mid-load can understate recall, and results taken after a load can reveal ingestion gaps such as skipped batches.

Payload index or filter changes

Adding, removing or changing a payload index changes how filtered queries are resolved, and restrictive filters can shift which candidates the index reaches. Re-run the labeled queries that carry filters, since unfiltered recall can look fine while filtered results drift. Confirm the index exists before ingestion or force a rebuild when the index was added later.

Questions teams ask before measuring Qdrant recall

What drives the cost of measuring Qdrant search recall?

The cost is mostly labor, and it scales with three things: how many labeled queries you need, how large the collection is, and how many configurations you test. Labeling is the largest item, because someone has to decide which documents are relevant to each query. Exact search baselines add compute time on the collection, and each new quantization or HNSW setting means another full run. The engine itself is free to self-host under the Apache-2.0 license, so the paid items are your people's time and any infrastructure you use for test runs. Ask any partner for a quote that splits labeling, harness build, run time and re-run effort, and states which parts are one-time and which recur.

How many labeled queries does a recall test need?

There is no fixed number that fits every collection, so the answer depends on the variety of your real traffic. Choose queries that cover your common intents, your rare but important cases, and the filtered searches your application runs. Qdrant's embedding model migration tutorial recommends comparing Recall@10, MRR and nDCG@10 on the same labeled queries, and reviewing the individual queries that got worse, not only the averages. Confirm the size of the set with your domain experts and with the metrics you plan to report, since a small set can hide regressions in the tail.

How long does it take to set up a Qdrant recall measurement?

Setup time is driven by how fast you can produce labels, build a harness that runs exact and approximate search side by side, and agree on metrics and pass criteria. A team with ready domain experts and a collection it already queries can usually move faster than one that must first collect representative queries. The first run is the slowest, because it creates the exact baseline and the labeled set. Later runs reuse both. Ask for a written timeline that separates the labeling stage from the engineering stage, since the labeling stage is often the one that stretches.

What does the work need from our team?

Two groups of people are needed. Domain experts must judge which results are relevant to each query, because automated labels can encode the same bias as the search being tested. Qdrant operators must give the test harness access to the collection, the exact search path, and the HNSW, quantization and payload index settings under test. Security review should approve any copy of production data used for labels or test queries, and that copy should follow your data handling rules. Plan these time commitments before the work starts so that labeling does not stall on a busy subject expert.

Can our own team measure Qdrant recall without a partner?

Yes, if you have engineers who can query Qdrant, people who can judge relevance, and time to repeat the run after each change. The method is not secret: run an exact search baseline, run the approximate configuration on the same queries, compute recall at k, and review the queries that dropped. A partner adds most value when you need a repeatable harness, a defensible labeled set, or a review of results before a release. Decide which of these you need in-house and which you want to buy, and confirm your team can keep the check running after the first report.

When should we re-run the recall check?

Re-run the check whenever something that affects the results changes: the embedding model, the quantization method or its rescoring settings, HNSW parameters, payload indexes, the collection's data distribution, or the Qdrant version. Each re-run repeats labeling only for new query types, so the cost of later runs is usually lower than the first. Ask a partner to define the triggers in writing and to say who owns the re-run after handover, because an untracked configuration change is the most common way recall drifts without anyone noticing.

Does DeployOpen handle the recall measurement as a fixed-scope engagement?

Most DeployOpen engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. For a recall measurement, that scope would normally name the query set, the metrics, the configurations under test, the exact baseline method and the handover format. DeployOpen does not publish a price list, so a quote follows from that written scope. Ongoing re-runs after upgrades or configuration changes can be covered by a retainer if you need them. Ask for the scope document before you compare offers, and check that it lists who labels the queries and who owns the labeled set afterward.

How DeployOpen scopes and delivers a Qdrant recall assessment

DeployOpen agrees the scope of a recall assessment in writing before any test runs. The written scope names the Qdrant version and deployment path in use (self-hosted single node or distributed cluster), the collections and vector fields under test, the search settings and quantization configurations to compare, the labeled query set and its owner, and the metrics that will decide pass or fail. It also states who on your side supplies collection exports, read-only API access in a test environment and sign-off on the labels. Ask for the scope to name the Qdrant release you run, because the check should be repeated after any upgrade to a new minor version, and the quote follows from that written scope rather than from a list price.

Deliverables follow the method in this topic. DeployOpen designs the query set with your domain experts, runs exact search as the baseline, runs each approximate configuration against the same queries, and produces a metric report covering Recall@k, MRR and nDCG@10 where your labels support them. The report includes a worst-query review, listing the queries whose results got worse and the likely cause for each, such as a filter that missed an index or a quantization step that dropped a close neighbor. Each finding comes with a recommended setting change and a retest on the same queries. A re-run plan then sets out the triggers for repeating the check, such as a model or embedding change, a quantization change, a major data load or a version upgrade.

Ongoing checks can be covered by a DeployOpen retainer if your team wants recall measured after each release or data change without re-scoping the work. The retainer scope should state how often the query set is refreshed, which collections are covered, who maintains the labels and how regressions are reported and retested. Ask whether the labeled queries and baseline scripts will be handed over to your team at the end of the engagement, so the check can run in your own pipeline. DeployOpen prepares this evidence for your review and for your auditors, but it does not issue audit reports or certifications.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.