/tag
Semantic search and RAG rest on one deceptively simple operation: find the nearest vectors to a query. At a few thousand rows that's a boring loop; at a hundred million it's the whole ballgame. Here's what a vector index actually does inside — why brute force falls over, why HNSW's layered graph wins, and which three knobs decide your recall, latency, and RAM bill.