Skip to content Skip to footer

How to Improve RAG Search Without Losing Quality During Embedding Migrations

What Happened

Two recent results highlight different retrieval trade-offs. In Elasticsearch, three released-build settings raised log ingest from 52,000 to 67,000 lines per second while reducing storage from 263 to 146 MiB per million lines. A preview columnar mode reached 112,000 lines per second and 80 MiB per million lines, largely by omitting indexes on generated fields. Exact lookups on unindexed fields became substantially slower [1].

For embedding-model changes, reference z-score fusion offers a way to search old and new vectors during an in-place migration. Across four evaluated migrations, it reduced NDCG@10 by 2.0%–7.1%, versus 36%–40% for reciprocal rank fusion (RRF). The method uses documents embedded by both models to normalize their query scores before merging results [2].

Why It Matters to Businesses

RAG quality depends on retrieval choices made before a model generates an answer. Saving index space can make precise searches slower; replacing an embedding model without a transition plan can sharply reduce relevance. A second index or named vector simplifies comparison but temporarily increases vector storage, while an in-place migration needs a method for combining incompatible scores [1][2].

Kimbodo Engineering Perspective

We would treat the search backend, retrieval framework, and embedding model as separate decisions. LlamaIndex, LangChain, or Haystack can orchestrate retrieval, but that does not determine whether Elasticsearch, Weaviate, Pinecone, Qdrant, Milvus, or Vespa meets a workload’s latency, filtering, operational, and cost requirements. We would benchmark those requirements rather than select a database from vector-search performance alone.

Likewise, we would not apply log-index savings indiscriminately to RAG data. Disable an index only when the resulting lookup cost is acceptable. For embedding changes, a parallel index is the simpler rollback path; in-place migration is worth considering when temporary storage is the binding constraint [1][2].

How We Would Implement It

  • Define a representative evaluation set and measure relevance, exact-match and filtered-query latency, ingest rate, storage, and cost before changing the system.
  • Keep document IDs, versions, tenant identifiers, and embedding-model versions with each chunk. Separate log indexes from indexes that need fast document lookup; choose field indexes and refresh intervals against actual search-freshness requirements [1].
  • For a model migration, prefer a parallel index when capacity permits. Otherwise, embed a shared reference sample with both models, calibrate score distributions, fuse old- and new-model results, and roll out gradually. The reported approach used 5,000 reference documents and each model’s top 50 matches; those settings still need workload-specific validation [2].
  • Monitor retrieval quality and latency through the transition, retain a rollback route, and remove old vectors only after the new model passes acceptance tests.

Risks, Costs and Security

Reference fusion adds reference-vector storage and query work; a larger sample may improve quality at additional cost. A longer Elasticsearch refresh interval can delay searchability by up to 30 seconds. Smaller heaps reduced pod memory in ingest-only tests, but query and shard loads still govern safe sizing [1][2].

Enforce tenant and document permissions within retrieval, before results reach the model. Protect source documents and embeddings, audit ingestion and model-version changes, and test that filters remain effective during migration. Benchmark results are workload-specific; neither columnar indexing nor score fusion removes the need to test production queries [1][2].

Where Kimbodo Comes In

Kimbodo builds and operates this in production for businesses — see our RAG Development Services practice, or Estimate My RAG System.

Sources

  1. [1] From 52k to 112k log lines/s: 3 settings and logsdb_columnar in Elasticsearch
  2. [2] Migrating embedding models in-place

Leave a comment

0.0/5

Engineering Founded & Customer Focused

KIMBODO LLC. © 2026. All Rights Reserved.