Retrieval-Augmented Generation (RAG) and semantic intelligence require querying billions of dense floating-point embedding vectors in milliseconds. Traditional B-Tree and relational indexes fail in high-dimensional vector spaces due to the curse of dimensionality. This module teaches the algorithmic and systems architecture behind modern vector databases: metric spaces, approximate nearest neighbor graphs, vector quantization, and distributed hybrid query engines.
You will analyze the recall-versus-latency Pareto frontier of Hierarchical Navigable Small World (HNSW) graphs, Inverted File (IVF) Voronoi partitions, and DiskANN SSD-resident indexes, calculate exact memory savings from Scalar (SQ8), Binary, and Product Quantization (PQ) codebooks, and architect single-stage pre-filtered graph traversal for multi-tenant metadata isolation.