06. IVF Parameters

Chapter 6 of 18 · 20 min

IVF has three primary parameters to tune: number of clusters, nprobe, and whether to use quantization. Getting these wrong produces either slow queries or poor recall.

EXERCISE

Create a parameter sweep over nlist ∈ {100, 500, 1000, 5000} and nprobe ∈ {1, 5, 10, 20}. For each combination, record recall and latency. Identify the Pareto frontier—combinations where you can't improve recall without sacrificing latency.