AlgoViz

Embedding spaces and vector indexes

medium 9 min

Vector retrieval compares representations under a declared metric.

Trace the example

Follow the evidence through each stage, then test a change in the case.

An exact neighbor disappears in an approximate index

An exact neighbor disappears in an approximate index. Selected component: Query vector inside Embedding service.
Open full-size diagram

Embedding service

q = (1, 0)

Use normalized vectors in the same encoder space. The intended reference passage has vector (0.8, 0.6), cosine 0.8 with this query.

The exact index also misses the labeled passage. What should you test before increasing the approximate search budget?