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
Practise this in questions
Coding & DSAFind the k most similar items in a 10M-vector index without a hosted service. →hard · PremiumML Infrastructure & GPUsCapacity-plan 10B 768-dim embeddings: HNSW vs IVF-PQ storage, index, and RAM for sub-100ms. →hard · PremiumRAG & Agent System DesignThe customer's corpus grew from one million documents to ten million and retrieval p99 tripled. Your code did not change. Find out why. →hard · PremiumRAG & Agent System DesignAfter an index rebuild, a set of documents stopped appearing in any search result. Nothing errored and the count is right. Find them. →hard · PremiumLLM & GenAI FundamentalsWhat are embeddings, and how do they make semantic search work? →easy · FreeMachine Learning & Data ScienceWhat does cosine similarity actually measure, and why is it the default for comparing embeddings? →easy · Free with sign-in
