Sam Babichenko

Reading notes

Vector search

Searching billions of passages forces a split between offline indexing and query-time scoring. Single-vector search precomputes one vector per passage and runs fast, but it compresses every passage before the query arrives. Late interaction keeps one contextual vector per token offline and scores passages at query time by summing each query token's closest passage match.

Storing a vector for every token moves the bottleneck to index memory and clustering cost. Quantized residuals around k-means centroids shrink the index up to tenfold, and scoring candidates on centroids alone cuts latency before decompression. Building those centroids across billions of vectors then replaces twenty-five Lloyd passes with two or three mini-batch moving-average passes guided by fitted scaling laws.