🔎Nearest Neighbor Search
Also known as k-Nearest Neighbor Search, k-NN Search, Vector Search
Finding the stored vectors closest to the one you ask with.
Think of it like
Think of it like you look on a map for the three homes near yours.
Example
Jack's app turns a question into a vector and asks for the 5 nearest neighbors among 20,000 product pages. Those 5 pages are the results.
Why it matters
It is the core step of every vector search. Everything else is about doing it faster or better.
Definition
Common mistake
Key takeaways
- 1Closest to the query. By a score.
- 2Top k. Like the best 5.
- 3Exact is slow at scale. Checks every vector.