An Automated Compatibility Judge for Model Migrations in RAG Systems

When you upgrade the foundation model in a production RAG system, you need to know if the answers changed in ways that matter. Manual review doesn't scale. A production system serves more query patterns than a reviewer covers, and spot checks miss small differences. This paper presents an automated judge that scores a migration on three dimensions: semantic similarity (embedding cosine), structural similarity (ROUGE-L), and factual consistency (NLI entailment with DeBERTa-v3-large fine-tuned on MNLI). To separate real drift from run-to-run noise, the judge runs a one-sided equivalence test per query with a Bonferroni correction at α = 0.05/n. Its output is a Green, Yellow, or Red tier for a CI/CD gate. I tested it on 40 queries in two domains, healthcare and technical documentation, with six Amazon Nova model pairs on Amazon Bedrock. Every tier upgrade classified Red. Every downgrade classified Green. In a 5-query pilot on Claude and Nova models, a minor version upgrade came out Green and a cross-family swap came out Red. The paper also covers where the judge fails: high embedding similarity hides factual differences, the threshold choice moves the results, and scores depend on the embedding model underneath. Code and data are available at https://github.com/aws-samples/sample-bedrock-knowledge-base-drift-detection.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-23
DOI
https://doi.org/10.5281/zenodo.24476375
Primary Topic
Topic Modeling
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

An Automated Compatibility Judge for Model Migrations in RAG Systems

Guruprasad Seeryada
Zenodo (CERN European Organization for Nuclear Research)
Topic Modeling
preprint

An Automated Compatibility Judge for Model Migrations in RAG Systems

Guruprasad Seeryada
preprint en

Abstract

When you upgrade the foundation model in a production RAG system, you need to know if the answers changed in ways that matter. Manual review doesn't scale. A production system serves more query patterns than a reviewer covers, and spot checks miss small differences. This paper presents an automated judge that scores a migration on three dimensions: semantic similarity (embedding cosine), structural similarity (ROUGE-L), and factual consistency (NLI entailment with DeBERTa-v3-large fine-tuned on MNLI). To separate real drift from run-to-run noise, the judge runs a one-sided equivalence test per query with a Bonferroni correction at α = 0.05/n. Its output is a Green, Yellow, or Red tier for a CI/CD gate. I tested it on 40 queries in two domains, healthcare and technical documentation, with six Amazon Nova model pairs on Amazon Bedrock. Every tier upgrade classified Red. Every downgrade classified Green. In a 5-query pilot on Claude and Nova models, a minor version upgrade came out Green and a cross-family swap came out Red. The paper also covers where the judge fails: high embedding similarity hides factual differences, the threshold choice moves the results, and scores depend on the embedding model underneath. Code and data are available at https://github.com/aws-samples/sample-bedrock-knowledge-base-drift-detection.

Zenodo (CERN European Organization for Nuclear Research)
Amazon (United States) (US)
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon