epochs

Learn · Module 05 · Tokens and embeddings · Lesson 3 of 4

Finding the nearest neighbours

Once everything is a vector, search becomes geometry: find the stored vectors closest to the question's vector.

4 minute read

In short
  • Vector search returns the stored vectors closest to the question's vector, usually the top k by cosine similarity.
  • Exact search checks everything; approximate search checks a small part using an index like HNSW or IVF.
  • Approximate search trades a little recall for a lot of speed.

This lesson is part of Pro

The first two lessons of every module are free. Pro opens every lesson and every project.

See Pro plansFrom ₹119 a month. No auto-renewal.