Retrieval-Augmented Guardrails for AI-Drafted Patient-Portal Messages: Error Taxonomy Construction and Large-Scale Evaluation
On the map: Retrieval-augmented generation → Medical and biomedical RAG
Abstract (arXiv)
Asynchronous patient-clinician messaging via EHR portals is a growing source of clinician workload, prompting interest in large language models (LLMs) to assist with draft responses. However, LLM outputs may contain clinical inaccuracies, omissions, or tone mismatches, making robust evaluation essential. Our contributions are threefold: (1) we introduce a clinically grounded error ontology comprising 5 domains and 59 granular error codes, developed through inductive coding and expert adjudication; (2) we develop a retrieval-augmented evaluation pipeline (RAEC) that leverages semantically similar historical message-response pairs to improve judgment quality; and (3) we provide a two-stage prompting architecture using DSPy to enable scalable, interpretable, and hierarchical error detection. Our approach assesses the quality of drafts both in isolation and with reference to similar past message-response pairs retrieved from institutional archives. Using a two-stage DSPy pipeline, we compared baseline and reference-enhanced evaluations on over 1,500 patient messages. Retrieval context improved error identification in domains such as clinical completeness and workflow appropriateness. Human validation on 100 messages demonstrated superior agreement (concordance = 50% vs. 33%) and performance (F1 = 0.500 vs. 0.256) of context-enhanced labels vs. baseline, supporting the use of our RAEC pipeline as AI guardrails for patient messaging.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Medical and biomedical RAG, one of 15 directions in Retrieval-augmented generation. Builds on 0 of its 1 references that are in the map. First posted on arXiv 26 Sep 2025.
Builds on
0 of 1 references.
No references here yet.
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026BLUEmed: Retrieval-Augmented Multi-Agent Debate for Clinical Error Detection
- 2025MedRECT: A Medical Reasoning Benchmark for Error Correction in Clinical Texts
- 2025A Systematic Analysis of Large Language Models with RAG-enabled Dynamic Prompting for Medical Error Detection and Correction
- 2025Evaluating Retrieval-Augmented Generation vs. Long-Context Input for Clinical Reasoning over EHRs
- 2026How Much Would a Clinician Edit This Draft? Evaluating LLM Alignment for Patient Message Response Drafting
- 2026Deployment-Centered Evaluation: Predicting Query-Level Rejection Risk in a Clinical LLM System
- 2025Retrieval-Augmented Framework for LLM-Based Clinical Decision Support
- 2025Why Chain of Thought Fails in Clinical Text Understanding