Your embedding model is being retired. What happens to your RAG?

Your embedding model is being retired. What happens to your RAG?

Part 1 of 7 in the Embedding Migration in Production series (change the model, not the reliability): engineer-level, on Azure AI Search and Microsoft Foundry, mapped to Microsoft exam AI-103.

TL;DR for managers. Every RAG system stores its documents as vectors made by one specific embedding model. When that model is retired or replaced, the stored vectors can't be "upgraded": every document has to be embedded again with the new model, into a new index or field, tested, and switched over without exposing anything users shouldn't see. On a large knowledge base that is weeks of work, so the time to plan it is when the retirement notice arrives, not the month before.

On 15 November 2026, Microsoft's model retirement schedule moved Cohere-embed-v3-english and Cohere-embed-v3-multilingual to deprecated. Both retire on 15 February 2027, and the listed replacements are Cohere Embed v5 Fast and Pro. Microsoft's migration guide is blunt about what that means for anyone with a search index full of v3 vectors: "Regenerate document vectors; don't copy v3 vectors and only change the query model."

If you use Azure OpenAI's text-embedding-ada-002 or text-embedding-3 models, the current schedule gives you until 9 February 2028. That sounds like a long time until you work out how long it takes to re-embed a large corpus, which we will do in part 3. Retirement isn't the only trigger either. Teams migrate for better multilingual retrieval, lower cost, data residency or smaller vectors. The engineering problem is the same.

This series follows one migration end to end, on Azure AI Search (which Microsoft's documentation now calls Foundry IQ). This first part explains what an embedding model actually contributes to a RAG system, why changing it touches more than one setting, and what to inventory before you start.

The scenario we'll use throughout

Illustrative scenario (not a customer). A UK organisation's internal knowledge base: 10 million source documents (policies, contracts, support articles) in Azure AI Search. Assumptions carried over from our scaling article: an average of 10 chunks per document, about 500 tokens per chunk, so around 100 million chunks and 50 billion tokens. Hybrid search (BM25 plus vectors) with the semantic ranker. Document-level security: users must only retrieve chunks from documents they can open in the source system. The example migration is text-embedding-ada-002 (1,536 dimensions) to text-embedding-3-large. Swap in your own numbers and models.

What an embedding model really gives you

An embedding model turns a piece of text into a list of numbers, a vector, so that texts with similar meaning end up close together. "How much annual leave can I carry over?" and the paragraph in your holiday policy about carry-over land near each other, even though they share few words. Vector search finds the stored chunks nearest to the question's vector.

The important word is space. Each model learns its own coordinate system during training. Dimension 412 in ada-002 has no relationship to dimension 412 in text-embedding-3-large. Distances only mean something between vectors from the same model, made the same way. That gives every RAG system a hidden contract: the vector stored for each chunk and the vector made from each question must come from the same model and configuration.

Break that contract and nothing crashes. Queries still return results, scores still look plausible, and relevance quietly collapses. That's why embedding migrations go wrong more often through silent mismatches than through errors.

Why a retirement forces a re-embed

You might hope to keep the stored vectors and only point queries at the new model. Microsoft's guidance rules that out in three sentences worth memorising:

  • "Changing a vectorizer or deployment name doesn't regenerate indexed vectors."
  • "Equal vector dimensions don't establish compatibility between models."
  • A vector field's dimensions "can't be changed after the field is created".

Azure OpenAI's model page says the same for its own family: you can't upgrade between embedding models, and moving from ada-002 to text-embedding-3-large means generating new embeddings. So the migration has three unavoidable parts: generate new document vectors, store them somewhere that doesn't disturb production, and switch the query side at the same moment as the index side.

Three ways to do it

Microsoft's guide describes three approaches. Which one you can use depends mostly on how your index is fed today.

Approach Use when Main cost
Rebuild a separate index from source data You use built-in indexers (integrated vectorisation), or you also want to change chunking or enrichment. Full re-read and re-embed of the corpus, a new indexer, and duplicate index capacity during the overlap.
Re-embed exported index content into a separate index You push documents yourself and can export the chunk text and metadata completely. Re-embedding, export storage and duplicate capacity. Vectors stored with stored: false can't be exported.
Add a second vector field to the existing index You push documents yourself and want to share text and metadata between old and new. Duplicate vectors in one index, a careful backfill, and coordinated writers.

One rule applies to all three: if built-in indexers populate your index, Microsoft says you need a full source rebuild into a new index with a new indexer. Resetting the old indexer or swapping its vectorizer doesn't migrate anything. For most production systems the guide recommends the separate target index, and that's the default in this series. Part 4 covers the second-field option and its traps.

Inventory first: everywhere the model hides

The model name usually appears in more places than the team remembers. Before estimating anything, list each one:

  • Indexing path: the embedding skill in a skillset, or your own code that calls the embeddings API before pushing documents.
  • Query path: the vectorizer attached to the field's vector profile (used for VectorizableTextQuery), or application code that embeds the question itself.
  • Caches: cached document embeddings, cached query embeddings, cached search results or answers. Microsoft warns that switching a model, field or alias doesn't invalidate any of them.
  • Consumers: other applications, agents and Foundry IQ knowledge sources that read the index. Knowledge sources and indexers reference a physical index, not an alias.
  • Thresholds: any code that filters on raw vector similarity scores. Scores from a different model have a different distribution, so a threshold of 0.82 means nothing after the switch.
  • Security: how permissions reach each chunk today (security filter fields, native ACL fields, SharePoint permissions), because the new index must reproduce them exactly.

This read-only script lists every vector field, its dimensions and the deployment its vectorizer calls, plus where each alias points. It changes nothing.

# Read-only inventory: which vector fields, profiles and vectorizers does each index use?
from azure.identity import DefaultAzureCredential
from azure.search.documents.indexes import SearchIndexClient

client = SearchIndexClient(SEARCH_ENDPOINT, DefaultAzureCredential())

for index in client.list_indexes():
    vs = index.vector_search
    if not vs:
        continue
    profiles = {p.name: p for p in vs.profiles or []}
    vectorizers = {v.vectorizer_name: v for v in vs.vectorizers or []}
    for field in index.fields:
        if not field.vector_search_dimensions:
            continue
        profile = profiles.get(field.vector_search_profile_name)
        vec = vectorizers.get(profile.vectorizer_name) if profile and profile.vectorizer_name else None
        params = getattr(vec, "parameters", None)
        print(index.name, field.name, field.vector_search_dimensions,
              getattr(params, "deployment_name", None), getattr(params, "model_name", None))

for alias in client.list_aliases():          # who points at what
    print("alias", alias.name, "->", alias.indexes)

Application code that generates query vectors itself won't show up here, so search your repositories for the deployment name as well.

Work backwards from the date

If a model you depend on retires on 15 February 2027, the plan isn't "start in February". Microsoft's advice is to complete and test the migration before retirement, "allowing time to resolve failures and rehearse rollback while the old model remains available". After retirement, the old index is useless for rollback, because nothing can embed questions for it any more. A realistic order:

  1. Inventory and choose the target model (this part and part 2).
  2. Measure a baseline on the current index before embedding anything new: a judged set of real questions, with Recall@K, NDCG, latency and cost per query (part 5). Without it, you can spend weeks and real money re-embedding millions of chunks and still not be able to say whether search got better or worse.
  3. Pilot on about 1% of the corpus to measure real chunk counts, tokens, throughput and index size (part 3).
  4. Full backfill plus catch-up of changes made while it runs (part 3).
  5. Quality, security and load testing on the new index while production stays on the old one (parts 5 and 6).
  6. Cutover with a rehearsed rollback, then a rollback window before anything is deleted (parts 4 and 7).

Prove the process small before you go big. Before touching the real corpus, run the whole lifecycle on a small copy, even 10,000 documents of synthetic or non-sensitive data: new index, backfill, changes during the backfill, evaluation against the baseline, cutover and a real rollback. Then extrapolate cost and capacity from what you measured, rather than from the arithmetic alone.

Common mistakes

  • Treating the migration as a configuration change ("just update the deployment name").
  • Assuming the new model is better. Microsoft's guide says to "evaluate replacement models against your workload rather than assuming that a newer model is better". Part 5 shows how.
  • Changing the model, the chunking and the ranking settings in one go, then having no idea which change helped or hurt.
  • Forgetting that permissions must survive the trip. A new index that is faster but shows one confidential chunk to the wrong person is a failed migration.

Key takeaways

  • Stored vectors and query vectors must come from the same model and configuration. Treat that as a contract.
  • A model change means regenerating every document vector. Same dimensions don't make models compatible.
  • Indexer-based pipelines need a new index and a new indexer, built from source.
  • Plan from the retirement date backwards, and finish while the old model still works so rollback stays possible.

Next, part 2: why you can't simply swap the model, with the "same dimensions" trap, the embedding contract and what the new index definition looks like.

References

Learning this for AI-103? Microsoft's AI-103 exam (Azure AI Apps and Agents Developer Associate) covers implementing RAG with Azure AI Search, vector and hybrid search, and monitoring retrieval quality. Our live online AI-103 course builds these pipelines hands-on in Microsoft Foundry and Azure AI Search, on UK time, with mock assessments before you book the exam.

The Embedding Migration in Production series

Change the model, not the reliability.

  1. Part 1: Your embedding model is being retired (you are here)
  2. Part 2: Why you can't simply swap embedding models
  3. Part 3: Re-embedding 10 million documents
  4. Part 4: Blue-green migration for Azure AI Search
  5. Part 5: Did the new model improve retrieval?
  6. Part 6: BM25, hybrid and semantic ranking
  7. Part 7: The enterprise migration playbook
  8. Bonus: Document permissions in a migration
Back to blog

Ready to take the first step?

Live online courses on UK time, mapped to the current Microsoft AI exams. No coding needed for AI at work.

Explore AI coursesAsk us a question