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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Retrieval-Augmented Generation for Radiation Oncology Patient Education: Comparative Evaluation of Large and Small Language Models

Chih-Ying Liao, Tzung-Chi Huang, Rong-Tse Hsu, Xiaoping Liao et al.
JMIR AI
Artificial Intelligence in Healthcare and Education
article

Retrieval-Augmented Generation for Radiation Oncology Patient Education: Comparative Evaluation of Large and Small Language Models

Chih-Ying Liao, Tzung-Chi Huang, Rong-Tse Hsu, Xiaoping Liao, Simon Chong Wee See, Ji‐An Liang, Chi-Hsien Huang, Yu-Rou Chiou, Ting‐Chun Lin, Yang-Hsien Lin, Ya-Yun Yu, Shi-Yu Gao, Yu-Pei Hu
article en

Abstract

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.

JMIR AIVol. 5
Artificial Intelligence in Healthcare and Education
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon