Enterprise knowledge · Research feature

Rethinking Retrieval-Augmented Generation for Medicine: A Large-Scale, Systematic Expert Evaluation and Practical Insights

The researchers conducted a systematic, stage-wise expert evaluation of conventional medical RAG and tested whether targeting its weaknesses improved performance on held-out data.

Adapted from research by Hyunjae Kim, Jiwoong Sohn, Aidan Gilson and colleagues.

arXiv preprint revision · 2026-12-02 · Attribution & reuse
In this article
Editorial illustration of stacks of coins.

Authors’ overview

Retrieval-augmented generation (RAG) is increasingly used to provide medical large language models (LLMs) with external evidence, yet whether it reliably improves response quality and where failures arise remains unclear. We conducted a systematic, stage-wise expert evaluation of conventional medical RAG and tested whether targeting its weaknesses improved performance on held-out data. Eighteen medical experts provided 80,482 annotations for 200 patient and USMLE-style queries and 800 GPT-4o and Llama-3.1-8B responses with and without RAG. Only 21.8% of the top 16 retrieved passages were relevant, and 31% of queries yielded none. Conventional RAG reduced response-level factuality and statement-level completeness by up to 6.0 and 5.3 percentage points, respectively. Citing irrelevant passages was associated with lower factuality, and missing or uncited supporting evidence with lower completeness. We then applied two established strategies, rationale-guided query reformulation and evidence filtering trained on expert annotations, and evaluated the resulting pipeline (enhanced RAG) on 2,374 questions from five medical QA benchmarks, 1,278 JAMA Clinical Challenges, and 2,019 retrospective dermatology consultations. Enhanced RAG achieved higher mean QA accuracy than conventional RAG for all nine LLMs. Gains over no RAG generally narrowed as baseline performance increased and were absent for the two highest-performing models. With enhanced RAG, Llama-3.1-8B gained 5.0 points in JAMA accuracy and 10.5 in dermatology Hit@1. A blinded clinician evaluation of 40 dermatology cases found numerically higher top-three diagnostic appropriateness with enhanced RAG. The value of medical RAG depends on the model and how evidence is retrieved, cited, and reflected in responses. Evaluating this pathway alongside end-task performance can reveal failures that accuracy alone misses and guide improvements.

Introduction

Large language models (LLMs) are increasingly being developed and evaluated for medical applications, including question answering, disease diagnosis, and treatment planning. Yet two fundamental challenges remain for their reliable use in clinical practice. First, medical knowledge, including clinical guidelines and drug information, is continuously updated as new evidence emerges. Knowledge acquired during model training may therefore become outdated, as illustrated by a recent evaluation in which LLMs struggled to answer questions about newly approved drugs. Second, clinical decisions and recommendations require not only accurate information but also credible and verifiable supporting evidence. Healthcare professionals routinely consult authoritative sources, particularly in uncertain or high-stakes scenarios where accountability and transparency are critical. However, LLMs can generate inaccurate or unverifiable references, making it difficult to independently assess the evidence supporting their responses.

Retrieval-augmented generation (RAG) has emerged as a promising paradigm for addressing both challenges by enabling LLMs to incorporate external, up-to-date evidence during inference. In a conventional pipeline, passages are retrieved from indexed knowledge sources, such as biomedical literature, clinical guidelines, or institutional protocols, and provided as context for response generation. This approach aims to improve factuality and to make supporting evidence accessible for verification. RAG has increasingly been investigated in medical applications, including clinical question answering (QA), trial screening, triage, and diagnosis. Retrieval is also being integrated into emerging agentic systems for medical reasoning and biomedical research, in which agents may iteratively search for, evaluate, and synthesize external evidence.

Despite its growing adoption, the benefits of RAG for medical LLMs remain uncertain, particularly given reports that it can even degrade performance on medical tasks. Most existing evaluations have focused on end-task measures such as answer accuracy or response quality, which offer limited insight into why RAG improves or degrades performance. Recent work has assessed retrieval and generation errors using automated frameworks, examined citation attribution, and tested the effects of irrelevant or noisy retrieved passages on generation. However, few studies have used medical experts to systematically assess whether information essential to an adequate medical response is retrieved, cited, and reflected in responses, and how failures at these stages relate to factual errors and omissions. This type of expert evaluation may reveal weaknesses in medical RAG that are not apparent from end-task performance alone.

Building on these findings, we next investigated whether targeting the identified weaknesses could improve downstream performance. We used two established strategies, rationale-guided query reformulation to improve retrieval coverage and an evidence filter, trained on the expert relevance annotations from the 200 queries, to remove irrelevant passages. Their individual and combined effects were assessed with Llama models on held-out medical QA benchmarks, and the combined approach, termed enhanced RAG, was further evaluated across held-out settings. These evaluations included 2,374 questions from five public medical QA benchmarks, 1,278 JAMA Clinical Challenges spanning eight specialties, and 2,019 retrospective dermatology consultation records from the Yale New Haven Health System. We compared enhanced RAG with conventional RAG and the same models without RAG across nine proprietary, open-weight, and medically adapted LLMs on the QA benchmarks. Stage-wise expert evaluation of held-out JAMA cases examined whether the gains coincided with better retrieval and selection, and dermatologists assessed the differential diagnoses in a blinded evaluation.

Our findings revealed substantial weaknesses in conventional medical RAG. Only 22% of the top-16 retrieved passages were relevant, and nearly one-third of queries retrieved no relevant passage. Conventional RAG reduced factuality and completeness relative to the same models without RAG, and failures in retrieval and evidence selection were associated with factual errors and omitted information. Targeting these weaknesses improved performance in held-out evaluations, with enhanced RAG achieving higher mean accuracy than conventional RAG for all nine LLMs on the QA benchmarks and showing improvements in clinically oriented evaluations. However, improvements relative to non-RAG baselines varied across models and generally diminished as performance without RAG increased. We emphasize that adding external evidence does not necessarily improve medical LLM responses, and that the benefits of RAG vary across models and tasks. Evaluating how essential evidence is retrieved, cited, and reflected in responses can therefore expose failures that end-task performance conceals and guide targeted improvements.

Discussion

RAG has become a central means of augmenting LLMs with external knowledge and increasingly underpins agentic systems. In medicine, it provides access to evolving scientific evidence, clinical guidelines, and institution-specific information that may be absent or outdated in a model’s parametric knowledge. Yet access to additional evidence does not guarantee more reliable responses. In our stage-wise expert evaluation, conventional medical RAG frequently failed to retrieve information required for an adequate response, and models left relevant passages uncited and cited irrelevant ones. Missing or uncited required evidence was associated with lower response completeness, whereas citations of irrelevant passages were associated with lower factuality. We tested whether these weaknesses could guide improvements in held-out evaluations spanning medical QA benchmarks, published clinical cases, and retrospective patient records, with additional analyses across nine LLMs and varying retrieval configurations. Targeted enhancements improved performance over conventional RAG, although their incremental benefit over the same model without RAG generally narrowed as performance without RAG increased. These findings suggest that the value of medical RAG depends not simply on access to external knowledge, but on retrieving clinically required evidence, selecting it appropriately, and reflecting it in the response, and on the capabilities of the underlying model.

RAG inherits longstanding challenges from information retrieval, including relevance assessment and recall and query reformulation. Previous work has examined end-task performance in medical RAG, retrieval and generation errors using automated evaluation, citation attribution, and the effects of irrelevant or noisy context on generation. Less well characterized through clinical expert evaluation is how information required for an adequate medical response progresses from retrieval to citation and generated content, and how losses along this pathway relate to factual errors and omissions. Using 80,482 expert annotations, we linked required medical information, retrieved passages, cited references, and generated statements, and then tested whether changes targeting the identified weaknesses improved performance on held-out data. The result is a clinically grounded assessment of the evidence pathway that goes beyond final-answer performance.

The two bottlenecks were associated with different response errors. Statements citing irrelevant passages were less often factual, whereas must-have information was more often omitted when supporting evidence was not retrieved or cited, even when the model had included that information without RAG (Supplementary Note 3, Example 2). In one case, GPT-4o stated that 400 mg was the safest single dose of ibuprofen, matching the dose used in a cited pharmacokinetic study that did not address dose safety. In another, passages about the comic-book character Poison Ivy were retrieved for a query about whether poison ivy is contagious, and Llama-3.1-8B incorporated this irrelevant content into its response (Supplementary Note 4). Retrieval can therefore both help and hinder response quality. This may help reconcile studies reporting improved factuality with medical RAG with evidence that irrelevant context can distract LLMs.

The benefit of enhanced RAG relative to the non-RAG baseline generally narrowed as performance without RAG increased, and neither RAG approach improved the two highest-performing models. Conventional RAG reduced accuracy for most models, including a 5.0-percentage-point reduction for GPT-5.4 on the JAMA Clinical Challenges. This pattern may arise because stronger models already hold much of the established medical knowledge contained in common retrieval corpora and tested by public benchmarks and published cases. Retrieved passages then add little, whereas irrelevant or misleading ones can still lead them astray. Retrieval is likely to be most valuable when it supplies information that a model lacks, cannot reliably recall, or tends to confuse, and such gaps may narrow as baseline model performance increases. For the strongest models, useful evidence may therefore be more specific than what they have learned, potentially making it harder to retrieve and select. Evidence that is specialized, recently updated, or otherwise unavailable during model training may nevertheless remain valuable. Delivering such evidence could call for more elaborate pipelines, such as those using specialized knowledge sources or iterative and agentic retrieval, at greater computational cost and latency.

The limited benefit observed for the capable models does not imply that RAG is unnecessary for them. The settings that most motivate RAG in medicine, such as recently updated guidelines, institution-specific protocols, and a patient’s own records, involve information unavailable from model training and are rarely represented in benchmarks such as those in this study. RAG may also support attribution and auditability without accuracy gains, but this would require substantially better evidence selection, because many cited passages remained irrelevant with enhanced RAG. Adaptive methods that decide whether to retrieve on the basis of the model’s internal knowledge or the complexity of the query are a promising direction, but determining when external evidence will help a particular model remains difficult.

Our findings have several implications for clinical use. Better accuracy with RAG should not be equated with clinical safety, because RAG can also introduce factual errors and omissions that are not evident in the final response. Incorrect information may prompt an inappropriate decision, whereas omitting a contraindication or a diagnosis that should not be missed may cause harm even when the rest of the response is correct. In the stage-wise evaluation, conventional RAG reduced both factuality and completeness relative to the same models without RAG. Omissions can be particularly hard to recognize, because an otherwise coherent response may leave out essential information. Although enhanced RAG improved differential-diagnosis performance on the retrospective dermatology records, a severe or urgent documented diagnosis was missed in 6 of 40 cases in the blinded clinician evaluation, as often as with the other approaches.

Citations alone also do not make a response verifiable. Regulatory guidance for clinical decision support emphasizes that clinicians should be able to independently review the basis for certain recommendations so that they do not rely primarily on automated advice, and RAG can offer references for such review. However, the presence of citations does not itself establish adequate evidentiary support. In our evaluation, some generated references could not be verified to exist, models cited more irrelevant than relevant passages, and statements citing irrelevant passages were less often factual. Whether cited evidence actually supports a response therefore needs to be checked, particularly given the risk of over-reliance on automated recommendations.

Evaluations of retrieval-enabled tools already available to clinicians should accordingly extend beyond answer quality. Such tools, including commercial systems such as OpenEvidence, have often been assessed on answer accuracy, response quality, or the characteristics of returned references, and our findings suggest that they should also be assessed on whether clinically required evidence is retrieved, selected, and represented in the response. Even such assessments would not establish clinical benefit, because better outputs do not necessarily translate into better clinician decisions, as a randomized evaluation of LLM-assisted diagnostic reasoning showed. Our retrospective dermatology analysis extends the evaluation to a real-world clinical task, but establishing clinical utility and safety will require prospective studies in intended-use settings, including assessment of evidence traceability and clinical workflow integration.

Evidence selection

References were annotated only when the source the model intended to cite could be identified from the response. References for which this was unclear, for example because the reference entry was incomplete or did not correspond to any citation marker in the text, were not annotated and were not counted in the evidence-selection analysis. Each annotated reference in a RAG response was compared with each of the top 16 retrieved passages for the query, using the cited metadata (including title, source, and URL) together with passage content, and each reference–passage pair was recorded as matched if the reference was derived from that passage. When multiple retrieved passages matched a reference, all matching passages were recorded. References that could not be matched to any retrieved passage were classified as self-generated, and for a subset of queries, the same for both models, their existence was checked manually by searching the cited title, authors, and source. References with neither a recorded passage match nor a self-generated label (four, all from Llama-3.1-8B) were treated as unmapped.

Evidence selection

A retrieved passage was considered cited if at least one reference in the response was matched to it. Evidence-selection precision was defined as the proportion of cited retrieved passages that were relevant, and recall as the proportion of relevant retrieved passages that were cited. Because citations are the means by which a user can check the basis of a response, precision reflects whether the cited evidence is relevant, and recall reflects whether relevant evidence that reached the model was cited. Both were micro-averaged, pooling passages across all 200 RAG responses per model. Self-generated and unmapped references added no cited passages, because relevance annotations were available only for retrieved passages, and responses without annotated references (15 for GPT-4o and 39 for Llama-3.1-8B) were assigned no cited passages. The coverage of must-have statements by cited passages was calculated in the same way as Coverage@k, using only the retrieved passages cited in each response. Compared with Coverage@k, this measure shows how much of the required information was lost between retrieval and citation.

Retrospective real-world dermatology evaluation

To complement the public benchmarks with non-public real-world clinical data, we evaluated differential diagnosis generation using 2,019 retrospective dermatology consultation records from the Yale New Haven Health System. Differential diagnosis is a core clinical task that requires clinicians to synthesize available patient information and prioritize plausible diagnoses. The records were drawn from emergency department and inpatient dermatology consultations at two hospitals within the health system between 2014 and 2023. Because the dataset was originally assembled for image-based research, consultations were included only if clinical photographs had been taken and could be linked to the consultation record. Patients who had declined research participation were excluded. All eligible consultations were included without sampling. The study was approved by the Yale University Institutional Review Board (protocol no. 2000041054).

For each record, models received the text of the consultation note preceding the assessment section, including the chief complaint, history of present illness, and description of skin morphology. The assessment and all subsequent sections were excluded because they state the diagnosis. Photographs were not provided to the models. Models generated a ranked list of ten differential diagnoses without predefined answer choices, of which the top five were evaluated. The documented diagnoses were obtained from case logs maintained by the dermatology consultation service. Each entry recorded the final diagnosis at the end of the hospital consultation, after any biopsy and workup, or a differential diagnosis if uncertainty remained. These diagnoses were not updated on the basis of subsequent outpatient visits.

Blinded clinician evaluation of dermatology differentials

To complement the large-scale automated evaluation against documented diagnoses with direct clinical assessment, differential diagnoses generated by Llama-3.1-8B without RAG and with conventional and enhanced RAG were evaluated for 40 randomly selected dermatology records. Two dermatology residents independently reviewed the differentials while blinded to the approach. For each case, the three differentials were presented as models A, B, and C in a case-specific random order. Each of the top five predicted diagnoses was rated as yes, maybe, or no for diagnostic appropriateness, defined as whether the diagnosis was clinically appropriate to include in the differential given the information available in the case. This evaluation allowed diagnoses not documented in the clinical record to be considered appropriate when clinically plausible. Each differential was also rated as yes, maybe, or no for whether it omitted a severe or urgent diagnosis documented for the case. Disagreements were adjudicated by an attending dermatologist.