Embedding spaces and vector indexes 00:00:01 The neighbor the index missed The blue query arrow points straight right on Finn's drafting table. An exhaustive search finds the relevant passage. His faster index does not. He can change how broadly the index searches, but first he wants to reproduce the exact neighbor. Vector retrieval compares representations under a declared metric. The database adds indexing, persistence and metadata management around that calculation. Exact search establishes a reference ranking. approximate indexes trade effort and memory against the chance of recovering those neighbors. Use unit vectors. The query is one, zero. A candidate at zero point eight, zero point six also has length one. Their dot product is zero point eight, which is also the cosine here. 00:00:47 Move a query through vector space Use normalized vectors in the same encoder space. The intended reference passage has vector (0.8, 0.6), cosine 0.8 with this query. Run both methods over the same authorized corpus. If exact search finds P7, the approximate index’s search effort may be limiting recall. Retrieve text through the versioned ID map. Check document freshness separately from nearest-neighbor correctness. Both (1,0) and (0.8,0.6) have length one. Their dot product and cosine are 0.8. A zero vector has no defined cosine and needs explicit handling. 00:01:26 Separate geometry from search work An embedding is a point in a learned coordinate space. Dot product, cosine and Euclidean distance can induce different rankings, especially when vector norms vary. Apply the same normalization at indexing and query time and verify the chosen index uses the metric the encoder was trained with. With unit vectors (1,0) and (0,1), cosine is zero. Test that the configured index reports the documented similarity or distance for this pair. Sparse lexical vectors preserve signals from particular terms, including rare IDs. Dense vectors represent learned semantic proximity. A query for “E17” can be decisive lexically while “card charged twice” benefits from semantic matching. Evaluate both signals and consider fusion for mixed query populations. Query “E17” and then “charged twice.” Inspect which lexical and dense candidates are recovered for the identifier and paraphrase. Approximate indexes avoid scanning every stored vector. HNSW explores a proximity graph. inverted-file methods search selected partitions. Increasing search effort often improves recall at a latency cost. Compare candidate sets against exact search on a representative sample before choosing defaults. Retrieve five candidates with a flat exact index. Count how many of those five an approximate configuration recovers before measuring latency. Debug in sequence. Confirm the correct version exists, check the encoder and metric with known vectors, compare approximate results to exact search, then examine the mapping from vector IDs to authorized source text. 00:03:07 Which baseline diagnoses the miss? The exact index also misses the labeled passage. What should you test before increasing the approximate search budget? The candidate is already missing in the exact baseline. Extra approximate search effort cannot improve the underlying representation or restore an absent record. Compare the approximate index with the exact eligible set under the same metric. If both miss the passage, inspect the corpus and embeddings before spending more time on the approximate traversal.