Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR AI

Date Submitted: Dec 19, 2025
Date Accepted: Oct 7, 2026

The final, peer-reviewed published version of this preprint can be found here:

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

Chiou YR, Lin YH, Liao CY, Huang CH, Hsu RT, Yu YY, Gao SY, Liao XP, Hu YP, Huang ET, See S, Liang JA, Lin TC

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

JMIR AI 2026;5:e89792

DOI: 10.2196/89792

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

  • Yu-Rou Chiou; 
  • Yang-Hsien Lin; 
  • Chih-Ying Liao; 
  • Chi-Hsien Huang; 
  • Rong-Tse Hsu; 
  • Ya-Yun Yu; 
  • Shi-Yu Gao; 
  • Xiao-Ping Liao; 
  • Yu-Pei Hu; 
  • Eddie TC Huang; 
  • Simon See; 
  • Ji-An Liang; 
  • Ting-Chun Lin

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 evaluated whether retrieval-augmented generation (RAG) improves LLM responses to common radiation oncology patient education questions and whether a smaller local model can approach the performance of a larger model when grounded in institutional knowledge.

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. Twenty Traditional Chinese benchmark questions were answered under four model conditions (70B, 70B+RAG, 8B, and 8B+RAG). After excluding the two physicians who prepared the reference answers, six clinical evaluators (four physicians, one nurse, and one case manager), all of whom were study co-investigators and coauthors but were independent of reference-answer preparation, rated all outputs on 1-5 scales for accuracy, patient-friendliness, and safety. Primary analyses used the six-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 versus 4.58 for accuracy, 4.07 versus 4.71 for patient-friendliness, and 4.47 versus 4.70 for safety; corresponding 8B scores were 2.90 versus 4.45, 3.12 versus 4.56, and 3.58 versus 4.70. 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=.057), 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 six-rater mean (all P<.001). The 8B+RAG and 70B+RAG mean total response times were 1.71 seconds (SD 0.38) and 2.98 seconds (SD 1.02), respectively.

Conclusions:

In this exploratory 20-question benchmark, retrieval grounding improved human-rated performance, particularly for the 8B model. 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.


 Citation

Please cite as:

Chiou YR, Lin YH, Liao CY, Huang CH, Hsu RT, Yu YY, Gao SY, Liao XP, Hu YP, Huang ET, See S, Liang JA, Lin TC

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

JMIR AI 2026;5:e89792

DOI: 10.2196/89792

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.