FDEInterviews logo
🤖 Retrieval & Agents
Core

Approximate Nearest Neighbor (ANN)

Brute-force vector search is O(N*d) per query and falls apart at millions of vectors, so ANN trades a sliver of recall for orders-of-magnitude speed. The two dominant families are IVF (cluster then probe nearby cells) and HNSW (walk a navigable graph), with product quantization to shrink memory. The non-negotiable habit is measuring recall@k against a brute-force baseline.

a free account unlocks the core curriculum tier · no card
RELATED CONCEPTS
PRACTICE THIS IN REAL QUESTIONS