Skip to content

Embedding model migration: rebuild before switching your search

7 min read
AI Strategy
Embedding model migration: rebuild before switching your search

Key Takeaways

  • 1Matching vector dimensions do not establish compatibility between embedding models.
  • 2Keep the old retrieval path available while you populate and evaluate its replacement.
  • 3Approve the migration against current content, permissions and representative searches.
  • 4Switch the query model and target index together, with a tested route back.

Your embedding model migration can leave search returning plausible documents while missing the evidence your users need. A successful API response proves that a request ran; your product owner still needs proof that the replacement retrieves the right material.

For a technical lead running semantic search or retrieval-augmented generation, the release decision concerns the whole retrieval path: document embeddings, query embeddings, index configuration and access filters. Our RAG guide explains the underlying pipeline. This article addresses the narrower operational decision: when you can move an existing application to a different embedding model, and what should stop that move.

Treat embedding model migration as a paired change

Google's BigQuery documentation says embeddings from different models or model versions generally occupy incompatible spaces, even when their dimensions match. Its migration instructions pair regenerated document embeddings with updated query embeddings and rebuilt vector indexes.

Microsoft makes the configuration trap explicit: changing an Azure AI Search vectorizer does not regenerate stored document vectors. Its vectorizer documentation requires the indexing and query paths to use the same embedding model.

Compatibility exceptions need specific evidence. MongoDB documents compatibility within the voyage-4 series, while still recommending corpus regeneration during migration. Its Voyage AI migration guide distinguishes self-managed embeddings from Automated Embedding, where the service handles regeneration after an index-definition change.

The engineering owner should therefore record the source and target model identities, dimensions, document/query settings, preprocessing and destination field. If the proposed pairing lacks documented compatibility, treat it as a rebuild. A matching array length is insufficient evidence to approve production traffic.

Choose a boundary you can reverse

For an application that generates and stores its own embeddings, WVI recommends a separate target index as the default migration policy. Keep the existing route intact while evaluating the replacement. A second vector field can suit a constrained system; the engineering owner must still demonstrate that old and new vectors remain distinguishable.

This is a deployment recommendation, not a universal database requirement. Microsoft's migration guide describes separate-index and second-field approaches, with different constraints for built-in indexers and application-managed ingestion. A team using managed regeneration should follow its service's supported procedure and establish what recovery remains possible.

Use this decision table in the release review. The evidence column describes WVI's proposed approval gates, rather than vendor guarantees.

Situation Evidence the responsible owner must provide Release decision
Only the query model has changed Engineering compares its model identity with the stored-vector generation Hold until the pairing is supported or document vectors are regenerated
Replacement data is still being populated Data owner lists missing records and unresolved failures Keep production on the existing route
Candidate passes relevance checks but contains stale permissions Security owner demonstrates current access decisions Stop and reconcile access before switching
Candidate is current, evaluated and reversible Product and engineering owners approve results and a rollback rehearsal Authorize a controlled switch

Make completeness mean current content

Before generating replacement vectors, ask the data owner to identify the source revision being migrated. Document IDs alone cannot establish whether an edited policy or removed document reached the candidate correctly. Record the revision or content hash beside migration progress so failed work has an identifiable retry target.

Decide how changes during the rebuild will reach the target. Microsoft's migration guidance distinguishes a write pause, snapshot plus change replay, and parallel ingestion. It warns that keeping the old index online does not necessarily keep it current, and that writing to separate indexes is not atomic.

The data owner should reconcile additions, edits, deletions and permissions through an agreed change boundary. If an update is missing, keep the candidate out of production and repair that record's migration path. Treat an apparently complete job with unresolved failures as unfinished.

Technical readiness also needs its own evidence. For self-managed Voyage embeddings, MongoDB's procedure calls for a new field and index while retaining the originals, then waiting for READY. That status permits querying; the product owner must separately accept the results.

Evaluate the searches your users depend on

WVI recommends agreeing the acceptance questions before reviewing candidate results. Ask the product owner to select familiar tasks and the documents that should answer them. Include exact identifiers, ambiguous wording, specialist vocabulary and searches that should return no permitted answer.

Run the same questions against the existing and candidate routes with the intended user identities. Have a domain reviewer inspect the retrieved passages and source revisions. For RAG, evaluate retrieval before judging the generated answer: an articulate response should not hide a missing source.

Keep unrelated changes small during this comparison. If the team also changes chunking, ranking and filters, the release owner should record those changes and require evidence explaining regressions. A disappointing result should produce a specific failing query and document, rather than an unsupported conclusion that the new model is worse.

The product owner must set tolerances for relevance, latency, freshness and operating cost. This article supplies no universal pass rate. A support knowledge base and a safety-critical reference system need different acceptance criteria; neither can borrow a vendor benchmark as proof for its own corpus.

A hypothetical support-search migration

Imagine a software company replacing the embedding model behind its support assistant. The engineering lead builds a candidate from the current help centre while the existing index continues serving customers. The product owner chooses questions about refunds, account recovery and product compatibility.

During evaluation, the reviewer finds that an old refund policy outranks its replacement. The data owner checks source revisions and discovers that an edit arrived after the candidate's initial snapshot. The team holds the release, replays the edit and repeats the affected searches.

A separate permission test shows an internal escalation note to an ordinary customer identity. The security owner requires the candidate's access filters to be corrected before another review. The new model's otherwise useful results do not override that failure. This is a hypothetical workflow, with no claimed customer results or measured improvement.

Switch the retrieval route with an exit plan

WVI recommends releasing a named retrieval configuration that binds the query model to its intended field and index. The engineering owner should test that selecting the candidate cannot accidentally query old vectors, and that reverting restores the complete previous pairing.

Before authorizing the switch, use this short checklist:

  • The data owner has reconciled current content and access changes.
  • The product owner has accepted representative retrieval results.
  • The engineering owner has tested both candidate routing and rollback.
  • The operations owner has agreed when to revert and how long to retain the old route.

Retaining an index alone is insufficient if its model endpoint will no longer be available. The release owner should verify that the planned recovery path will remain usable throughout the agreed rollback window. If temporary duplication cannot fit your capacity or budget, plan an explicit maintenance window rather than assuming uninterrupted migration.

An embedding migration is ready when the team can show that the replacement retrieves acceptable evidence and can be reversed under the agreed conditions. Start by asking your data owner for the candidate's source revision and unresolved changes. If document ownership is unclear, use our intranet search guide to identify the content work before approving the model switch.

Sources

Share this article

Need expert guidance?

Let's discuss how our experience can help solve your biggest challenges.