AlgoViz

Embedding spaces and vector indexes

medium 9 min

Vector retrieval compares representations under a declared metric.

Where it shows up

The same pattern appears across everyday software.

  • An exact neighbor disappears in an approximate index

    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.