Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseInsight · On RadarHabr AI→ original

RAG Score Rose from 80% to 87.5% Even Though the System Stopped Answering 20% of Questions

Automated tests are green, the RAG quality score went up, yet the system may have gotten worse. In the authors' example, out of 100 questions, 80 simple ones scored 90% and 20 complex ones scored 40%, for an overall score of 80%. After a search fix, the complex questions were left without context and without a score, the simple ones dropped to 87.5%, and the failures were excluded from the average, producing an apparent "improvement" to 87.5%. That's why, next to the average score, you should always check how many questions were actually evaluated.

AI-processed from Habr AI; edited by Hamidun News
RAG Score Rose from 80% to 87.5% Even Though the System Stopped Answering 20% of Questions
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Track two axesquality on evaluated questions and evaluation coverage
Key metric #2In the example, 20% of questions went unanswered, and the other 90% dropped to 87.5%
Key metric #3The reference dataset goes stale along with the knowledge base, so version it

Imagine you've improved the search in your RAG system, run the automated tests, and see two good signs: all tests are green, and the average quality score rose from 80% to 87.5%. Can you ship the release? Not necessarily. Engineers Kamil Murtazin and Stanislav Sizov explained on Habr how their team learned to test RAG and why at some point they had to check not only the system itself but also its evaluation tools. The most telling example from the article: an "improvement" of 7.5 percentage points that concealed a breakage. Some of the numbers in the material are synthetic; the authors do not disclose internal data or code.

A green test is not yet good search

At first, the team thought of RAG as a regular microservice: there is an API, contracts, input data, and regression in CI/CD. But a standard test only checks that an HTTP 200 came back, the response matches the JSON Schema, and the list of results is not empty. If the search returned completely irrelevant documents, such a test will still pass, while the user sees a broken system.

Therefore, the authors separate two things: functional testing (the system works) and quality evaluation (the system solves the task well). One does not replace the other. Everything that can be checked deterministically, such as filters, access rights, and data structure, should be verified with ordinary checks rather than an LLM judge.

Another rule: don't look only at the final answer. A document may have failed to load, been split incorrectly into chunks, not made it into the results, been discarded by the reranker, or been ignored by the model. If you evaluate only the outcome, all of these failures look the same: "RAG answered incorrectly."

The reference dataset can also break

The authors suggest turning every discovered failure into a test: failure → add to dataset → evaluate → fix → re-evaluate. This way the dataset gradually becomes a set of regression scenarios. At the same time, a single large set with one score is not enough: you need separate sets for real user queries, expert-verified references, known defects, complex questions, cases of missing information, critical scenarios, and an independent final holdout that you must not keep optimizing against.

A gold dataset is not absolute truth. Documents get updated, deleted, and reindexed, chunking changes, and the reference stops matching the knowledge base. The authors encountered cases where metrics dropped because of outdated labeling rather than worse search. It also happened the other way around: they updated the dataset, re-measured the baseline, saw growth, and concluded that search had improved, when in fact the measuring instrument itself had changed. Another trap: if synthetic questions are generated from documents that the system already finds easily, the evaluation will be overly optimistic.

As for metrics, the conclusion is this: more is not necessarily better. Context Precision, Recall@K, MRR, nDCG, and a dozen other indicators are useful only if they are chosen based on behavior: whether they get stuck near zero or one, whether they react to obviously bad changes, whether they produce repeatable results, whether they duplicate each other, and whether they are robust to a change of judge. In the authors' experiments, cutting the set of metrics made a known regression more visible.

How a breakage turns into an "improvement"

Now the main example. There are 100 questions. The baseline answers all of them: 80 simple questions score 90% on average, and 20 complex ones score 40%. The overall score is 80%.

After the search change, the complex questions stop receiving context, so there is no score for them at all. Meanwhile, the simple questions dip slightly, to 87.5%. If the average is calculated by simply ignoring missing values, the result is 87.5% versus 80%: an "improvement" of 7.5 percentage points. In reality, the system stopped processing a fifth of the questions, and it got worse on the rest. The measuring tool showed growth instead of degradation.

How to protect against this: alongside quality, track the completeness of the measurement, meaning the total number of questions, the number of successful answers, empty contexts, errors, and timeouts, and how many rows the metrics could actually be computed for. Baseline and new versions should be compared on a shared set of successfully evaluated cases, but this alone is not enough: such a slice precisely excludes the questions on which the system broke. That's why two independent axes are needed: quality on evaluated cases and evaluation coverage.

There is a nuance: an empty context is not always an error. On a negative dataset, a correct refusal to answer may be the expected behavior, so coverage rules depend on the purpose of the set.

What to do in practice

Don't accept a release based on a single average score. Publish evaluation coverage alongside quality, version your datasets, and check them for duplicates, contradictions, and outdated references. Separate checks by pipeline stage so you can understand where exactly things broke. And remember that with any "growth," you should first make sure whether the system has changed or only the way it is measured.

Story

Key Questions Answered

What are the key details on A green test is not yet good search?

At first, the team thought of RAG as a regular microservice: there is an API, contracts, input data, and regression in CI/CD. But a standard test only checks that an HTTP 200 came back, the response matches the JSON Schema, and the list of results is not empty. If the search returned completely irrelevant documents, such a test will still pass, while the user sees a broken system.

What are the key details on The reference dataset can also break?

The authors suggest turning every discovered failure into a test: failure → add to dataset → evaluate → fix → re-evaluate. This way the dataset gradually becomes a set of regression scenarios. At the same time, a single large set with one score is not enough: you need separate sets for real user queries, expert-verified references, known defects, complex questions, cases of missing information, critical scenarios, and an independent final holdout that you must not keep optimizing against.

How a breakage turns into an "improvement"?

Now the main example. There are 100 questions. The baseline answers all of them: 80 simple questions score 90% on average, and 20 complex ones score 40%. The overall score is 80%. After the search change, the complex questions stop receiving context, so there is no score for them at all. Meanwhile, the simple questions dip slightly, to 87.5%. If the average is calculated by simply ignoring missing values, the result is 87.5% versus 80%: an "improvement" of 7.5 percentage points.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Unified AI Workspace · Nomad

Test Frontier LLMs & Autonomous Agents in One Workspace

Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.

Try Nomad AI →Launch Nomad Agent
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — RAG Score Rose from 80% to 87.5% Even Though the System Stopped Answering 20% of Questions https://news.hamidun.com/en/news/18803/rag-score-rose-from-80-to-87-5-even-though-the-system-stoppe

What do you think?
Loading comments…