AI NewsInfrastructureAnnouncement

Weaviate shows how to swap an embedding model without doubling storage

Weaviate's John Trengrove explains a way to merge search results from two embedding models during a swap. Recall stays close to the old model.

AI News

Editorial2 min read

LinkedInX
Chart comparing RRF and reference z-score fusion across four datasets

Image: Weaviate

Why it mattersTeams can move to a better embedding model without storing two sets of vectors. The usual drop in search quality during the swap shrinks from 40 percent to about 10.

Swapping the embedding model behind a search product is slow and expensive. Weaviate has published a way to do it without paying for both sets of vectors at once. Search quality during the swap stays close to the old model.

John Trengrove, head of applied research at Weaviate, wrote up the method on the Weaviate blog on 2 December. He calls it reference z-score fusion. Weaviate includes the full code and the test numbers in the post.

The problem the method solves

Teams upgrade an embedding model when a new one scores higher on their queries. The old vectors do not work with the new model. Each document has to be embedded again. The standard answer is to keep both sets of vectors in storage, and run both indexes in parallel. The team switches over when the new one is ready. That doubles the vector storage bill for the length of the migration.

The alternative is to swap vectors one shard at a time. Weaviate calls the dip in search quality during that swap "the compatibility valley". The post says a plain combine, reciprocal rank fusion, drops search quality by up to 40 percent during the swap.

How reference z-score fusion works

The method uses a small reference set of documents: 5,000 documents, or 10 percent of the corpus. Both models embed those. The scores from each model on the reference set then define its distribution.

At query time, the query is embedded with both models. Each index returns its results. Each result's score is rescaled against its own model's reference distribution, as a z-score. The two sets of z-scores are then merged. Trengrove says the rescaling is what keeps the merge honest. The raw scores from two different models sit on different scales. They cannot be compared directly.

The test numbers

Weaviate ran the method on four datasets: SCIDOCS with 26,000 documents, FiQA with 58,000, Quora with 523,000 and MS MARCO with 8.8 million. The models tested include bge-small-en-v1.5, gte-modernbert-base, Qwen3-Embedding-0.6B, all-MiniLM-L6-v2 and DenseOn.

The post reports that reciprocal rank fusion drops search quality by up to 40 percent during the migration. Reference z-score fusion drops it by 2.0 to 10.6 percent. After the full swap, search quality is 3.3 to 6.0 percent higher on NDCG@10 than on the old model.

Why the storage cost is the whole story

Storage cost is the first reason a team puts off upgrading an embedding model. The second is the drop in search quality during the swap, which the user notices in the product. Weaviate's post shows that a small reference set and a scoring step can address both. A team does not need a second copy of the vectors, and the drop in search quality is smaller.

The method is not tied to Weaviate. Trengrove publishes the code as a notebook. Any team with two embedding models and two indexes can test it on their own data first.

Source

John Trengrove at Weaviate, Migrating embedding models in-place.

SourceWeaviate

This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.

Share
LinkedInX
Start a project