Retrieval-Augmented Generation for Radiation Oncology Patient Education: Comparative Evaluation of Large and Small Language Models
Background Large language models (LLMs) may support oncology patient education, but patient-facing deployment is limited by hallucinations, outdated information, and variable clinical safety without domain-specific grounding. Objective This exploratory study compared retrieval-augmented generation (RAG)–enabled and safety-constrained non-RAG configurations for common radiation oncology patient education questions and assessed whether an 8-billion-parameter (8B) model could approach the performance of a 70-billion-parameter (70B) model under the RAG-enabled configuration. Methods We developed a RAG-enabled radiation oncology education system using Llama-3.1 70B and 8B Instruct models, Traditional Chinese institutional patient education materials, Facebook AI Similarity Search (FAISS) vector search, and reranking. The configurations differed in retrieved context and prompt instructions. A total of 20 Traditional Chinese benchmark questions were answered under 4 model conditions (70B, 70B+RAG, 8B, and 8B+RAG). After excluding the 2 physicians (TCL and CYL) who prepared the reference answers, 6 clinical evaluators (4 physicians [CHH, RTH, YYY, and SYG], 1 nurse [XPL], and 1 case manager [YPH]), all of whom were study coinvestigators and coauthors but were independent of reference-answer preparation, rated all outputs on 1 to 5 scales for accuracy, patient-friendliness, and safety. Primary analyses used the 6-rater mean and crossed linear mixed-effects models with random intercepts for rater and question. Llama-3.1 70B was evaluated secondarily as a judge LLM. Results For 70B without versus with RAG, mean scores were 4.08 (SD 0.61) vs 4.58 (SD 0.44) for accuracy, 4.07 (SD 0.43) vs 4.71 (SD 0.22) for patient-friendliness, and 4.47 (SD 0.48) vs 4.70 (SD 0.38) for safety; corresponding 8B scores were 2.90 (SD 1.33) vs 4.45 (SD 0.45), 3.12 (SD 1.14) vs 4.56 (SD 0.41), and 3.58 (SD 0.82) vs 4.70 (SD 0.37). In the mixed-effects models, the RAG-minus-non-RAG contrasts for 70B were 0.50 (95% CI 0.24‐0.76; P <.001), 0.64 (95% CI 0.41‐0.88; P <.001), and 0.23 (95% CI −0.01 to 0.47; P =.06), respectively. For 8B, the contrasts were 1.55 (95% CI 1.29‐1.81), 1.44 (95% CI 1.21‐1.68), and 1.13 (95% CI 0.88‐1.37), respectively (all P <.001). All model size-by-RAG interactions were significant (all P <.001), indicating larger RAG-associated gains for 8B. Judge LLM scores showed Spearman correlations of 0.709 for accuracy, 0.607 for patient-friendliness, and 0.463 for safety with the 6-rater mean (all P <.001). The 8B+RAG and 70B+RAG mean total response times were 1.71 (SD 0.38) seconds and 2.98 (SD 1.02) seconds, respectively. Conclusions In this exploratory 20-question benchmark, RAG-enabled configurations achieved higher human-rated scores, particularly for 8B. These comparisons reflect both retrieved context and differences in prompt instructions. The modest and less robust safety gain for 70B, variable interrater reliability, and weaker judge LLM agreement for safety support cautious interpretation and continued clinical expert oversight.
Authors
- Chih-Ying Liao (ORCID: https://orcid.org/0009-0008-9706-038X)
- Tzung-Chi Huang (ORCID: https://orcid.org/0000-0001-5896-9170)
- Rong-Tse Hsu (ORCID: https://orcid.org/0009-0008-5985-0866)
- Xiaoping Liao (ORCID: https://orcid.org/0000-0002-9852-910X)
- Simon Chong Wee See (ORCID: https://orcid.org/0000-0002-4958-9237)
- Ji‐An Liang (ORCID: https://orcid.org/0000-0002-4170-7155)
- Chi-Hsien Huang (ORCID: https://orcid.org/0000-0002-8948-4827)
- Yu-Rou Chiou
- Ting‐Chun Lin (ORCID: https://orcid.org/0000-0001-7918-0224)
- Yang-Hsien Lin
- Ya-Yun Yu
- Shi-Yu Gao (ORCID: https://orcid.org/0009-0009-3496-9112)
- Yu-Pei Hu (ORCID: https://orcid.org/0009-0007-3168-6753)
Publication Details
- Journal
- JMIR AI
- Published
- 2026-11-30
- DOI
- https://doi.org/10.2196/89792
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 0.00