HNSW
What is HNSW?
In one sentence: HNSW, or Hierarchical Navigable Small World, is a popular ANN method that organizes vectors into layered networks for fast searching.
Think of it like highways and local roads. The top layer has few long-distance links to jump close to the target quickly; lower layers have more local links to zoom in precisely.
What does HNSW look like?
Many vector databases use HNSW as their default index.
Why does HNSW matter?
It offers a great balance of speed and accuracy for vector search.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/hnsw/">HNSW, explained simply</a> (The AI Math Dictionary)