Ground Truth.
AI, checked against the source.

← All topics

hnsw

Everything on Ground Truth tagged “hnsw” — 1 item.

Approximate nearest neighbor search: how a vector database finds a needle in a billion haystacks Lesson

Approximate nearest neighbor search is the algorithm that makes vector search fast enough to be useful - it finds the closest matches to a query embedding without comparing it against every item in the database, trading a small, tunable amount of accuracy for speedups of a hundred times or more. Every vector database and every retrieval-augmented system runs on it, and the accuracy it gives up is the hidden knob behind a lot of 'the retrieval just missed it' bugs.