How inverted file (IVF) indexes use k-means centroids to partition vector space for fast coarse-to-fine similarity search, and how to tune nprobe.