TL;DR — An embedding model defines a coordinate system, and vectors from different models are not comparable even when the dimensions match. At warehouse scale, an embedding upgrade is a breaking schema migration. Treat it like one: fingerprint every vector, keep source text as the system of record, build a shadow index, gate cutover on a golden query set, and keep rollback cheap.
Most teams pick an embedding model the way they pick a JSON library: once, early, and with the assumption that swapping it later is a refactor. It isn't. It's a migration of the primary representation of your entire corpus, and the system will not tell you when you get it wrong.
My thesis: an embedding model is a coordinate system, not a feature. Every vector in your index is only meaningful relative to the model that produced it. At warehouse scale, where the corpus is large enough that re-embedding is a real batch job with a real bill, you have to design for that from day one, or you will end up locked to a model you've already outgrown.
The failure that throws no error
Suppose you upgrade your query-side encoder but your index still holds vectors from the old model. If the dimensions differ, you get an exception, which is the lucky case. If they match, which happens with a fine-tuned variant, a newer revision, or a different model that happens to share a width, the database happily computes cosine similarity and returns the top K.
The numbers are valid floats. The ranking looks plausible in a demo. It is also nearly meaningless, because axis 37 in one space has no relationship to axis 37 in the other. Recall degrades smoothly rather than collapsing, so nobody pages anyone. You find out three weeks later when a user says search "feels worse."
This is the same family of bug as a unit mismatch: both quantities are numbers, the arithmetic is legal, and the answer is wrong. The fix is the same too. Make the unit explicit and enforce it at the boundary.
Fingerprint everything that shapes a vector
"Model version" is too narrow. The thing that determines whether two vectors are comparable is the entire embedding pipeline:
The model identifier and revision.
The tokenizer and truncation behavior.
Any instruction or query prefix applied before encoding.
Chunking strategy: boundaries, overlap, and any metadata prepended to chunk text.
Normalization (L2 or not) and any dimensionality reduction or quantization applied after encoding.
Hash those into a single embedding_fingerprint and store it next to every vector, as a column in the warehouse table and as payload metadata in the vector database. Queries carry the fingerprint of the encoder that produced them. The retrieval layer refuses to search an index whose fingerprint doesn't match the query's.
That one check converts a silent quality bug into a loud deploy-time failure. It's cheap, boring, and the highest-leverage guardrail in the whole stack.
The warehouse is the system of record, not the vector index
The vector database is a derived serving structure. The source of truth is the chunked text, with stable chunk IDs and content hashes, living in your lakehouse or warehouse. Vectors are a materialization of that text under a particular fingerprint.
This framing makes migrations tractable. If the index is derived, you can rebuild it, and the questions become operational:
What actually needs re-embedding? If only the model changed, everything does. If only chunking changed for some document types, only those do. Content hashes let you skip chunks whose text and fingerprint inputs are unchanged.
Where is the bottleneck? Usually encoder throughput, meaning GPU hours, not index construction. Plan capacity for the embedding job first, then ANN build time.
Can the job resume? A re-embed of a large corpus will fail partway. Write vectors in idempotent batches keyed by chunk ID and fingerprint, so a restart replays safely rather than duplicating or mixing.
If your only copy of the corpus-to-vector mapping is inside the vector database, you don't have a migration path. You have a hostage situation.
Shadow index, golden queries, alias flip
The migration pattern that works is the same one database teams use for breaking schema changes: build the new thing beside the old thing, verify it, then switch atomically.
Build beside, never in place
Create a second index (or collection) for the new fingerprint. Backfill it from the warehouse. New and updated documents dual-write to both during the transition, so the shadow doesn't fall behind while the backfill runs. Serving traffic continues to hit the old index untouched.
Gate on evidence, not vibes
Before cutover, replay a golden query set against both indexes. Two measurements matter, and they answer different questions:
Overlap between result sets. This tells you how much behavior is changing. Very high overlap means a low-risk swap. Low overlap means you're changing what users see, which may be good or bad, so you must look.
Judged relevance on the differences. Look at queries where the two disagree and have humans or a calibrated judge label which side is better. Aggregate scores hide the regressions that matter, such as a class of queries (exact identifiers, short queries, code) that the new model handles worse even though the average improved.
Build the golden set from real production queries, stratified by type, not from synthetic questions written by the same model family you're evaluating. A benchmark leaderboard tells you about someone else's data. Your corpus has its own jargon, its own near-duplicates, and its own long tail.
Flip an alias, keep the exit open
Cutover should be a pointer change: the serving layer resolves a logical name like "docs-search" to a physical index, and you repoint it. Keep the old index alive for a defined soak period. Rollback is then an alias flip rather than another multi-day backfill. Storage for a second index is almost always cheaper than the incident you avoid.
Design choices that make the next migration cheaper
You will migrate again, so spend effort now to lower the cost later.
Keep the encode step behind an interface that returns the vector and its fingerprint together. Application code should never hold a bare array of floats.
Separate retrieval from reranking. A cross-encoder or other reranker over a modest candidate set absorbs some embedding-quality differences and makes the first-stage model less load-bearing. It's not a substitute for migration, but it softens the blast radius.
Be cautious about compressing early. Aggressive quantization or dimension truncation shrinks the index but also bakes more irreversible decisions into stored vectors. If you quantize, make it part of the fingerprint and keep full-precision source vectors or the means to regenerate them.
Don't try to patch across spaces casually. Learned mappings between embedding spaces exist, and for a narrow case they may buy time, but treat them as a bridge with its own evaluation, not as a reason to skip the backfill.
The takeaway
The industry talks about vector databases as if the hard problems were indexing algorithms and recall-latency curves. At scale, the harder problem is lifecycle. A vector without provenance is an unlabeled number, and an index without a fingerprint is a liability that looks like an asset.
Treat embeddings like you treat schemas. Version them, derive them from a durable source, migrate beside the live system, test with real queries, and make rollback a one-line change. The teams that do this upgrade models whenever a better one appears. The teams that don't are still running last generation's encoder and wondering why nobody dares touch it.

