passdrill
AI & LLM Engineering · RAG & Embeddings · Card 018/022 easy

A team has an existing vector index built entirely with embedding model A, and decides to switch to a newer embedding model B for future documents, adding model B's embeddings for new documents directly into the same index alongside the old model A vectors, without touching the old ones. Comparing similarity between a query embedded with model B and an old document vector still embedded with model A produces meaningless results. Why?

  1. Because each embedding model learns its own distinct vector space during training, so numerically comparing a vector from one model against a vector from a different model is comparing coordinates from two unrelated coordinate systems, not two points that were ever placed in the same space to begin with, even if the two vectors happen to have the same number of dimensions
  2. Because model B's vectors are always higher-precision floating-point numbers than model A's, and comparing two different numeric precisions always produces a runtime error rather than a similarity score
  3. Because vector databases only support one embedding model per collection at the software level, so inserting model B vectors into the same collection as model A vectors is rejected before any similarity computation happens
  4. Because the query text itself must be re-encoded once per document being compared against, and skipping that per-document re-encoding step is what produces meaningless results here, not anything about the two embedding models
Next card → Shuffle