Interpret results
Read a TuningPlan's expected metrics and decision trace, then verify them against real searches with stats() and explain=True.
Read a tuning result in two parts. First, what did the tuner predict, and why? — that lives in the TuningPlan. Second, did the applied configuration deliver? — confirm that against real searches. Never trust the prediction alone.
Read what the tuner predicted
plan.expected
The expected dict is the tuner's forecast for the plan it chose. Typical keys:
p50
Predicted median query latency (ms).
Your typical case.
p95
Predicted 95th-percentile latency (ms).
Your tail — what interactive users feel.
recall_at_k
Predicted recall at the search top_k.
Should be at or above plan.target_recall.
fallback_rate
Share of queries expected to fall back to exact search.
High values mean many partitions sit below exact_crossover_rows and are still brute-forced.
plan = col.tune(dry_run=True)
print(plan.target_recall) # the goal, e.g. 0.98
print(plan.expected["recall_at_k"]) # the prediction, e.g. 0.981
print(plan.expected["p95"]) # e.g. 4.3 (ms)
print(plan.expected["fallback_rate"])plan.decision_trace
decision_trace is an ordered list of readable steps showing how the tuner reached the plan — the statistics it read, the constraints it honored, and the tradeoff it settled on. Read it top to bottom when a plan surprises you.
for step in plan.decision_trace:
print(step)plan.constraints records the bounds the tuner had to respect (latency, recall, memory). If expected looks worse than you hoped, the constraints usually explain why.
Verify against reality
Predictions come from a model. Confirm them on your machine, with your data.
Check the applied configuration
After applying and saving, stats() reflects the live IVF and recall settings.
Make sense of the numbers
Recall below target. Measured overlap under
target_recallmeans the tuner gave up more recall than you want. Re-run with a higher recall objective or raisetarget_recall; expect latency to rise with it.Latency higher than
expected. Predictions assume warm indexes and representative queries. First queries afterapply_tuningrun colder; measure the steady state.fallback_ratenear 1.0. Most partitions sit belowexact_crossover_rowsand are already searched exactly, so tuning has little to do. This usually means the collection is not yet big enough to need it.p95far abovep50. A heavy tail usually points at a few very large partitions. A finer partition key (see Partitions & scope keys) can flatten it.
Next steps
Last updated
Was this helpful?