Why tune
Why and when to tune a Telys collection — trading recall, latency, and memory as it grows past a few tens of thousands of rows.
Tune a collection when a partition grows too large to score every vector on every query. A fresh collection searches exactly: every live vector in the queried partition is scored, so recall is 100% and no index is needed. Tuning trades a small, measured amount of recall for much lower query latency once a partition is big.
A tuning pass leaves your data, embeddings, and result meaning unchanged. It changes only how a search finds them.
The three-way tradeoff
An approximate index balances three quantities. You cannot maximize all three; tuning picks a point on the curve.
Recall
Fraction of the true top-k that an approximate search actually returns.
Latency and memory rise.
Latency
Wall-clock time per query (reported as p50 / p95).
Recall or memory must give.
Memory
Resident footprint of the index structures.
You can afford more probes at a given recall.
Exact search gives perfect recall, but latency grows linearly with live rows in the partition. Tuning moves toward lower latency at a recall target you choose.
What a tuning pass actually sets
A pass produces a TuningPlan. Applying it configures three things:
For the IVF index itself, see Search internals (IVF).
When you actually need it
Reach for a tuning pass when:
A partition has grown past a few tens of thousands of rows and latency has crept up.
p95 latency matters (an interactive agent, a user-facing search box) and you can accept, say, 98% recall instead of 100%.
You want the engine to hold a recall target automatically as the partition grows, instead of re-picking nprobe by hand.
Skip it when the collection is small, when you are still iterating on embeddings, or when you already pass a per-query target_recall.
Partitioning keeps individual indexes small — a well-chosen partition key (see Partitions & scope keys) often defers tuning entirely. A partition_by list uses only its first element, so compose a compound scope with scope_key(...).
What tuning is not
Not re-embedding. Vector spaces and dimensions are unchanged.
Not a change to which documents are correct — only to how completely the approximate search recovers them.
Not required for correctness. Skip it and you keep exact search.
Next steps
Last updated
Was this helpful?