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.
翻译:暂无翻译