Approximate nearest neighbour indexes
Comparing a question with ten million vectors takes billions of multiplications. Approximate indexes look at a few thousand instead, and still find almost all of the true nearest neighbours. You give up a little accuracy for a huge gain in speed, and you choose exactly how much with one setting.
In this lesson you'll learn to
- Explain why exact search gets too slow and what "approximate" gives up.
- Describe how an HNSW graph finds near neighbours by moving from coarse layers to fine ones.
- Tune the recall versus speed dial with search and build settings, and measure recall against exact search.
- Weigh an index's memory, build time and update costs, and know where IVF and quantisation fit.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.