IVF Vector Index (Inverted File)

hard
Unit 26 · Vector Search0/0 to milestone

Exact nearest-neighbour search compares the query with every vector. An IVF index (as in FAISS) first clusters the vectors into n_lists buckets, then at query time only searches the n_probe buckets whose centroids are closest.

Pro problem

Unlock this and every premium problem across all tracks — plus hidden-test grading, advanced AI engineering modules and new content every week.

Start 7-day free trial
solution.py · Python 3.13
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
IVF Vector Index (Inverted File) · TechGradify