Skip to content
AgenticAIWiki

Walking an HNSW graph

Full screen
Layer 0: every vector, short linksBDEGHEach vector is a node. Every node is in layer 0.

Swipe to change step

Step 1 of 8. Comparing a query with every vector is exact but slow at scale. An approximate index narrows the search. In HNSW, each vector becomes a node linked to its near neighbours. B. D. E. G. H. arrow from B to D. arrow from D to E. arrow from E to G. arrow from G to H.

In this chapter

  1. 22.1Exact vs approximate nearest neighbour search4 min read
  2. 22.2HNSW graphs5 min read
  3. 22.3IVF and product quantization5 min read
  4. 22.4Filtering, hybrid search and metadata4 min read
  5. 22.5Choosing a vector store and sizing it4 min read
  6. 22.6Comparing vector stores and quantization options6 min read
  7. 22.7Namespaces and tenant isolation5 min read
  8. 22.8Sharding, replication and scaling to billions of vectors8 min read

Chapter check

Already know this? Score 80% or more and you can skip ahead. Each attempt draws 4 questions from 12.

Loading check…