Vector Indexes: Flat, IVF and HNSW

Comparing a query with every stored vector is exact but cannot scale to millions. Approximate nearest-neighbour indexes trade a little recall for a lot of speed: IVF searches only the closest clusters, HNSW walks a layered graph. This chapter explains how each works and which settings control the speed–recall trade-off.

Advanced RAG Masterclass

Sign up free to read the rest of this lesson