Clinical RAG evaluation: test the evidence pipeline, not just the model

Healthcare AI evaluation · · 11 min read

Clinical RAG evaluation: test the evidence pipeline, not just the model

Acumen Editorial · Updated November 29, 2026

Most health systems and vendors now ship clinical LLMs with retrieval. The model pulls guidelines, drug labels or literature before it answers. The logic is sound: grounded answers should be safer than answers from memory. The evidence says it depends on what gets retrieved.

A study published in npj Digital Medicine on November 27, 2026 makes the point sharply. Researchers from RWTH Aachen and partner institutions ran 34 local LLMs from seven model families through six deployment conditions on a 200-question radiology benchmark, for 40,800 evaluations in total. Deployment condition explained 43% of the variance in accuracy and 45% of the variance in high-risk errors. Model family explained 9% and 8%.

In plain terms: how you feed the model matters roughly five times more than which model you pick. So that is what you have to test.

Why does retrieval change clinical AI safety?

Retrieval helps when the evidence is clean. In the npj study, giving models clean, relevant evidence raised mean accuracy from 73.5% to 94.1%. High-risk errors fell from 12.0% to 2.6%, and dangerous overconfidence fell from 8.0% to 1.6%.

But clean evidence was an oracle condition, written with knowledge of the right answer. Real retrieval is messier, and the study shows what that costs:

  • One distracting sentence. Adding a single conflicting sentence cost only 1.6 points of accuracy against clean evidence. High-risk errors rose by about a third and dangerous overconfidence by about half.
  • Agentic RAG. Letting the model run its own retrieval raised dangerous overconfidence in 18 of 34 models compared with no retrieval at all.
  • More context. Stuffing the prompt with maximum context added almost no accuracy and raised latency by about 50%.

The lesson for buyers: accuracy can look stable while safety gets worse. If you only track accuracy, you will miss it.

What happens when retrieved evidence conflicts?

Clinical sources disagree all the time. Guidelines get revised, labels get updated and old abstracts stay indexed. A May 2026 preprint from the University of Illinois Urbana-Champaign tested six open-weight models on 920 health questions, each paired with one correct and one contradictory web document.

The results:

  • With no retrieved context, mean accuracy was 0.824. With only the correct document it rose to 0.916. With only the incorrect document it fell to 0.425.
  • Putting the correct document first raised accuracy for every model, by 11.1 points on average.
  • Simply reversing the order of the two documents changed the answer on 11.4% to 25.2% of questions, depending on the model.

The authors conclude that conflicting biomedical evidence "is both an uncertainty and robustness problem." An earlier study of Australian consumer medicine information and PubMed abstracts reached a similar view: it found that "retrieval similarity alone is insufficient for reliable medical RAG." Two documents can look equally relevant to a retriever and still say opposite things.

If your evaluation only uses helpful retrieval, you are testing the best case.

Can you trust model confidence as a safety filter?

No. This is the most practical finding in the npj study. Confidence on high-risk errors was close to confidence on correct answers. High-risk errors stayed above 80% confidence even with clean evidence. A threshold that blocks low-confidence answers will let the dangerous ones through.

Ensembles did not fix it either. Three-model ensembles beat the panel average but did not beat their best member. Many high-risk errors were unanimous, which the authors call synchronized failures. Agreement between models is not an independent check when they share the same evidence and the same blind spots.

The UIUC preprint points to a better option. A score that combined model confidence with a trained conflict detector improved selective accuracy over confidence alone by up to 33.4 points at 25% coverage. Confidence alone made things worse when all the evidence was wrong.

What should a clinical RAG evaluation test?

Test the configuration you will deploy, across the conditions it will meet. This table is the matrix we use.

ConditionWhat it simulatesWhat to measureWhat good looks like
Closed-bookThe model with retrieval off or failingAccuracy, high-risk errors, abstentionA baseline to compare every other condition against
Gold evidenceThe right source, cleanly retrievedAccuracy, high-risk errorsThe ceiling your pipeline should approach
Production retrievalYour real corpus and retrieverAll four safety outcomes plus retrieval precisionClose to gold, with no rise in high-risk errors
Conflicting evidenceA correct and a contradictory source togetherAnswer flips, high-risk errors, overconfidenceStable answers that flag the conflict
Outdated evidenceA superseded guideline or label ranked highUse of stale facts, citation of the wrong versionThe current source wins or the answer abstains
Order swapThe same documents in reversed orderPercentage of changed answersFew or no flips
Agentic retrievalThe model chooses what to searchOverconfidence, missed steps, tool errorsNo worse than production retrieval

The four safety outcomes come straight from the npj authors: high-risk error, unsafe answer, contradiction and dangerous overconfidence. Measure all four on your own case mix.

How do you build the test set?

A useful clinical RAG test set is small, specific and adversarial. A checklist:

  1. Start from real questions. Pull 200 to 500 questions from the workflow you are deploying into, written or reviewed by clinicians in that specialty.
  2. Write a reference answer and a harm label for each. A wrong answer about formatting is not the same as a wrong dose. Clinicians should mark which errors are high-risk.
  3. Build evidence variants. For each question, assemble the correct source, a contradictory source, a superseded version and an irrelevant but similar passage.
  4. Over-sample the hard cases. The npj study found that a small set of questions drove most high-risk failures and defeated ensembles. Find those questions and keep them.
  5. Grade with two clinicians and report agreement. In the npj study, two radiologists agreed on only 59.8% of high-risk labels. That is a reason to adjudicate, not a reason to skip human grading.
  6. Re-run on every change. The authors advise against recording a model upgrade as a safety improvement until it has been re-measured. The same goes for a new retriever, a new corpus or a new prompt.
  7. Keep the set private. Do not share it with vendors you are evaluating.

What about agents that act on what they retrieve?

Agents add a second failure mode: they lose information between steps. Stanford HAI's PhysicianBench, reported in October 2026, tested agents on 100 long-horizon tasks in a simulated EHR. Many action failures came from an agent writing the correct order in its note without actually placing it in the record. The authors found failures came mostly from losing information across steps, documents and systems, not from weak medical knowledge.

For a RAG evaluation, that means checking whether the retrieved fact made it into the final action, not just into the answer text. See our guide to evaluating EHR AI agents for agent-specific tests.

How does this differ from hallucination testing?

Hallucination testing asks whether the model invents facts. Clinical RAG evaluation asks whether the system uses the right facts when sources disagree, go stale or arrive in the wrong order. You need both. Our guide on how to test medical AI for hallucinations covers the first. If you plan to grade at scale with a model, read LLM-as-a-judge for medical AI before you trust automated scores on high-risk items.

How Acumen helps

We build private clinical RAG evaluation sets. Board-certified clinicians matched by specialty write the questions, the reference answers and the harm labels. Our team assembles the evidence variants: correct, contradictory, superseded and decoy. Clinicians then grade model outputs across every condition, with dual review and adjudication on high-risk items. You get a scored report on all four safety outcomes, the worst-case question set, and a reusable test you can re-run on every model, retriever or corpus change.

See our medical model evaluation service for how it works.

Request a sample dataset

FAQ

What is clinical RAG evaluation?

It is testing a clinical AI system that retrieves evidence before answering, such as guidelines, drug labels or literature. Instead of scoring the model alone, it scores the full pipeline: the corpus, the retriever, the ranking and the answer. It checks how the system behaves when evidence is clean, missing, conflicting, outdated or in a different order.

Does RAG make clinical LLMs safer?

Only when retrieval is clean. In a November 2026 npj Digital Medicine study of 34 local models, clean evidence cut high-risk errors from 12.0% to 2.6%. But one conflicting sentence raised high-risk errors by about a third, and agentic retrieval raised dangerous overconfidence in 18 of 34 models compared with no retrieval.

What metrics should a clinical RAG evaluation report?

Report accuracy plus four safety outcomes: high-risk errors, unsafe answers, contradictions and dangerous overconfidence. Add retrieval precision, the share of answers that change when document order is swapped, and abstention rate. Report each metric per test condition, and report clinician agreement on the harm labels so readers can judge how firm the grading is.

Can model confidence filter out unsafe answers?

Not reliably. In the npj study, confidence on high-risk errors was close to confidence on correct answers, and high-risk errors stayed above 80% confidence even with clean evidence. A University of Illinois preprint found that combining confidence with a trained conflict detector worked better than confidence alone, especially when retrieved evidence was wrong.

How do you test RAG for conflicting evidence?

Pair each test question with a correct source and a contradictory one, then run both orders. Measure accuracy, high-risk errors and how often the answer flips when the order changes. In one 2026 preprint, reversing document order changed answers on 11.4% to 25.2% of questions. Good systems give stable answers and flag the conflict.

Who should grade a clinical RAG evaluation?

Clinicians in the specialty the system serves. They should write reference answers, label which errors are high-risk, and grade outputs in pairs with adjudication. Agreement can be low on harm labels; two radiologists in the npj study agreed on 59.8% of high-risk labels. That is why dual review and a clear rubric matter.

From the Acumen archive. Explore expert data and Healthcare & Pharma.

← Back to Insights