CARD NEWS · Data & databases

HNSW · 4 cards

Four cards for social posts, teaching materials and presentations. Capture the screen or print to a PDF.

1/4
Data & databases

HNSW

HNSW (Hierarchical Navigable Small World) is a graph-based index for approximate nearest neighbor (ANN) search over vectors. It stores vectors in several layers of proximity graphs and starts each search in the sparse top layer, narrowing down as it moves to denser lower layers; the original paper reports logarithmic complexity scaling.[1] The balance between accuracy and speed is tuned mainly with M (connections per node), efConstruction (candidate list size while building) and ef / efSearch (candidate list size while searching).[1][5] HNSW works best when the graph and vectors sit in memory, so memory use is its main cost.[7]

2/4
In simple terms

An easy way to understand

The name describes the idea: a "small world" graph you can navigate, stacked in layers. Think of finding an address.

3/4
Where it is used

Who uses it, and when?

[3] Defaults depend on the Elasticsearch version and license. [3] It also documents bbq_disk as a default where available under the current license.

4/4
Learn more

ai.rookienote.com
/en/term/hnsw

RookieNote
← Read the full entry

Capture these cards or print them to a PDF.