Apply & save
Apply a TuningPlan with col.apply_tuning() to configure recall, crossover, and IVF, then persist the result with col.save().
Applying a plan and persisting it are two steps. col.apply_tuning(plan) writes the plan's settings onto the live collection; col.save() makes them durable on disk. A plan is only a description — there is no TuningPlan.save.
Before you start
You have a
TuningPlanfrom running a pass (plan = col.tune(dry_run=True)).The signed runtime is installed and verified.
What each call does
col.apply_tuning(plan)
apply_tuning(plan) -> dict
Sets default_target_recall and the exact-search crossover, builds or reuses the per-partition IVF, sets nprobe, and returns the collection's stats().
col.save()
save() -> str
Commits the collection to disk and returns its directory. Persists default_target_recall and applied_tuner (alongside name, dim, dtype, key name, filter columns, id map, and embedder profile).
Apply, then save
Expected result
After apply_tuning, the collection searches with the plan's recall target and IVF layout: large partitions use the approximate path, partitions below the crossover stay exact. After save(), reopening restores default_target_recall and applied_tuner from collection.json — no re-tuning needed.
notes
48213
./store/notesFrom now on, every col.search(...) that does not pass its own target_recall= aims for the applied default_target_recall. Override per query, for example col.search(vector, target_recall=0.995).
Next steps
Last updated
Was this helpful?