Glossary

Embedding drift

The gradual loss of retrieval quality when stored vectors stop matching the queries they are compared with, because the embedding model changed or the content and questions moved away from what the index was built on.

Embedding drift is a decline in retrieval quality that happens when the vectors in an index stop matching the queries compared against them. It has two common causes. The first is a model mismatch: documents were embedded with one version of an embedding model and queries are now embedded with another, so similarity scores lose their meaning. The second is distribution drift: the content and the questions move into topics, vocabulary or formats that the index and model handle poorly. Both show up the same way, as a retriever that returns plausible but weaker matches, with no error to flag it.

Model drift: two models in one index

An embedding only has meaning relative to the model that produced it. Two models, or two versions of one model, place the same sentence at different points in vector space, so cosine similarity between a new query vector and an old document vector is close to arbitrary. This happens when a team upgrades the model for new content without rebuilding old content, when a hosted provider retires a model version, or when different services in one system call different models.

The fix is a full re-indexing with a single model, and the prevention is simple bookkeeping: store the model name and version with every vector, and refuse to mix them. Incremental indexing cannot repair model drift, because it only touches documents that changed.

Distribution drift: the content moves

Distribution drift is slower. A support index built on last year’s product docs starts receiving questions about new features, new acronyms and new file types. The embedding model still works, but the corpus and queries have moved, so relevant passages sit closer together and harder to separate. At large scale this contributes to semantic collapse, where many results look equally plausible, a pattern described in what semantic collapse is. Content that changed at the source without being re-indexed adds stale knowledge on top.

Kind

What changed

Typical symptom

Usual fix

Model mismatch

Embedding model or version

Sudden drop in relevance after a deploy

Rebuild the index with one model

Mixed models

Different services use different models

Some queries work, others return noise

Standardise on one model and store its version

Corpus drift

New topics, terms or formats in the content

Slowly falling recall on new material

Re-evaluate the model, add hybrid search

Query drift

Users ask different kinds of question

Good scores on old test sets, complaints on new ones

Refresh the golden dataset

Embedding drift is a different thing from memory drift, where facts stored about a user become outdated or contradictory. One is about vectors; the other is about what the system believes.

Detecting embedding drift

Drift rarely shows up in error logs, so it has to be measured. The most direct check is a regular retrieval evaluation: run a fixed set of questions with known answers and track recall at k over time, refreshing the questions as user behaviour changes. Cheaper signals come from the vectors themselves, such as the distribution of top similarity scores per query, or the distance between the average of recent query vectors and the average of the indexed documents. A falling top score or a growing gap suggests the index is serving questions it was not built for. These checks fit naturally into LLM observability tooling alongside latency and cost.

Keyword retrieval such as BM25 does not drift in the same way, because it matches terms directly. That is one reason hybrid search is more stable over time than pure dense retrieval: when the vector side weakens, exact terms still find the right documents.

Embedding drift on Exabase

On Exabase, content is indexed inside storage when it is written as a Resource, and there are no embedding models for you to choose, version or mix, which removes the model-mismatch form of drift from your side of the system. Deep Search is hybrid by default, combining semantic search with typo-tolerant keyword matching, and a precision setting per query trades recall against relevance. The searching resources guide covers both.

Distribution drift is still a content question. A Worker can keep a Base current by re-extracting changed documents and tagging new material, as described in the knowledge base solution, and the RAG accuracy solution covers retrieval quality more broadly. If you manage your own vectors, best embedding models and Exabase vs pgvector compare the options.

FAQs

What is embedding drift?

Embedding drift is the gradual loss of retrieval quality when stored vectors no longer match incoming queries, either because the embedding model changed or because the content and questions moved away from what the index was built on.

What causes embedding drift?

Mixing vectors from different models or versions, a provider retiring a model, and shifts in the topics, vocabulary or formats of documents and queries.

How do I detect embedding drift?

Track retrieval metrics such as recall at k on a fixed test set over time, and watch the distribution of top similarity scores. A steady decline or a sudden drop after a deploy points to drift.

How do I fix embedding drift?

For a model mismatch, re-embed every document with one model and rebuild the index. For distribution drift, refresh the test set, re-evaluate the model and add keyword matching through hybrid search.

Does upgrading my embedding model require a re-index?

Yes. Old and new vectors are not comparable, so every document has to be embedded again with the new model before queries switch over.

Is embedding drift the same as memory drift?

No. Embedding drift concerns vectors and retrieval quality. Memory drift concerns stored facts about a user becoming outdated or contradictory.

Related pages: Re-indexing, Incremental indexing, Embedding model, Semantic collapse, Stale knowledge, Hybrid search, Retrieval evaluation, RAG accuracy, RAG pipelines use case, Best vector databases.

Cut your token spend and give your agent precise context.

Get started in minutes.

Cut your token spend and give your agent precise context.

Get started in minutes.