- Learn
- Part 4. RAG architectures
- Chapter 22
Vector database internals
8 lessons · 41 min
Builds on 4. Embeddings and semantic search, 21. Naive RAG
Walking an HNSW graph
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
- 22.1Exact vs approximate nearest neighbour search4 min read
- 22.2HNSW graphs5 min read
- 22.3IVF and product quantization5 min read
- 22.4Filtering, hybrid search and metadata4 min read
- 22.5Choosing a vector store and sizing it4 min read
- 22.6Comparing vector stores and quantization options6 min read
- 22.7Namespaces and tenant isolation5 min read
- 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…