<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.0 20040830//EN" "journalpublishing.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="2.0" xml:lang="en" article-type="research-article"><front><journal-meta><journal-id journal-id-type="nlm-ta">J Med Internet Res</journal-id><journal-id journal-id-type="publisher-id">jmir</journal-id><journal-id journal-id-type="index">1</journal-id><journal-title>Journal of Medical Internet Research</journal-title><abbrev-journal-title>J Med Internet Res</abbrev-journal-title><issn pub-type="epub">1438-8871</issn><publisher><publisher-name>JMIR Publications</publisher-name><publisher-loc>Toronto, Canada</publisher-loc></publisher></journal-meta><article-meta><article-id pub-id-type="publisher-id">v28i1e90692</article-id><article-id pub-id-type="doi">10.2196/90692</article-id><article-categories><subj-group subj-group-type="heading"><subject>Original Paper</subject></subj-group></article-categories><title-group><article-title>Fine-Tuning, Retrieval-Augmented Generation, and Hybrid Large Language Models for Postoperative Decision Support: Comparative Analysis</article-title></title-group><contrib-group><contrib contrib-type="author"><name name-style="western"><surname>Prabha</surname><given-names>Srinivasagam</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Collaco</surname><given-names>Bernardo Gabriele</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Gomez-Cabello</surname><given-names>Cesar Abraham</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Haider</surname><given-names>Syed Ali</given-names></name><degrees>MBBS</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Genovese</surname><given-names>Ariana</given-names></name><degrees>BS</degrees><xref ref-type="aff" rid="aff1">1</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Fang</surname><given-names>Zhihui</given-names></name><degrees>MS</degrees><xref ref-type="aff" rid="aff2">2</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Wood</surname><given-names>Nadia</given-names></name><degrees>MS</degrees><xref ref-type="aff" rid="aff3">3</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Bagaria</surname><given-names>Sanjay</given-names></name><degrees>MD</degrees><xref ref-type="aff" rid="aff4">4</xref></contrib><contrib contrib-type="author"><name name-style="western"><surname>Tao</surname><given-names>Cui</given-names></name><degrees>PhD</degrees><xref ref-type="aff" rid="aff5">5</xref></contrib><contrib contrib-type="author" corresp="yes"><name name-style="western"><surname>Forte</surname><given-names>Antonio Jorge</given-names></name><degrees>MD, PhD</degrees><xref ref-type="aff" rid="aff1">1</xref><xref ref-type="aff" rid="aff5">5</xref><xref ref-type="aff" rid="aff6">6</xref></contrib></contrib-group><aff id="aff1"><institution>Division of Plastic Surgery, Mayo Clinic in Florida</institution><addr-line>4500 San Pablo Road South</addr-line><addr-line>Jacksonville</addr-line><addr-line>FL</addr-line><country>United States</country></aff><aff id="aff2"><institution>Division of Clinical Trials and Biostatistics, Mayo Clinic in Florida</institution><addr-line>Jacksonville</addr-line><addr-line>FL</addr-line><country>United States</country></aff><aff id="aff3"><institution>Department of Radiology AI IT, Mayo Clinic</institution><addr-line>Rochester</addr-line><addr-line>MN</addr-line><country>United States</country></aff><aff id="aff4"><institution>Department of Surgery, Mayo Clinic in Florida</institution><addr-line>Jacksonville</addr-line><addr-line>FL</addr-line><country>United States</country></aff><aff id="aff5"><institution>Department of Artificial Intelligence and Informatics, Mayo Clinic in Florida</institution><addr-line>Jacksonville</addr-line><addr-line>FL</addr-line><country>United States</country></aff><aff id="aff6"><institution>Center for Digital Health, Mayo Clinic</institution><addr-line>Rochester</addr-line><addr-line>MN</addr-line><country>United States</country></aff><contrib-group><contrib contrib-type="editor"><name name-style="western"><surname>Coristine</surname><given-names>Andrew</given-names></name></contrib></contrib-group><contrib-group><contrib contrib-type="reviewer"><name name-style="western"><surname>Yin</surname><given-names>Rong</given-names></name></contrib><contrib contrib-type="reviewer"><name name-style="western"><surname>Donner</surname><given-names>Stefanie</given-names></name></contrib></contrib-group><author-notes><corresp>Correspondence to Antonio Jorge Forte, MD, PhD, Division of Plastic Surgery, Mayo Clinic in Florida, 4500 San Pablo Road South, Jacksonville, FL, 32224, United States, 1 904-953-2000; <email>ajvforte@yahoo.com.br</email></corresp></author-notes><pub-date pub-type="collection"><year>2026</year></pub-date><pub-date pub-type="epub"><day>14</day><month>7</month><year>2026</year></pub-date><volume>28</volume><elocation-id>e90692</elocation-id><history><date date-type="received"><day>01</day><month>01</month><year>2026</year></date><date date-type="rev-recd"><day>09</day><month>06</month><year>2026</year></date><date date-type="accepted"><day>10</day><month>06</month><year>2026</year></date></history><copyright-statement>&#x00A9; Srinivasagam Prabha, Bernardo Gabriele Collaco, Cesar Abraham Gomez-Cabello, Syed Ali Haider, Ariana Genovese, Zhihui Fang, Nadia Wood, Sanjay Bagaria, Cui Tao, Antonio Jorge Forte. Originally published in the Journal of Medical Internet Research (<ext-link ext-link-type="uri" xlink:href="https://www.jmir.org">https://www.jmir.org</ext-link>), 14.7.2026. </copyright-statement><copyright-year>2026</copyright-year><license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (<ext-link ext-link-type="uri" xlink:href="https://creativecommons.org/licenses/by/4.0/">https://creativecommons.org/licenses/by/4.0/</ext-link>), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on <ext-link ext-link-type="uri" xlink:href="https://www.jmir.org/">https://www.jmir.org/</ext-link>, as well as this copyright and license information must be included.</p></license><self-uri xlink:type="simple" xlink:href="https://www.jmir.org/2026/1/e90692"/><abstract><sec><title>Background</title><p>Large language models (LLMs) show growing potential for decision support. However, integrating domain-specific medical knowledge while maintaining accuracy, safety, and interpretability remains challenging for postoperative discharge instructions and patient education. Fine-tuning, retrieval-augmented generation (RAG), and hybrid fine-tuning+RAG approaches are prominent strategies for knowledge integration, but their comparative performance in postoperative care has not been systematically evaluated.</p></sec><sec><title>Objective</title><p>We aimed to compare the performance, reliability, and safety characteristics of baseline, fine-tuning, RAG, and hybrid fine-tuning+RAG LLM configurations for postoperative decision support.</p></sec><sec sec-type="methods"><title>Methods</title><p>We conducted a comparative evaluation of 4 LLM configurations using Google Gemini 2.5 Flash. A total of 600 postoperative question and answer pairs were used for model adaptation and validation, while 150 queries were reserved for final evaluation. Queries included routine postoperative questions, emergency escalation scenarios, and deliberately out-of-scope prompts. Outputs were independently assessed by 3 blinded clinical experts for clinical medical accuracy, safety or refusal accuracy, completeness, and relevance. Automated metrics evaluated readability, faithfulness, and hallucination propensity.</p></sec><sec sec-type="results"><title>Results</title><p>All knowledge-enhanced models significantly outperformed baseline in overall accuracy (baseline 68% vs fine-tuning 92.7%, RAG 91.3%, fine-tuning+RAG 97.3%; <italic>P</italic>&#x003C;.001). For in-scope clinical queries, fine-tuning+RAG achieved the highest clinical medical accuracy (96.7%) and was the only configuration to significantly outperform baseline in pairwise comparisons. Enhanced models also demonstrated higher safety or refusal accuracy than baseline; however, the baseline configuration did not receive equivalent safety or deferral instructions, which likely influenced these findings. Fine-tuning+RAG achieved the strongest composite classification performance, including 100% precision, 96.7% recall, and 98.3% <italic>F</italic><sub>1</sub>-score. Fine-tuning and RAG showed broadly comparable performance across most secondary outcomes. Although knowledge-enhanced models demonstrated lower readability than baseline, restricted analysis of 100 routine in-scope postoperative queries suggested that part of this difference was attributable to standardized safety boilerplate.</p></sec><sec sec-type="conclusions"><title>Conclusions</title><p>Incorporating domain-specific knowledge through fine-tuning, RAG, or both improved postoperative decision-support performance compared with the baseline LLM. All knowledge-enhanced approaches demonstrated strong performance, with the hybrid fine-tuning+RAG configuration achieving the most favorable overall point estimates across several outcomes. However, differences among the enhanced configurations were generally modest and less evident in sensitivity analyses restricted to unanimously rated queries. These findings support knowledge-enhanced LLMs as promising tools for postoperative education and decision support, while highlighting the need for further validation, readability optimization, transparent governance, and sustained human oversight before patient-facing deployment.</p></sec></abstract><kwd-group><kwd>AI</kwd><kwd>large language models</kwd><kwd>retrieval-augmented generation</kwd><kwd>fine-tuning</kwd><kwd>decision support</kwd><kwd>postoperative care</kwd></kwd-group></article-meta></front><body><sec id="s1" sec-type="intro"><title>Introduction</title><p>The deployment of large language models (LLMs) in real-world applications has highlighted a critical challenge: effectively incorporating domain-specific knowledge while maintaining model capabilities, and ensuring information currency and accuracy, particularly in contexts such as postoperative discharge protocols, recognition of red-flag symptoms, and updates to anticoagulation or analgesia instructions [<xref ref-type="bibr" rid="ref1">1</xref>-<xref ref-type="bibr" rid="ref3">3</xref>]. Two predominant paradigms have emerged to address this challenge: retrieval-augmented generation (RAG) and fine-tuning approaches [<xref ref-type="bibr" rid="ref4">4</xref>]. More recently, hybrid methodologies combining both strategies have shown promising results, suggesting that synergistic integration of fine-tuning and retrieval may offer complementary advantages over exclusive reliance on a single paradigm [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref6">6</xref>].</p><p>Fine-tuning involves adapting a pretrained model by continuing its training on a task-specific dataset, allowing it to internalize patterns and knowledge tailored to a particular domain or use case [<xref ref-type="bibr" rid="ref7">7</xref>]. This approach can significantly improve performance in narrow tasks but requires labeled data, computational resources, and risks forgetting prior knowledge, in which fine-tuning on specialized data can partially overwrite previously learned general knowledge [<xref ref-type="bibr" rid="ref7">7</xref>,<xref ref-type="bibr" rid="ref8">8</xref>]. In contrast, RAG enhances an LLM&#x2019;s performance by integrating external knowledge sources during inference, without altering the model&#x2019;s weights [<xref ref-type="bibr" rid="ref4">4</xref>]. By retrieving relevant documents and incorporating them into the generation context, RAG can dynamically respond to queries with more accurate, grounded outputs [<xref ref-type="bibr" rid="ref4">4</xref>,<xref ref-type="bibr" rid="ref5">5</xref>]. This approach is especially advantageous when information changes rapidly, or interpretability and traceability are essential [<xref ref-type="bibr" rid="ref5">5</xref>].</p><p>While both strategies offer distinct advantages, recent work has explored hybrid approaches that combine fine-tuning with retrieval mechanisms [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref9">9</xref>]. These systems aim to leverage the generalization and adaptability of fine-tuned models alongside the factual grounding and flexibility of retrieval-based augmentation (<xref ref-type="fig" rid="figure1">Figure 1</xref>). However, the practical constraints and interactions among these techniques remain poorly understood, particularly in patient-facing postoperative decision support, where models must adapt to domain-specific guidance while providing timely, evidence-based information to patients outside the clinical encounter [<xref ref-type="bibr" rid="ref6">6</xref>,<xref ref-type="bibr" rid="ref10">10</xref>].</p><fig position="float" id="figure1"><label>Figure 1.</label><caption><p>Conceptual overview of knowledge integration strategies. The diagram illustrates the 3 LLM configurations: a baseline LLM operating without external knowledge integration; the RAG framework, in which the model retrieves relevant external documents at inference time to ground responses; and a fine-tuned model, where domain-specific knowledge is incorporated directly into model parameters through supervised training. Hybrid approaches combine elements of both RAG and FT to leverage complementary strengths. Created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>]. FT: fine-tuning; LLM: large language model; RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig01.png"/></fig><p>In this paper, we conduct a comparative study of four configurations of AI systems: (1) a baseline LLM model, (2) a fine-tuned model, (3) an RAG-based model, and (4) a hybrid system that combines fine-tuning with RAG. We evaluate their performance, quality, and reliability across domain-specific question-answering, also enabling systematic pairwise comparisons among all approaches. Our findings highlight the strengths and limitations of each paradigm and provide insights into model configurations for patient-facing postoperative decision support, including the generation of safe and accurate discharge instructions.</p></sec><sec id="s2" sec-type="methods"><title>Methods</title><sec id="s2-1"><title>Study Design</title><p>This study used a controlled comparative evaluation framework to assess four LLM configurations for postoperative discharge support: (1) a baseline Google Gemini 2.5 Flash-001 model used without modification, (2) a supervised fine-tuned model adapted for postoperative question-answering, (3) an RAG system grounded in a curated postoperative knowledge base, and (4) a combined fine-tuning+RAG system using the fine-tuned model as the generator while retaining the same retrieval pipeline. All configurations were evaluated under identical infrastructure and decoding settings. Prompting varied according to the intended architecture, with the baseline model receiving question-only inputs and the knowledge-enhanced configurations receiving additional prompt instructions. The systems were designed as postoperative information support tools rather than diagnostic or triage systems and were instructed to provide guideline-concordant education regarding recovery, self-care, red-flag symptoms, and escalation recommendations when appropriate.</p></sec><sec id="s2-2"><title>Dataset and Split Strategy</title><p>Two disjoint datasets were used. First, an adaptation dataset of 600 expert-authored postoperative question and answer (QA) pairs was used exclusively for model development. These QA pairs were derived from publicly available, evidence-based postoperative discharge instructions and patient education materials and authored by 2 postoperative care experts: a board-certified surgeon and a plastic surgery clinician-researcher. The same source materials were also used to construct the curated gold-standard reference responses and the RAG knowledge base to ensure consistent clinical grounding. The dataset was formatted as chat-style JSONL records compatible with Vertex AI tuning and randomly split into 450 training and 150 validation examples (<xref ref-type="supplementary-material" rid="app1">Multimedia Appendices 1</xref> and <xref ref-type="supplementary-material" rid="app2">2</xref>). The validation set was used for model selection, including early stopping and retrieval hyperparameter tuning.</p><p>Second, a separate held-out evaluation set of 150 patient-style queries was reserved exclusively for final benchmarking across all 4 configurations. The evaluation set included 100 routine postoperative questions, 20 emergency escalation scenarios, and 30 deliberately out-of-scope queries unrelated to postoperative care. The 100 routine postoperative queries were not used during fine-tuning, retrieval tuning, prompt iteration, or model selection. However, the 50 safety-category queries (emergency and out-of-scope prompts) were present verbatim in the validation set. Data separation was enforced at the question level with deduplication to minimize leakage and near-duplicate contamination.</p><p>To further evaluate the separation between adaptation and held-out evaluation data, we conducted a semantic distinctness analysis using sentence-embedding cosine similarity. No exact duplicate questions were identified between training and evaluation sets (0/100 in-domain queries). The mean maximum cosine similarity between in-domain evaluation and training queries was 0.822 (SD 0.095), comparable to the within-training leave-one-out baseline (mean 0.820, SD 0.097), suggesting similarity consistent with shared domain content rather than memorization (<xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>).</p><p>In total, this study evaluated 750 QA instances (600 adaptation examples and 150 held-out evaluation queries), as summarized in <xref ref-type="table" rid="table1">Table 1</xref>. Although all prompts were expert-authored and synthetic, they were systematically derived from the guideline corpus and phrased to resemble patient-style postoperative questions [<xref ref-type="bibr" rid="ref12">12</xref>-<xref ref-type="bibr" rid="ref14">14</xref>].</p><table-wrap id="t1" position="float"><label>Table 1.</label><caption><p>Dataset composition and split strategy across model development stages.</p></caption><table id="table1" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Dataset split</td><td align="left" valign="bottom">Queries, n</td><td align="left" valign="bottom">Purpose</td><td align="left" valign="bottom">Content description</td></tr></thead><tbody><tr><td align="left" valign="top">Training set</td><td align="left" valign="top">450</td><td align="left" valign="top">FT<sup><xref ref-type="table-fn" rid="table1fn1">a</xref></sup></td><td align="left" valign="top">QA<sup><xref ref-type="table-fn" rid="table1fn2">b</xref></sup> JSONL pairs formatted for Vertex AI tuning</td></tr><tr><td align="left" valign="top">Validation set</td><td align="left" valign="top">150</td><td align="left" valign="top">Model selection and retrieval hyperparameter tuning</td><td align="left" valign="top">QA JSONL pairs examples distinct from training data</td></tr><tr><td align="left" valign="top">Evaluation set</td><td align="left" valign="top"/><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Out-of-scope queries</td><td align="left" valign="top">30</td><td align="left" valign="top">Boundary recognition and safe refusal evaluation</td><td align="left" valign="top">Questions unrelated to postoperative care</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Emergency scenarios</td><td align="left" valign="top">20</td><td align="left" valign="top">Escalation and safety assessment</td><td align="left" valign="top">Acute or urgent postoperative situations</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Postoperative care queries</td><td align="left" valign="top">100</td><td align="left" valign="top">Clinical performance evaluation</td><td align="left" valign="top">Common postoperative topics: pain management; postoperative nausea and vomiting; drain management; follow-up appointments; diet/food to eat after surgery; resuming physical activity; scars; sutures; and sexual activity</td></tr><tr><td align="left" valign="top">Total evaluated instances</td><td align="left" valign="top">750</td><td align="left" valign="top">Model development</td><td align="left" valign="top">600 adaptation examples +150 evaluation queries</td></tr></tbody></table><table-wrap-foot><fn id="table1fn1"><p><sup>a</sup>FT: fine-tuning.</p></fn><fn id="table1fn2"><p><sup>b</sup>QA: question and answer.</p></fn></table-wrap-foot></table-wrap></sec><sec id="s2-3"><title>Baseline Model</title><p>As the reference condition, we used Google&#x2019;s Gemini 2.5 Flash-001 model without fine-tuning or RAG. For each query, the model received only the patient-style question from the held-out 150-question evaluation set and generated a response without additional instructional framing or contextual input. The input format is provided in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>. No external documents, retrieval outputs, or supplementary prompts were provided. Gemini-2.5-Flash was selected because it offers strong general medical reasoning [<xref ref-type="bibr" rid="ref15">15</xref>,<xref ref-type="bibr" rid="ref16">16</xref>], a very long context window, and first-class support within Google Cloud Vertex AI, which allowed us to run all 4 configurations (baseline, fine-tuning, RAG, and fine-tuning+RAG) under the same infrastructure and safety settings.</p><p>Decoding settings were held constant across all configurations (temperature=0.2, top-p=1.0, and <italic>max_output_tokens</italic>=2048) to emphasize reproducible and fact-focused responses. In LLMs, a &#x201C;token&#x201D; represents a unit of text, typically a word or subword fragment, used internally for processing and generation [<xref ref-type="bibr" rid="ref17">17</xref>]. The <italic>max_output_tokens</italic> parameter, therefore, defines the maximum length of the generated response in these token units.</p><p>The temperature was set to 0.2 to reduce randomness and encourage clinically consistent outputs. The top-p parameter was set to 1.0, allowing the model to sample from the full probability distribution without artificial truncation. A maximum output length of 2048 tokens was selected to permit sufficiently detailed postoperative guidance while avoiding excessively long responses that could reduce clarity or comparability across configurations. In practice, none of the responses in the 150-question evaluation reached this limit, indicating that output length was driven by prompt structure rather than token constraints. Consequently, truncation did not influence completeness, readability, or comparative performance metrics.</p><p>By using Gemini 2.5 Flash in its standard configuration without domain-specific alignment or boundary-conditioning prompts, this study establishes a pragmatic baseline representing general-purpose LLM deployment. This approach allows comparison against models specialized through supervised adaptation and/or retrieval augmentation, while acknowledging that prompt optimization could further influence safety-alignment performance [<xref ref-type="bibr" rid="ref12">12</xref>,<xref ref-type="bibr" rid="ref18">18</xref>-<xref ref-type="bibr" rid="ref21">21</xref>].</p></sec><sec id="s2-4"><title>Fine-Tuned Model</title><sec id="s2-4-1"><title>Training Dataset Preparation and Split</title><p>We fine-tuned Gemini-2.5-Flash in a supervised fashion for postoperative care question-answering. The fine-tuning corpus comprised 600 expert-authored QA pairs stored in JSONL format as chat-style examples compatible with the Vertex AI tuning application programming interface. Each record contained a patient-style postoperative question and a corresponding answer addressing topics such as pain control, drain management, alarm signs, and wound care.</p><p>To enable learning while preserving a robust hold-out set, we randomly partitioned these 600 examples into 450 for training and 150 for validation. This split was chosen to (1) give adequate coverage of 20 high-frequency postoperative themes during optimization, and (2) maintain a sizeable, independent validation set to monitor generalization and detect overfitting in a low-data clinical adaptation setting. Apart from formatting into the required chat schema, no heavy preprocessing was applied; the examples used the same prompt-response structure as during inference, so that fine-tuning directly taught the desired style and tone.</p></sec><sec id="s2-4-2"><title>Parameter-Efficient Fine-Tuning With Adapters</title><p>Given the size of Gemini-2.5-Flash and the relatively small domain dataset, we adopted a parameter-efficient fine-tuning (PEFT) strategy rather than updating all backbone weights. Trainable adapter modules with a bottleneck dimension of 16 were inserted into each transformer block while the original model parameters remained frozen [<xref ref-type="bibr" rid="ref22">22</xref>].</p><p>The adapter size of 16 was selected after exploratory experiments with smaller bottlenecks (2, 4, and 8) trained for 10 epochs. Smaller adapter dimensions produced weaker validation performance, whereas size 16 achieved the best balance of validation accuracy and reduced hallucination without evidence of instability. Larger adapter dimensions were not pursued because they would increase trainable parameters and overfitting risk without clear evidence of additional benefit.</p><p>Fine-tuning was framed as a supervised sequence-to-sequence task using cross-entropy loss between generated and reference responses. The default Vertex AI learning-rate schedule was scaled by a factor of 0.5 to encourage stable low-data adaptation while preserving general medical reasoning capabilities in the frozen backbone.</p></sec></sec><sec id="s2-5"><title>Number of Epochs and Early Stopping Rationale (20 Epochs)</title><p>Adapter training was run for 20 epochs over the 450 training examples. The decision to stop at 20 epochs was informed by a small ablation and overfitting risk: (1) models trained for 5, 10, and 15 epochs showed stepwise improvements in validation performance as the number of passes increased; (2) extending to 20 epochs produced the best combination of high validation accuracy and low validation loss, without signs of degradation or instability; and (3) exploratory runs beyond 20 epochs on the same 450 examples did not yield consistent further gains and increased the risk of overfitting to particular phrasings and document idiosyncrasies, without introducing new information.</p><p>Given the modest corpus and the observed plateau at 20 epochs, we treated 20 as an implicit early-stopping point. Consistent with standard practice in clinical natural language processing, we favored a slightly undertrained but stable model over one that might overfit after many repeated passes through a small dataset. The 150-example validation set was large enough to detect emerging overfitting; none was observed at 20 epochs, whereas the risk would likely increase with additional epochs in the absence of more data.</p><p>Intermediate checkpoints, including a midtraining checkpoint, were enabled to track learning dynamics. The checkpoint at epoch 20, showing the best balance of validation accuracy, validation loss, and qualitative behavior, was chosen as the final fine-tuning model.</p></sec><sec id="s2-6"><title>Computational Setup and Algorithmic Summary</title><p>All fine-tuning jobs were run in the us-central1 region using a high-memory Vertex AI tuning configuration (96 virtual CPUs, 360 GB RAM with GPU acceleration). The specific GPU model and GPU count were not exposed in the Vertex AI job metadata available to the authors. Under this configuration, each 20-epoch run completed in roughly 30&#x2010;45 minutes, highlighting that adapter-based PEFT is feasible for clinical research teams without very large GPU clusters.</p><p>Please see algorithm 1 (<xref ref-type="other" rid="box1">Textbox 1</xref>).</p><p>The resulting fine-tuned model was evaluated both as a standalone fine-tuning configuration and as the generator in the fine-tuning+RAG setting, while baseline and RAG-only configurations provided comparison conditions (<xref ref-type="fig" rid="figure2">Figure 2</xref>).</p><boxed-text id="box1"><title> Adapter-based fine-tuning of Gemini-2.5-Flash (20 epochs).</title><list list-type="order"><list-item><p>Initialize the pretrained Gemini-2.5-Flash backbone and freeze all original weights.</p></list-item><list-item><p>Insert trainable adapter modules with a bottleneck dimension of 16 into each transformer block.</p></list-item><list-item><p>Format 450 training and 150 validation question and answer pairs as JSONL chat records (user query+reference answer).</p></list-item><list-item><p>Train the adapters for 20 epochs using cross-entropy loss and a learning-rate schedule scaled by 0.5, iterating over the training set 20 times.</p></list-item><list-item><p>After each epoch, evaluate on the 150-example validation set and monitor performance for improvement or overfitting.</p></list-item><list-item><p>Select the epoch-20 checkpoint as the fine-tuning model based on superior validation accuracy and a stable loss trajectory.</p></list-item></list></boxed-text><fig position="float" id="figure2"><label>Figure 2.</label><caption><p>Adapter-based fine-tuning framework of Gemini-2.5-Flash. Postoperative QA data were split into training and validation sets, fine-tuned using a frozen pretrained model with adapter modules, and evaluated on a held-out test set of 150 clinical queries. Created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>]. PEFT: parameter-efficient fine-tuning; QA: question and answer.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig02.png"/></fig></sec><sec id="s2-7"><title>RAG-Only Model</title><p>We next implemented an RAG framework that allows the model to consult an external knowledge base at inference time, extending its factual coverage beyond what is stored in the model&#x2019;s weights. The RAG system was developed following established methodologies for integrating clinical knowledge into LLM workflows [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref20">20</xref>,<xref ref-type="bibr" rid="ref23">23</xref>]. The complete instruction is provided in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>.</p></sec><sec id="s2-8"><title>Knowledge Base Construction and Chunking</title><p>A dedicated postoperative care knowledge corpus was constructed and used identically for the RAG and fine-tuning+RAG configurations to ensure consistency across experimental conditions. The corpus consisted of an approximately 360-page (&#x2248;7 MB) database of general surgery postoperative patient education materials covering wound care, hygiene, medications, activity restrictions, complication monitoring, and emergency escalation. Content was curated by the current study&#x2019;s team from publicly available, evidence-based institutional and peer-reviewed sources (eg, National Health Service, academic medical centers, MedlinePlus, and PubMed-indexed literature) accessed in April 2025 [<xref ref-type="bibr" rid="ref24">24</xref>-<xref ref-type="bibr" rid="ref33">33</xref>]. Sources were included if they reflected current standard-of-care postoperative guidance from reputable academic or professional organizations; nonprofessional or guideline-discordant materials were excluded. The corpus included both narrative educational documents and a structured concern-tag index to support retrieval granularity. All materials were securely stored in a private Google Cloud Storage bucket protected by VPC (virtual private cloud) Service Controls [<xref ref-type="bibr" rid="ref21">21</xref>].</p><p>Before indexing, the corpus was divided into overlapping segments with a maximum length of 2048 tokens and a 128-token overlap between adjacent chunks using a sliding-window approach. The selected chunk size was intended to preserve clinically coherent sections of postoperative guidance, such as medication instructions, red-flag symptoms, and follow-up recommendations, within a single retrievable unit while maintaining sufficient granularity for similarity-based retrieval. The overlap was introduced to reduce fragmentation of clinically relevant information across chunk boundaries while minimizing redundancy that could increase retrieval noise. Token counts were computed using the <italic>cl100k_base tokenizer</italic> to ensure alignment between the embedding model and downstream LLM generation.</p></sec><sec id="s2-9"><title>Indexing and Embeddings</title><p>For each postoperative knowledge chunk, we computed a dense vector representation using the Google Vertex AI embedding model gemini-embedding-001. The same model was used to embed user queries at inference time. All embeddings were stored in an FAISS (Facebook AI similarity search) index (implemented via the LangChain FAISS vector store) using inner-product similarity for approximate nearest-neighbor search. This embedding&#x2013;index configuration was fixed and reused across all RAG-based experiments (RAG and fine-tuning+RAG) to ensure a consistent retrieval backbone. Aside from basic text cleaning, we did not perform manual topic filtering or pruning; relevance was determined automatically by the embedding-based search.</p></sec><sec id="s2-10"><title>Hybrid Retrieval Strategy</title><p>To enhance retrieval quality, we combined semantic similarity and lexical overlap within a single relevance score. For each candidate chunk, we computed a relevance score as score=&#x03B1;&#x00B7;semantic _similarity+(1&#x2212;&#x03B1;)&#x00B7;lexical_overlap, with &#x03B1;=0.4. Thus, 40% of the weight is assigned to dense semantic similarity and 60% to keyword overlap. This design intentionally favors chunks that are both semantically aligned with the query and contain the key clinical terms mentioned, which is critical in postoperative settings where specific wording (eg, &#x201C;drain output&#x201D; and &#x201C;alarm signs&#x201D;) carries important clinical meaning.</p></sec><sec id="s2-11"><title>Query-Time Retrieval and Generation</title><p>Please see algorithm 2 (<xref ref-type="other" rid="box2">Textbox 2</xref>).</p><p>The same corpus, chunking parameters, and retrieval settings were used for all RAG experiments to ensure a fair comparison across configurations (<xref ref-type="fig" rid="figure3">Figure 3</xref>).</p><boxed-text id="box2"><title> Retrieval-augmented generation inference pipeline.</title><list list-type="order"><list-item><p>User query embedding: encode the incoming question into the same embedding space as the knowledge chunks.</p></list-item><list-item><p>Nearest-neighbor search: retrieve the top k=20 chunks with the highest hybrid scores (semantic+lexical).</p></list-item><list-item><p>Context assembly: concatenate the retrieved chunks, optionally separated by delimiters or headings, together with the original question to form an augmented prompt. Gemini-2.5-Flash&#x2019;s long context window allows all 20 chunks (up to &#x2248;2048 tokens each) plus the query to be ingested without exceeding the context limit.</p></list-item><list-item><p>Augmented generation: pass the augmented prompt to the large language model and generate an answer using controlled decoding (temperature=0.2, top-p=1.0) to encourage deterministic and well-grounded responses.</p></list-item><list-item><p>Output: return the generated answer; the retrieved passages provide explicit factual support for the response.</p></list-item></list></boxed-text><fig position="float" id="figure3"><label>Figure 3.</label><caption><p>Retrieval-augmented generation framework. Clinical queries trigger retrieval of relevant document chunks from a curated knowledge base, which are injected into the prompt to guide answer generation by Gemini 2.5 Flash, providing up-to-date and guideline-consistent knowledge. Created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>]. GCS: Google Cloud Storage.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig03.png"/></fig></sec><sec id="s2-12"><title>Combined Fine-Tuning+RAG Model</title><p>The fine-tuning+RAG configuration overlays the fine-tuned generator on top of the retrieval stack, enabling a domain-adapted model to reason over dynamically retrieved postoperative evidence [<xref ref-type="bibr" rid="ref34">34</xref>]. In this setting, the fine-tuned Gemini-2.5-Flash model (fine-tuned large language model) replaces the base model within the RAG pipeline, while the retrieval subsystem remains unchanged (<xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>).</p></sec><sec id="s2-13"><title>Integration of Fine-Tuning and RAG Architecture</title><p>After fine-tuning, the fine-tuned large language model is deployed as the generator in the RAG system. The knowledge base, chunking procedure, embedding model, and retrieval hyperparameters (,) are kept identical to the RAG-only configuration to isolate the contribution of the fine-tuned generator. The fine-tuning+RAG pipeline proceeds as shown in <xref ref-type="other" rid="box3">Textbox 3</xref>.</p><p>Using a fine-tuned generator within the RAG pipeline aims to capture the strengths of both components: improved understanding and formatting from fine-tuning, plus precise, up-to-date postoperative information from retrieval (<xref ref-type="fig" rid="figure4">Figure 4</xref>).</p><boxed-text id="box3"><title> Combined fine-tuning+retrieval-augmented generation pipeline.</title><list list-type="order"><list-item><p>Model selection: load the fine-tuned Gemini-2.5-Flash model (fine-tuned large language model [LLM-ft]) as the generator.</p></list-item><list-item><p>Retrieve context: apply algorithm 2 (<xref ref-type="other" rid="box2">Textbox 2</xref>) steps 1-3 (encode the query, retrieve the 20 top-scoring chunks using the hybrid score, and assemble the augmented prompt).</p></list-item><list-item><p>Augmented generation with LLM-ft: provide the augmented prompt to LLM-ft and generate an answer under the same decoding parameters (temperature=0.2, top-p=1.0). The fine-tuned model combines retrieved evidence with its domain-adapted internal representations when forming the response.</p></list-item><list-item><p>Output: return the LLM-ft answer, which reflects both fine-tuned reasoning and up-to-date external knowledge.</p></list-item></list></boxed-text><fig position="float" id="figure4"><label>Figure 4.</label><caption><p>Hybrid RAG+FT workflow. Clinical queries are grounded using retrieved document chunks and processed by a fine-tuned Gemini 2.5 flash model to generate evidence-aware responses. Created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>]. FT: fine-tuning; GCS: Google Cloud Storage; RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig04.png"/></fig></sec><sec id="s2-14"><title>Hyperparameter Selection and Sensitivity Analyses</title><p>For the RAG and fine-tuning+RAG configurations, we tuned retrieval hyperparameters (K and &#x03B1;) using a held-out development set of postoperative questions. We evaluated K &#x2208; {10,20,30} (number of retrieved chunks) and &#x03B1; &#x2208; {0.2,0.4,0.6} (hybrid weighting between semantic and lexical scores).</p><p>When &#x1D43E;=10, relevant discharge instructions were occasionally missed; when &#x1D43E;=30, prompts became longer and sometimes contained redundant or conflicting information, &#x1D43E;=20 offered the best balance between coverage of relevant evidence and readability of answers. For &#x1D43E;, lower values (0.2) overly favored exact keyword matches and ignored semantically appropriate but differently worded content. In contrast, higher values (0.6) placed too much emphasis on dense similarity and sometimes retrieved passages that were topically related but clinically less precise. The intermediate setting &#x1D43E;=0.4 consistently maximized expert-rated factuality and grounding while minimizing hallucinations. We therefore fixed &#x1D43E;=20 and &#x1D43E;=0.4 for all RAG and fine-tuning+RAG experiments. Decoding settings were held constant across all configurations (temperature=0.2, top-p=1.0, and <italic>max_output_tokens</italic> =2048).</p></sec><sec id="s2-15"><title>Evaluation Tools</title><p>We evaluated each LLM&#x2019;s responses using a comprehensive, multimetric framework to ensure robust assessment of health care AI performance [<xref ref-type="bibr" rid="ref35">35</xref>]. The evaluation included human expert assessment of accuracy with respect to interrater reliability and quality ratings (eg, completeness and relevance), as well as automated LLM-derived metrics, such as readability, groundedness (hallucination propensity), and faithfulness [<xref ref-type="bibr" rid="ref21">21</xref>]. Although the target application of the system is patient-facing postoperative support, 3 blinded clinical reviewers independently scored all responses to provide a conservative, safety-focused assessment of model performance prior to testing with patients. This approach reflects a common pilot-phase strategy in clinical AI evaluation, where expert review precedes patient-facing deployment [<xref ref-type="bibr" rid="ref36">36</xref>]. The evaluation dataset, including all queries, their corresponding subject categories, gold-standard answers, and reviewer evaluations, is provided in <xref ref-type="supplementary-material" rid="app5">Multimedia Appendices 5</xref> and <xref ref-type="supplementary-material" rid="app6">6</xref>.</p></sec><sec id="s2-16"><title>Human Expert Evaluation</title><p>Medical accuracy was graded using a binary scale of incorrect (0) or correct (1). The reference answers were derived from the same curated institutional knowledge base used to support the RAG and RAG+fine-tuning approaches. In instances of discrepancies between source documents, differences were resolved through consensus review by this study&#x2019;s team, prioritizing the most recent guidance and recommendations supported by the strongest available evidence. If at least 2 reviewers rated an answer as correct, the final rating was recorded as correct [<xref ref-type="bibr" rid="ref21">21</xref>].</p><p>Medical accuracy was evaluated separately for in-scope postoperative queries and out-of-scope queries. The held-out evaluation set included 120 in-scope queries, consisting of 100 routine postoperative care questions and 20 emergency escalation scenarios, and 30 deliberately out-of-scope queries unrelated to postoperative care. Responses to in-scope queries were assessed for Clinical Medical Accuracy, defined as whether the model provided a clinically appropriate and correct answer. Responses to out-of-scope queries were assessed for safety or refusal accuracy, defined as whether the model appropriately declined to answer or clearly recognized that the query fell outside the intended postoperative support scope.</p><p>To provide a global summary of combined task performance across the full 150-query benchmark, we additionally retained an overall confusion-matrix framework. Under this framework, a correct answer to an in-scope query was classified as a true positive, an incorrect answer to an in-scope query as a false negative, an appropriate refusal of an out-of-scope query as a true negative, and an inappropriate answer to an out-of-scope query as a false positive. From these counts, we calculated overall accuracy, precision, recall, and <italic>F</italic><sub>1</sub>-score across the complete benchmark, as shown in <xref ref-type="fig" rid="figure5">Figure 5</xref> [<xref ref-type="bibr" rid="ref21">21</xref>].</p><fig position="float" id="figure5"><label>Figure 5.</label><caption><p>Overall accuracy classification flow diagram. Model responses were classified into 4 categories based on reviewer assessment: TPs, representing correct answers to in-scope queries; FNs, corresponding to in-scope queries for which the model failed to provide a correct response; TNs, indicating appropriate rejection of out-of-scope queries; and FPs, denoting incorrect or inappropriate responses to out-of-scope queries. Created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>]. FN: false negative; FP: false positive; TN: true negative; TP: true positive.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig05.png"/></fig><p>For patient-specific logistical queries requiring individualized contextual information (eg, appointment timing), responses were considered correct if the model appropriately acknowledged lack of access to patient-specific data and advised consultation with the treating team. Models were not penalized for correctly identifying information gaps when no contextual data were provided. In addition, a sensitivity analysis was conducted, restricting the accuracy evaluation to cases with unanimous agreement across reviewers to assess the robustness of the findings.</p><p>Completeness was graded using a predefined 5-point Likert scale (1=strongly incomplete, 5=strongly complete). A score of 1 indicated that the response omitted most essential elements required to address the clinical question. A score of 2 reflected substantial omissions of key components. A score of 3 indicated partial coverage, with relevant information present but important details missing. A score of 4 represented near-complete coverage with only minor omissions, and a score of 5 indicated comprehensive and clinically sufficient coverage aligned with the reference standard. For each response, we calculated the mean completeness score across all reviewers.</p><p>Relevance was assessed using the Sensibility-Specificity-Interestingness Index on a 0&#x2010;3 scale (<xref ref-type="supplementary-material" rid="app7">Multimedia Appendix 7</xref>), representing the cumulative count of &#x201C;yes&#x201D; ratings (yes=1, no=0) across its 3 hierarchically dependent dimensions: sensibleness, specificity, and interestingness [<xref ref-type="bibr" rid="ref37">37</xref>]. Importantly, this metric primarily captures conversational coherence and contextual alignment, rather than strict clinical appropriateness. For each response, the final relevance score was calculated as the mean Sensibility-Specificity-Interestingness score across all reviewers.</p></sec><sec id="s2-17"><title>Automated LLM Metrics Evaluation</title><p>Readability metrics were calculated using the Flesch Reading Ease (FRE) and Flesch-Kincaid Grade Level (FKGL) formulas via the online calculator [<xref ref-type="bibr" rid="ref38">38</xref>]. FRE was computed as 206.835&#x2010;1.015 &#x00D7; (total words / total sentences) &#x2212; 84.6 &#x00D7; (total syllables / total words) and FKGL as 0.39 &#x00D7; (total words / total sentences)+11.8 &#x00D7; (total syllables / total words) &#x2212; 15.59. No text adaptation or editing was performed before analysis; model-generated responses were directly copied and pasted individually into the calculator to preserve their original structure and content.</p><p>However, because the enhanced models included standardized safety-oriented language for emergency and out-of-scope queries, a secondary readability analysis restricted to the 100 routine in-scope postoperative queries was performed to minimize the influence of prompt-enforced boilerplate. These metrics were selected in accordance with American Medical Association (AMA) and National Institutes of Health (NIH) recommendations for patient-facing materials to remain at or below the sixth to eighth grade reading level [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. Word count for each response was also recorded.</p><p>To assess factual reliability, faithfulness, and hallucination were evaluated against the same curated gold-standard reference answers used for the RAG and RAG+ fine-tuning systems. Faithfulness was rated on a 5-point Likert scale from minimal alignment (1) to complete alignment without contradiction (5), whereas hallucination was independently rated from none detected (1) to severe unsupported content (5). Scoring was performed by an LLM-based judge (Gemini 2.5 Pro) using a fixed evaluation prompt, temperature=0, and structured JSON output [<xref ref-type="bibr" rid="ref41">41</xref>]. To validate the automated judge for factual reliability, we conducted a Spearman rank correlation analysis between the LLM judge&#x2019;s faithfulness and hallucination scores and those of one blinded clinical expert reviewer. The complete LLM instruction is provided in <xref ref-type="supplementary-material" rid="app4">Multimedia Appendix 4</xref>.</p></sec><sec id="s2-18"><title>Statistical Analysis</title><p>Continuous variables were summarized as mean (SD) and median (IQR), while categorical variables were reported as frequency (percentage). As each AI model answered the same set of questions, the data was treated as repeated measurements, and statistical comparisons between models accounted for this dependent structure.</p><p>Performance comparisons across the 4 AI models were conducted using an overall test followed by pairwise comparisons. For continuous variables, the Friedman test was used for overall comparisons, with Kendall W reported as the effect size to quantify the overall agreement of rankings. For pairwise comparisons, the Wilcoxon signed-rank test was used for paired data [<xref ref-type="bibr" rid="ref42">42</xref>]. Due to the presence of ties in the paired differences and zero differences, exact <italic>P</italic> values could not be computed; <italic>P</italic> values were thus derived using a normal approximation, and pairs with zero differences were excluded from the ranking process, following standard Wilcoxon signed-rank test practices. The effect size r was calculated for Wilcoxon signed-rank tests as Z / sqrt(N) using the <italic>rstatix</italic> package in R (R Foundation) [<xref ref-type="bibr" rid="ref43">43</xref>], where <italic>Z</italic> is the test statistic, and <italic>N</italic> represents the number of paired observations included in the analysis. For the categorical variable, the Cochran Q test was applied for overall comparisons, followed by continuity-corrected asymptotic McNemar tests for pairwise comparisons [<xref ref-type="bibr" rid="ref44">44</xref>]. An effect size analogous to Kendall W was calculated as Q / [n (k &#x2212; 1)] for the overall categorical variable comparison, where <italic>Q</italic> is the Cochran Q test statistic, <italic>n</italic> is the number of query items, and <italic>k</italic> is the number of groups. For McNemar tests, odds ratios with 95% CIs were reported as effect sizes, calculated as odds ratios=(b+0.5)/(c+0.5) where b and c denote the discordant pairs favoring the second and first condition, respectively. A 0.5 continuity correction was applied for zero discordant cells. Bonferroni correction was applied to adjust <italic>P</italic> values for multiple pairwise testing. A 2-sided <italic>P</italic> value &#x003C;.05 was considered statistically significant for all analyses.</p><p>Interrater reliability among the 3 raters for accuracy was assessed using Fleiss &#x03BA;. Pairwise agreement between each pair of raters was additionally evaluated using Cohen &#x03BA;. For all &#x03BA; estimates, 95% CIs were computed and are reported. These &#x03BA; statistics were specifically calculated on the binary accuracy labels (&#x201C;correct&#x201D; or &#x201C;incorrect&#x201D;) assigned by the raters. Continuous variables were visualized using boxplots, and categorical variables were displayed using bar plots. All statistical analyses were performed using R statistical software (version 4.4.1) [<xref ref-type="bibr" rid="ref45">45</xref>].</p></sec><sec id="s2-19"><title>Ethical Considerations</title><p>This study did not involve patient-level or identifiable personal data. The datasets used for model development and evaluation consisted exclusively of expert-authored postoperative QA pairs and simulated patient-style queries generated for methodological benchmarking. Clinical experts participated voluntarily as part of a scholarly activity. Accordingly, this study did not meet the criteria for human participants research and did not require institutional review board review or informed consent. No personal data beyond professional role was collected, no compensation was provided, and no identifiable individuals appear in the figures, tables, or supplementary materials.</p></sec></sec><sec id="s3" sec-type="results"><title>Results</title><p>This comparative evaluation of 4 LLM approaches across 150 queries for postoperative surgical care demonstrated that incorporating structured knowledge substantially improved performance over the baseline model across multiple clinical and technical domains. Performance outcomes and all pairwise comparisons between baseline, RAG-only, fine-tuning-only, and combined RAG+fine-tuning models are summarized in <xref ref-type="table" rid="table2">Tables 2</xref> and <xref ref-type="table" rid="table3">3</xref>.</p><table-wrap id="t2" position="float"><label>Table 2.</label><caption><p>Comparison of performance outcomes across the 4 models.</p></caption><table id="table2" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Baseline</td><td align="left" valign="bottom">FT<sup><xref ref-type="table-fn" rid="table2fn1">a</xref></sup></td><td align="left" valign="bottom">RAG<sup><xref ref-type="table-fn" rid="table2fn2">b</xref></sup></td><td align="left" valign="bottom">RAG+FT</td><td align="left" valign="bottom"><italic>P</italic> value<sup><xref ref-type="table-fn" rid="table2fn3">c</xref></sup></td><td align="left" valign="bottom">Effect size</td></tr></thead><tbody><tr><td align="left" valign="top" colspan="5">Clinical medical accuracy, n (%)<sup><xref ref-type="table-fn" rid="table2fn4">d</xref></sup></td><td align="left" valign="top">.009</td><td align="left" valign="top">0.032</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Correct</td><td align="left" valign="top">102 (85)</td><td align="left" valign="top">109 (90.8)</td><td align="left" valign="top">110 (91.7)</td><td align="left" valign="top">116 (96.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Incorrect</td><td align="left" valign="top">18 (15)</td><td align="left" valign="top">11 (9.2)</td><td align="left" valign="top">10 (8.3)</td><td align="left" valign="top">4 (3.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Safety/refusal accuracy, n (%)<sup><xref ref-type="table-fn" rid="table2fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.91</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Correct</td><td align="left" valign="top">0 (0)</td><td align="left" valign="top">30 (100)</td><td align="left" valign="top">27 (90)</td><td align="left" valign="top">30 (100)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Incorrect</td><td align="left" valign="top">30 (100)</td><td align="left" valign="top">0 (0)</td><td align="left" valign="top">3 (10)</td><td align="left" valign="top">0 (0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Overall accuracy, n (%)<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.16</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Correct</td><td align="left" valign="top">102 (68)</td><td align="left" valign="top">139 (92.7)</td><td align="left" valign="top">137 (91.3)</td><td align="left" valign="top">146 (97.3)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Incorrect</td><td align="left" valign="top">48 (32)</td><td align="left" valign="top">11 (7.3)</td><td align="left" valign="top">13 (8.7)</td><td align="left" valign="top">4 (2.7)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Completeness<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.32</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">3.9 (1.01)</td><td align="left" valign="top">4.5 (0.85)</td><td align="left" valign="top">4.5 (0.95)</td><td align="left" valign="top">4.6 (0.66)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">4.3 (1.7-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.7-5.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Relevance<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">.06</td><td align="left" valign="top">0.49</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">2.5 (0.61)</td><td align="left" valign="top">2.4 (0.48)</td><td align="left" valign="top">2.4 (0.51)</td><td align="left" valign="top">2.4 (0.39)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">2.7 (0.7-3.0)</td><td align="left" valign="top">2.3 (0.3-3.0)</td><td align="left" valign="top">2.3 (0.7-3.0)</td><td align="left" valign="top">2.3 (1.0-3.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Readability FRE<sup><xref ref-type="table-fn" rid="table2fn7">g</xref></sup> score<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.58</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">43.7 (14.41)</td><td align="left" valign="top">37.2 (14.67)</td><td align="left" valign="top">35.1 (13.38)</td><td align="left" valign="top">40.0 (9.45)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">44.1 (9.1-100.0)</td><td align="left" valign="top">37.2 (0.0-80.3)</td><td align="left" valign="top">34.6 (4.4-79.2)</td><td align="left" valign="top">37.2 (15.6-78.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Readability FKGL<sup><xref ref-type="table-fn" rid="table2fn1">f,h</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.58</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">9.7 (2.25)</td><td align="left" valign="top">11.3 (2.28)</td><td align="left" valign="top">11.8 (2.85)</td><td align="left" valign="top">10.6 (1.42)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">9.6 (0.0-14.8)</td><td align="left" valign="top">11.3 (4.1-20.5)</td><td align="left" valign="top">11.3 (4.5-33.5)</td><td align="left" valign="top">10.8 (4.9-14.4)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Readability word count<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.55</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">561.5 (312.65)</td><td align="left" valign="top">105.3 (76.84)</td><td align="left" valign="top">113.4 (86.35)</td><td align="left" valign="top">145.3 (74.67)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">555.5 (7.0-1495.0)</td><td align="left" valign="top">85.5 (24.0-408.0)</td><td align="left" valign="top">88.0 (5.0-457.0)</td><td align="left" valign="top">148.5 (33.0-307.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Postoperative FRE score<sup><xref ref-type="table-fn" rid="table2fn9">i</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.67</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">38.2 (10.92)</td><td align="left" valign="top">37.4 (17.89)</td><td align="left" valign="top">35.4 (15.83)</td><td align="left" valign="top">41.7 (10.51)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">37.6 (9.1-71.8)</td><td align="left" valign="top">37.7 (0.0-80.3)</td><td align="left" valign="top">36.7 (4.4-79.2)</td><td align="left" valign="top">42.2 (15.6-78.1)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Postoperative FKGL<sup><xref ref-type="table-fn" rid="table2fn9">i</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.61</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">10.5 (1.67)</td><td align="left" valign="top">11.5 (2.74)</td><td align="left" valign="top">12.2 (3.39)</td><td align="left" valign="top">10.5 (1.62)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">10.5 (5.2-14.8)</td><td align="left" valign="top">11.5 (4.1-20.5)</td><td align="left" valign="top">12.2 (4.5-33.5)</td><td align="left" valign="top">10.5 (4.9-14.4)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Postoperative word count<sup><xref ref-type="table-fn" rid="table2fn9">i</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.54</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">609.4 (220.05)</td><td align="left" valign="top">123.1 (88.35)</td><td align="left" valign="top">137.2 (96.34)</td><td align="left" valign="top">181.0 (63.84)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">580.0 (79.0-1150.0)</td><td align="left" valign="top">92.5 (24.0-408.0)</td><td align="left" valign="top">116.0 (5.0-457.0)</td><td align="left" valign="top">189.0 (33.0-307.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Faithfulness<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.34</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">3.7 (1.70)</td><td align="left" valign="top">4.4 (1.08)</td><td align="left" valign="top">4.5 (0.95)</td><td align="left" valign="top">4.6 (0.84)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Hallucination<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.26</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">2.3 (1.64)</td><td align="left" valign="top">1.3 (0.70)</td><td align="left" valign="top">1.4 (0.70)</td><td align="left" valign="top">1.2 (0.54)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">1.0 (1.0-5.0)</td><td align="left" valign="top">1.0 (1.0-5.0)</td><td align="left" valign="top">1.0 (1.0-4.0)</td><td align="left" valign="top">1.0 (1.0-4.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Faithfulness by expert<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.29</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">3.8 (1.64)</td><td align="left" valign="top">4.4 (1.10)</td><td align="left" valign="top">4.6 (0.94)</td><td align="left" valign="top">4.7 (0.69)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top">5.0 (1.0-5.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top" colspan="5">Hallucination by expert<sup><xref ref-type="table-fn" rid="table2fn6">f</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.26</td></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Mean (SD)</td><td align="left" valign="top">2.3 (1.57)</td><td align="left" valign="top">1.4 (0.77)</td><td align="left" valign="top">1.3 (0.64)</td><td align="left" valign="top">1.2 (0.52)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr><tr><td align="left" valign="top"><named-content content-type="indent">&#x00A0;&#x00A0;&#x00A0;&#x00A0;</named-content>Median (IQR)</td><td align="left" valign="top">2.0 (1.0-5.0)</td><td align="left" valign="top">1.0 (1.0-5.0)</td><td align="left" valign="top">1.0 (1.0-4.0)</td><td align="left" valign="top">1.0 (1.0-3.0)</td><td align="left" valign="top"/><td align="left" valign="top"/></tr></tbody></table><table-wrap-foot><fn id="table2fn1"><p><sup>a</sup>FT: fine-tuning.</p></fn><fn id="table2fn2"><p><sup>b</sup>RAG: retrieval-augmented generation.</p></fn><fn id="table2fn3"><p><sup>c</sup>Cochran Q test was used for categorical variable accuracy, and the Friedman test was used for continuous variables. Kendall W was reported as the effect size for continuous variables. For the categorical variable, an effect size analogous to Kendall W was calculated as Q / [n (k &#x2212; 1)].</p></fn><fn id="table2fn4"><p><sup>d</sup>N=120 for each model.</p></fn><fn id="table2fn5"><p><sup>e</sup>N=30 for each model.</p></fn><fn id="table2fn6"><p><sup>f</sup>N=150 for each model.</p></fn><fn id="table2fn7"><p><sup>g</sup>FRE: Flesch Reading Ease.</p></fn><fn id="table2fn8"><p><sup>h</sup>FKGL: Flesch-Kincaid Grade Level.</p></fn><fn id="table2fn9"><p><sup>i</sup>N=100 for each model.</p></fn></table-wrap-foot></table-wrap><table-wrap id="t3" position="float"><label>Table 3.</label><caption><p>Pairwise comparisons of performance outcomes between each group. Pairwise comparisons were performed using the continuity-corrected asymptotic McNemar test for the categorical accuracy variable and the Wilcoxon signed-rank test for continuous variables. Effect sizes were reported as odds ratios with 95% CIs for McNemar tests and r for Wilcoxon signed-rank tests. A Haldane-Anscombe continuity correction of 0.5 was applied for zero discordant cells. Bonferroni correction was applied to adjust for multiple comparisons.</p></caption><table id="table3" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Outcome</td><td align="left" valign="bottom" colspan="2">Baseline vs FT<sup><xref ref-type="table-fn" rid="table3fn1">a</xref></sup></td><td align="left" valign="bottom" colspan="2">Baseline vs RAG<sup><xref ref-type="table-fn" rid="table3fn2">b</xref></sup></td><td align="left" valign="bottom" colspan="2">Baseline vs RAG+FT</td><td align="left" valign="bottom" colspan="2">FT vs RAG</td><td align="left" valign="bottom" colspan="2">FT vs RAG+FT</td><td align="left" valign="bottom" colspan="2">RAG vs RAG+FT</td></tr><tr><td align="left" valign="bottom"/><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Effect size</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Effect size</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Effect size</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Effect size</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Effect size</td><td align="left" valign="bottom"><italic>P</italic> value</td><td align="left" valign="bottom">Effect size</td></tr></thead><tbody><tr><td align="left" valign="top">Clinical medical accuracy (n=120)<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">1.8 (0.8-4.0)</td><td align="left" valign="top">.92</td><td align="left" valign="top">2.0 (0.9-4.7)</td><td align="left" valign="top">.02</td><td align="left" valign="top">5.6 (1.7-19.3)</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">1.1 (0.4-3.15)</td><td align="left" valign="top">.58</td><td align="left" valign="top">3.3 (0.9-12.1)</td><td align="left" valign="top">.25</td><td align="left" valign="top">13.0 (0.7-230.8)</td></tr><tr><td align="left" valign="top">Safety/refusal accuracy (n=30)<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">N/A<sup><xref ref-type="table-fn" rid="table3fn4">d</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">N/A</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">N/A</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">N/A</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">N/A</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">N/A</td></tr><tr><td align="left" valign="top">Overall accuracy (n=150)<sup><xref ref-type="table-fn" rid="table3fn3">c</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">5.1 (2.5-10.4)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">5.4 (2.5-11.4)</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">15.7 (4.9-50.3)</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.8 (0.3-2.0)</td><td align="left" valign="top">.58</td><td align="left" valign="top">3.3 (0.9-12.1)</td><td align="left" valign="top">.046</td><td align="left" valign="top">19.0 (1.1-326.5)</td></tr><tr><td align="left" valign="top">Completeness (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.36</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.45</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.42</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.07</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.06</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.12</td></tr><tr><td align="left" valign="top">Relevance (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.04</td><td align="left" valign="top">.32</td><td align="left" valign="top">0.17</td><td align="left" valign="top">.73</td><td align="left" valign="top">0.16</td><td align="left" valign="top">.23</td><td align="left" valign="top">0.17</td><td align="left" valign="top">.74</td><td align="left" valign="top">0.12</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.02</td></tr><tr><td align="left" valign="top">Readability FRE<sup><xref ref-type="table-fn" rid="table3fn6">f</xref></sup> score (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.37</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.48</td><td align="left" valign="top">.16</td><td align="left" valign="top">0.18</td><td align="left" valign="top">.02</td><td align="left" valign="top">0.25</td><td align="left" valign="top">.03</td><td align="left" valign="top">0.18</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.37</td></tr><tr><td align="left" valign="top">Readability FKGL<sup><xref ref-type="table-fn" rid="table3fn7">g</xref></sup> (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.57</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.66</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.38</td><td align="left" valign="top">.002</td><td align="left" valign="top">0.31</td><td align="left" valign="top">.001</td><td align="left" valign="top">0.24</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.47</td></tr><tr><td align="left" valign="top">Readability word count (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.85</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.86</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.85</td><td align="left" valign="top">.08</td><td align="left" valign="top">0.19</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.46</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.41</td></tr><tr><td align="left" valign="top">Postoperative FRE score (n=100)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.059</td><td align="left" valign="top">.18</td><td align="left" valign="top">0.22</td><td align="left" valign="top">.003</td><td align="left" valign="top">0.35</td><td align="left" valign="top">.19</td><td align="left" valign="top">0.22</td><td align="left" valign="top">.017</td><td align="left" valign="top">0.30</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.42</td></tr><tr><td align="left" valign="top">Postoperative FKGL (n=100)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.38</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.52</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.002</td><td align="left" valign="top">.037</td><td align="left" valign="top">0.28</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.38</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.55</td></tr><tr><td align="left" valign="top">Postoperative word count (n=100)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.87</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.87</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.87</td><td align="left" valign="top">.019</td><td align="left" valign="top">0.30</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.56</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.45</td></tr><tr><td align="left" valign="top">Faithfulness (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.25</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.32</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.36</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.04</td><td align="left" valign="top">.33</td><td align="left" valign="top">0.13</td><td align="left" valign="top">.82</td><td align="left" valign="top">0.06</td></tr><tr><td align="left" valign="top">Hallucination (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.45</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.39</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.44</td><td align="left" valign="top">.71</td><td align="left" valign="top">0.16</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.07</td><td align="left" valign="top">.17</td><td align="left" valign="top">0.16</td></tr><tr><td align="left" valign="top">Faithfulness by expert (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">.002</td><td align="left" valign="top">0.24</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.34</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.37</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.12</td><td align="left" valign="top">.12</td><td align="left" valign="top">0.18</td><td align="left" valign="top">.87</td><td align="left" valign="top">0.06</td></tr><tr><td align="left" valign="top">Hallucination by expert (n=150)<sup><xref ref-type="table-fn" rid="table3fn5">e</xref></sup></td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.44</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.48</td><td align="left" valign="top">&#x003C;.001</td><td align="left" valign="top">0.49</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.01</td><td align="left" valign="top">.50</td><td align="left" valign="top">0.11</td><td align="left" valign="top">&#x2265;.99</td><td align="left" valign="top">0.10</td></tr></tbody></table><table-wrap-foot><fn id="table3fn1"><p><sup>a</sup>FT: fine-tuning.</p></fn><fn id="table3fn2"><p><sup>b</sup>RAG: retrieval-augmented generation.</p></fn><fn id="table3fn3"><p><sup>c</sup>McNemar test (odds ratios with 95% CI).</p></fn><fn id="table3fn4"><p><sup>d</sup>N/A: not applicable.</p></fn><fn id="table3fn5"><p><sup>e</sup>Wilcoxon signed-rank test (r).</p></fn><fn id="table3fn6"><p><sup>f</sup>FRE: Flesch Reading Ease.</p></fn><fn id="table3fn7"><p><sup>g</sup>FKGL: Flesch-Kincaid Grade Level.</p></fn></table-wrap-foot></table-wrap><sec id="s3-1"><title>Human Expert Results</title><sec id="s3-1-1"><title>Accuracy</title><p>Significant differences in accuracy were observed across the 4 AI systems. When assessed on clinical medical accuracy, which included both routine postoperative queries and emergency escalation scenarios, the baseline model achieved a correct response rate of 85% (102/120), whereas fine-tuning achieved 90.8% (109/120), RAG achieved 91.7% (110/120), and the hybrid RAG+fine-tuning model achieved the highest accuracy at 96.7% (116/120; overall <italic>P</italic>=.009). In pairwise comparisons, however, the improvements observed for fine-tuning and RAG relative to baseline were not statistically significant, whereas the improvement for RAG+fine-tuning relative to baseline remained statistically significant. No statistically significant differences were observed among the 3 knowledge-enhanced approaches.</p><p>These results suggest that, although all enhanced models showed numerically higher clinical medical accuracy than the baseline model, only the hybrid configuration demonstrated a statistically robust improvement within the combined in-scope postoperative and emergency query framework. Importantly, the emergency escalation scenarios were associated with predefined safety prompting and prior exposure within the validation set for the enhanced configurations; therefore, a portion of the observed Clinical Medical Accuracy likely reflects compliance with scripted escalation behavior in addition to clinical reasoning performance.</p><p>When assessed on safety or refusal accuracy, differences between models were more pronounced (overall <italic>P</italic>&#x2264;.001). The fine-tuning model appropriately refused 30 of 30 (100%) out-of-scope questions, whereas RAG refused 27 of 30 (90%), and RAG+fine-tuning again achieved 100% (30/30). However, these results should similarly be interpreted within the context of this study&#x2019;s design, as the enhanced configurations received explicit safety and deferral instructions with prescribed phrasing. Accordingly, these findings primarily reflect compliance with predefined refusal instructions on previewed safety-query types rather than intrinsic or generalizable boundary-recognition ability. By contrast, the baseline model received only the question prompt without equivalent refusal-oriented guidance, which likely contributed to its lower safety or refusal performance.</p><p>Across the full 150-query benchmark, the baseline model achieved a correct response rate of 68% (102/150). Compared with baseline, fine-tuning improved overall accuracy by 24.7 percentage points to 92.7%, RAG by 23.3 percentage points to 91.3%, and the hybrid RAG+fine-tuning approach by 29.3 percentage points to 97.3% (overall <italic>P</italic>&#x003C;.001). Pairwise comparisons demonstrated that all 3 knowledge-enhanced approaches significantly outperformed the baseline model. No statistically significant differences were observed between the fine-tuned and RAG models or between fine-tuning and the hybrid approach. Although the RAG+fine-tuning model showed slightly higher overall accuracy than RAG alone, this difference was modest after multiple-comparison correction. These findings suggest that fine-tuning and RAG each confer performance gains, while their combination may provide an additional incremental benefit.</p><p>Composite classification metrics further supported these findings (<xref ref-type="fig" rid="figure6">Figure 6</xref>). The hybrid model achieved the highest overall performance, with 100% precision, 96.7% recall, and an <italic>F</italic><sub>1</sub>-score of 98.3%, whereas fine-tuning and RAG both achieved <italic>F</italic><sub>1</sub>-scores above 94%, and the baseline model performed substantially worse (<italic>F</italic><sub>1</sub>-score=81%). The confusion matrix, including true positive, true negative, false positive, and false negative values for each model, is summarized in <xref ref-type="table" rid="table4">Table 4</xref>. Taken together, the disaggregated and composite analyses show that knowledge-enhanced models improved both postoperative answer quality and boundary-recognition performance, with the hybrid RAG+fine-tuning configuration providing the most favorable overall profile.</p><fig position="float" id="figure6"><label>Figure 6.</label><caption><p>Classification metrics performance for overall accuracy with 95% CI for each AI system. RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig06.png"/></fig><table-wrap id="t4" position="float"><label>Table 4.</label><caption><p>Confusion matrix and derived composite classification metrics across the full benchmark (with 95% CIs).</p></caption><table id="table4" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom"/><td align="left" valign="bottom">Baseline (N=150)</td><td align="left" valign="bottom">FT<sup><xref ref-type="table-fn" rid="table4fn1">a</xref></sup> (N=150)</td><td align="left" valign="bottom">RAG<sup><xref ref-type="table-fn" rid="table4fn2">b</xref></sup> (N=150)</td><td align="left" valign="bottom">RAG+ FT (N=150)</td></tr></thead><tbody><tr><td align="left" valign="top">TP<sup><xref ref-type="table-fn" rid="table4fn3">c</xref></sup></td><td align="left" valign="top">102</td><td align="left" valign="top">109</td><td align="left" valign="top">110</td><td align="left" valign="top">116</td></tr><tr><td align="left" valign="top">TN<sup><xref ref-type="table-fn" rid="table4fn4">d</xref></sup></td><td align="left" valign="top">0</td><td align="left" valign="top">30</td><td align="left" valign="top">27</td><td align="left" valign="top">30</td></tr><tr><td align="left" valign="top">FP<sup><xref ref-type="table-fn" rid="table4fn5">e</xref></sup></td><td align="left" valign="top">30</td><td align="left" valign="top">0</td><td align="left" valign="top">3</td><td align="left" valign="top">0</td></tr><tr><td align="left" valign="top">FN<sup><xref ref-type="table-fn" rid="table4fn6">f</xref></sup></td><td align="left" valign="top">18</td><td align="left" valign="top">11</td><td align="left" valign="top">10</td><td align="left" valign="top">4</td></tr><tr><td align="left" valign="top">Overall accuracy (%), (95% CI)</td><td align="left" valign="top">68 (59.9 to 75.4)</td><td align="left" valign="top">92.7 (87.3 to 96.3)</td><td align="left" valign="top">91.3 (85.6 to 95.3)</td><td align="left" valign="top">97.3 (93.3 to 99.3)</td></tr><tr><td align="left" valign="top">Precision (%), (95% CI)</td><td align="left" valign="top">77.3 (69.2 to 84.1)</td><td align="left" valign="top">100 (96.7 to 100)</td><td align="left" valign="top">97.3 (92.4 to 99.4)</td><td align="left" valign="top">100 (96.9 to 100)</td></tr><tr><td align="left" valign="top">Recall (%), (95% CI)</td><td align="left" valign="top">85 (77.3 to 90.9)</td><td align="left" valign="top">90.8 (84.2 to 95.3)</td><td align="left" valign="top">91.7 (85.2 to 95.9)</td><td align="left" valign="top">96.7 (91.7 to 99.1)</td></tr><tr><td align="left" valign="top"><italic>F</italic><sub>1</sub>-score (%), (95% CI)</td><td align="left" valign="top">81 (75.5 to 85.9)</td><td align="left" valign="top">95.2 (92.2 to 97.8)</td><td align="left" valign="top">94.4 (91.1 to 97.4)</td><td align="left" valign="top">98.3 (96.4 to 99.6)</td></tr></tbody></table><table-wrap-foot><fn id="table4fn1"><p><sup>a</sup>FT: fine-tuning.</p></fn><fn id="table4fn2"><p><sup>b</sup>RAG: retrieval-augmented generation.</p></fn><fn id="table4fn3"><p><sup>c</sup>TP: true positive.</p></fn><fn id="table4fn4"><p><sup>d</sup>TN: true negative.</p></fn><fn id="table4fn5"><p><sup>e</sup>FP: false positive.</p></fn><fn id="table4fn6"><p><sup>f</sup>FN: false negative.</p></fn></table-wrap-foot></table-wrap></sec></sec><sec id="s3-2"><title>Interrater Reliability</title><p>Interrater agreement for accuracy varied across the 4 AI systems (<xref ref-type="table" rid="table5">Table 5</xref>). Overall, Fleiss &#x03BA; values were 0.623 for the baseline model, 0.405 for fine-tuning, 0.678 for RAG, and 0.45 for the hybrid approach. Pairwise Cohen &#x03BA; estimates indicated moderate agreement for the baseline and RAG models, with the highest pairwise agreement observed for RAG between rater 2 and rater 3 (0.797). In contrast, the fine-tuned and hybrid models exhibited lower and more variable interrater agreement, with wide CIs that frequently crossed zero, reflecting greater subjectivity in expert assessments (<xref ref-type="fig" rid="figure7">Figure 7</xref>).</p><table-wrap id="t5" position="float"><label>Table 5.</label><caption><p>Interrater reliability agreement among the 3 raters for accuracy (with 95% CIs). Fleiss &#x03BA; was used for overall agreement among 3 raters, and Cohen &#x03BA; for pairwise raters.</p></caption><table id="table5" frame="hsides" rules="groups"><thead><tr><td align="left" valign="bottom">Configuration</td><td align="left" valign="bottom">Overall agreement</td><td align="left" valign="bottom">Rater 1 vs rater 2</td><td align="left" valign="bottom">Rater 1 vs rater 3</td><td align="left" valign="bottom">Rater 2 vs rater 3</td></tr></thead><tbody><tr><td align="left" valign="top">Baseline</td><td align="left" valign="top">0.623 (0.511 to 0.723)</td><td align="left" valign="top">0.639 (0.507 to 0.755)</td><td align="left" valign="top">0.566 (0.430 to 0.696)</td><td align="left" valign="top">0.677 (0.544 to 0.801)</td></tr><tr><td align="left" valign="top">FT<sup><xref ref-type="table-fn" rid="table5fn1">a</xref></sup></td><td align="left" valign="top">0.405 (0.182 to 0.583)</td><td align="left" valign="top">0.481 (0.250 to 0.677)</td><td align="left" valign="top">0.378 (0.113 to 0.607)</td><td align="left" valign="top">0.345 (0.106 to 0.560)</td></tr><tr><td align="left" valign="top">RAG<sup><xref ref-type="table-fn" rid="table5fn2">b</xref></sup></td><td align="left" valign="top">0.678 (0.480 to 0.820)</td><td align="left" valign="top">0.630 (0.388 to 0.819)</td><td align="left" valign="top">0.608 (0.332 to 0.819)</td><td align="left" valign="top">0.797 (0.588 to 0.949)</td></tr><tr><td align="left" valign="top">RAG+FT</td><td align="left" valign="top">0.450 (0.068 to 0.724)</td><td align="left" valign="top">0.437 (-0.02 to 0.760)</td><td align="left" valign="top">0.341 (&#x2212;0.023 to 0.690)</td><td align="left" valign="top">0.587 (&#x2212;0.009 to 0.907)</td></tr></tbody></table><table-wrap-foot><fn id="table5fn1"><p><sup>a</sup>FT: fine-tuning.</p></fn><fn id="table5fn2"><p><sup>b</sup>RAG: retrieval-augmented generation.</p></fn></table-wrap-foot></table-wrap><fig position="float" id="figure7"><label>Figure 7.</label><caption><p>Interrater reliability for accuracy among the 3 raters for each AI system, with 95% CIs. RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig07.png"/></fig><p>To further evaluate the robustness of these findings, we conducted a sensitivity analysis restricted to queries for which all 3 reviewers reached unanimous agreement across all 4 AI systems (<xref ref-type="supplementary-material" rid="app8">Multimedia Appendix 8</xref>). Of the original 150 evaluation queries, 93 met this stricter unanimity criterion. Within this subset, the baseline model achieved an accuracy of 63.4% (59/93), compared with 95.7% (89/93) for fine-tuning, 94.6% (88/93) for RAG, and 97.8% (91/93) for the hybrid RAG+fine-tuning model. Pairwise comparisons showed that all 3 knowledge-enhanced models significantly outperformed the baseline model (all adjusted <italic>P</italic>&#x003C;.001).</p><p>However, no statistically significant differences were observed among the fine-tuned, retrieval-augmented, and hybrid configurations (all adjusted <italic>P</italic>&#x2265;.99). These findings indicate that, for queries with high interrater agreement, the 3 knowledge-enhanced approaches achieved comparable performance despite their differing architectures. This result provides additional support for the robustness of the main accuracy findings in the presence of interrater variability in the full evaluation set.</p></sec><sec id="s3-3"><title>Quality Ratings (Completeness and Relevance)</title><p>Completeness differed significantly across the 4 models (<italic>P</italic>&#x003C;.001). The baseline model had the lowest mean completeness score (3.9, SD 1.01), while all enhanced models demonstrated higher and nearly identical scores: fine-tuning (4.5, SD 0.85), RAG (4.5, SD 0.95), and RAG+fine-tuning (4.6, SD 0.66). <xref ref-type="fig" rid="figure8">Figure 8</xref> illustrates the boxplot for the completeness analysis.</p><fig position="float" id="figure8"><label>Figure 8.</label><caption><p>Boxplot of completeness for each AI system. RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig08.png"/></fig><p>Pairwise analysis showed that all enhanced models significantly outperformed the baseline (<italic>P</italic>&#x003C;.001 for all). No statistically significant differences were observed among fine-tuning, RAG, and the hybrid approach (<italic>P</italic>&#x2265;.99 for all comparisons), indicating comparable completeness across these 3 methods.</p><p>Relevance scores were high across all systems and did not differ significantly between groups (overall <italic>P</italic>=.06). Mean relevance scores ranged narrowly from 2.4 (SD 0.39) to 2.5 (SD 0.61) across all 4 models. Pairwise comparisons revealed no statistically significant differences (all <italic>P</italic>&#x2265;.23), suggesting that all systems produced responses of comparable relevance (<xref ref-type="fig" rid="figure9">Figure 9</xref>).</p><fig position="float" id="figure9"><label>Figure 9.</label><caption><p>Boxplot of relevance for each AI system. RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig09.png"/></fig></sec><sec id="s3-4"><title>Automated LLM Metrics Results</title><sec id="s3-4-1"><title>Readability</title><p>The baseline model produced substantially longer outputs (mean word count 561.5, SD 312.65) and more readable text by FRE (43.7, SD 14.41) and FKGL (9.7, SD 2.25), though at the cost of verbosity and still slightly above AMA and NIH recommendations for patient-level comprehension. Notably, 25 baseline responses met the &#x2264;8th-grade FKGL threshold. In contrast, the enhanced models generated significantly shorter responses (mean 105. 3, SD 76.84&#x2010;145.3, SD 74.67 words) but with lower FRE scores (35.1, SD 13.38&#x2010;40.0, SD 9.45) and higher FKGL grade levels (10.6, SD 1.42&#x2010;11.8, SD 2.85), further exceeding recommended thresholds for patient-facing materials [<xref ref-type="bibr" rid="ref39">39</xref>,<xref ref-type="bibr" rid="ref40">40</xref>]. Only 10 responses in the fine-tuned model and 7 responses each in the RAG and RAG+fine-tuning models met the &#x2264;8th-grade FKGL benchmark. The hybrid model achieved intermediate readability performance between the baseline and other enhanced models, highlighting a trade-off: performance-optimized models may improve efficiency and accuracy while reducing accessibility for general patient audiences. The graph for FRE scores, FKGL, and word count is depicted in <xref ref-type="fig" rid="figure10">Figure 10</xref>.</p><fig position="float" id="figure10"><label>Figure 10.</label><caption><p>Readability assessment bar graph illustrating FRE scores, FKGL, and word count across models. Created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>]. FKGL: Flesch-Kincaid Grade Level; FRE: Flesch Reading Ease; FT: fine-tuning; LLM: large language model; RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig10.png"/></fig><p>However, in the restricted analysis of the 100 in-scope postoperative queries, significant differences were still observed across models for FRE, FKGL, and word count (all overall <italic>P</italic>&#x003C;.001). Mean FRE scores were 38.2 (SD 10.92) for baseline, 37.4 (SD 17.89) for fine-tuning, 35.4 (SD 15.83) for RAG, and 41.7 (SD 10.51) for RAG+fine-tuning, whereas mean FKGL values were 10.5 (SD 1.67), 11.5 (SD 2.74), 12.2 (SD 3.39), and 10.5 (SD 1.62), respectively. Pairwise comparisons showed that RAG+fine-tuning had significantly better readability than RAG on both FRE and FKGL and did not differ significantly from baseline on FKGL, whereas fine-tuning and RAG generally had higher grade-level estimates than baseline.</p><p>These findings suggest not only that the readability differences observed in the full 150-query analysis were partly influenced by prompt-enforced safety boilerplate, but also that, under routine postoperative conditions without additional scripted instructions, the hybrid approach yielded readability outcomes closer to baseline than either fine-tuning or RAG alone. This pattern supports the possibility that combining fine-tuning and RAG may preserve some readability advantages while still benefiting from knowledge enhancement.</p></sec><sec id="s3-4-2"><title>Faithfulness</title><p>The baseline model exhibited the lowest mean faithfulness score (3.7, SD 1.70), while all enhanced models achieved higher and more consistent scores: fine-tuning (4.4, SD 1.08), RAG (4.5, SD 0.95), and the hybrid approach (4.6, SD 0.84). Pairwise analyses showed that each enhanced model significantly outperformed the baseline (<italic>P</italic>&#x003C;.001 for all), with no statistically significant differences observed between fine-tuning, RAG, and the hybrid system (<xref ref-type="fig" rid="figure11">Figure 11</xref>). The uniformly high mean scores across enhanced models suggest that both retrieval-based grounding and fine-tuned domain adaptation improve the alignment of model outputs with source knowledge, reinforcing their role in producing faithful and evidence-consistent clinical responses.</p><fig position="float" id="figure11"><label>Figure 11.</label><caption><p>Boxplot of faithfulness for each AI system. RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig11.png"/></fig><p>Spearman rank correlation between the LLM-based judge and a clinical expert reviewer demonstrated positive monotonic agreement for faithfulness across all configurations and supports the reliability of the automated scoring framework in this dataset, although the strength of agreement varied by model. Correlations were highest for the baseline model (&#x03C1;=0.901), followed by fine-tuning (&#x03C1;=0.882), RAG (&#x03C1;=0.821), and RAG+fine-tuning (&#x03C1;=0.734), as represented in <xref ref-type="supplementary-material" rid="app9">Multimedia Appendix 9</xref>. This pattern suggests that, while the automated judge provided a useful concordant signal overall, its agreement with human assessment declined for the more complex adapted configurations, particularly the hybrid model.</p></sec><sec id="s3-4-3"><title>Hallucination</title><p>The baseline model demonstrated the highest hallucination burden (mean 2.3, SD 1.64), whereas all knowledge-enhanced approaches showed substantially lower hallucination scores, including fine-tuning (1.3, SD 0.70), RAG (1.4, SD 0.70), and the hybrid RAG+fine-tuning model (1.2, SD 0.54). Pairwise comparisons confirmed that all 3 enhanced models significantly reduced hallucinations relative to the baseline (<italic>P</italic>&#x003C;.001 for all), while no statistically significant differences were observed among the fine-tuned, RAG, and hybrid approaches (<xref ref-type="fig" rid="figure12">Figure 12</xref>). These findings suggest that integration of structured knowledge sources, whether through fine-tuning, RAG, or their combination, is associated with reduced hallucination burden.</p><p>Correlation analysis between the automated judge and the clinical reviewer also demonstrated positive agreement for hallucination scoring and supports the validity of the reported reduction in hallucination rates, but again varied across configurations. Correlations were highest for the baseline model (&#x03C1;=0.901), followed by RAG+fine-tuning (&#x03C1;=0.813), RAG (&#x03C1;=0.802), and fine-tuning (&#x03C1;=0.725), suggesting that automated evaluation may be less reliable for more complex or nuanced outputs (<xref ref-type="supplementary-material" rid="app9">Multimedia Appendix 9</xref>).</p><fig position="float" id="figure12"><label>Figure 12.</label><caption><p>Boxplot of hallucination for each AI system. RAG: retrieval-augmented generation.</p></caption><graphic alt-version="no" mimetype="image" position="float" xlink:type="simple" xlink:href="jmir_v28i1e90692_fig12.png"/></fig></sec></sec></sec><sec id="s4" sec-type="discussion"><title>Discussion</title><sec id="s4-1"><title>Key Findings and Comparison With Prior Work</title><p>Applied to our results, knowledge-enhanced models improved performance over the baseline LLM, although the pattern differed between clinical answering and safety-related refusal behavior. For in-scope postoperative queries, the hybrid RAG+fine-tuning model achieved the highest clinical medical accuracy, whereas fine-tuning and RAG showed only numerically higher performance than baseline. For out-of-scope queries, the largest differences were observed in safety or refusal accuracy, where all enhanced configurations substantially outperformed the baseline.</p><p>However, these findings should be interpreted primarily as compliance with explicit safety prompting rather than evidence of intrinsic boundary-recognition capability, because the enhanced configurations received predefined escalation or refusal instructions, and the safety-category queries were also present in the validation set. Accordingly, the baseline model&#x2019;s lower aggregate performance likely reflects the absence of equivalent refusal-oriented prompting rather than architectural inferiority alone.</p><p>Within the secondary composite classification framework, the hybrid model achieved the strongest overall profile, including the highest overall accuracy, precision, recall, and <italic>F</italic><sub>1</sub>-score, suggesting that fine-tuning and RAG provide complementary benefits when clinical answering and safe refusal behavior are jointly considered. However, the sensitivity analysis restricted to unanimously rated queries showed no statistically significant differences among the 3 enhanced approaches, despite all outperforming the baseline.</p><p>The modest performance differences observed in the full evaluation set may therefore be influenced by queries associated with greater interrater variability. These cases may reflect more complex, ambiguous, or context-dependent scenarios in which differences in response framing, completeness, or safety emphasis contribute to divergent expert interpretations. Accordingly, the relative advantage of the hybrid approach may be most pronounced in such edge cases, rather than in clearly defined clinical scenarios where consensus is readily achieved.</p><p>Consistent with this interpretation, the lower interrater agreement observed for the fine-tuning and hybrid systems suggests that more sophisticated models may generate responses that are more nuanced, conditionally phrased, or contextually layered, increasing interpretive subjectivity among reviewers. This pattern was also reflected in the human-vs-LLM correlation analysis for faithfulness and hallucination, where agreement remained moderate to strong overall but declined for some adapted configurations. Together, these findings underscore the continued importance of transparent evaluation standards and human oversight in clinical AI validation.</p><p>In prior works, fine-tuning has been shown to enhance domain-specific reasoning patterns and task-structured accuracy, particularly in settings such as medical coding automation, clinical documentation processing, and domain-aligned report generation, where models benefit from learning highly specialized linguistic and diagnostic patterns [<xref ref-type="bibr" rid="ref46">46</xref>,<xref ref-type="bibr" rid="ref47">47</xref>]. Fine-tuning is also foundational for aligning LLMs with medical knowledge and improving safety and factual grounding [<xref ref-type="bibr" rid="ref48">48</xref>]. However, prior studies also highlight the limitations of fine-tuning alone, including risks of overfitting, catastrophic forgetting, and dependence on limited or institution-specific datasets [<xref ref-type="bibr" rid="ref49">49</xref>]. In addition, a subset of our evaluation queries demonstrated high semantic similarity (cosine &#x2265;0.90), consistent with paraphrased variations of common clinical concerns (<xref ref-type="supplementary-material" rid="app3">Multimedia Appendix 3</xref>). While this reflects the constrained and repetitive nature of postoperative queries and supports domain coverage, it may partially facilitate model performance and should be considered when interpreting generalization beyond this controlled setting.</p><p>RAG addresses several of these constraints by enabling models to access high-quality external clinical knowledge at inference time. Prior studies have demonstrated benefits in medical information retrieval [<xref ref-type="bibr" rid="ref50">50</xref>,<xref ref-type="bibr" rid="ref51">51</xref>], evidence grounding [<xref ref-type="bibr" rid="ref52">52</xref>], and hallucination reduction [<xref ref-type="bibr" rid="ref53">53</xref>], while also improving transparency through explicit source attribution [<xref ref-type="bibr" rid="ref54">54</xref>-<xref ref-type="bibr" rid="ref56">56</xref>]. These advantages align with our findings, in which the RAG-only model demonstrated strong accuracy and completeness comparable to fine-tuning.</p><p>However, our direct comparison of RAG-only and fine-tuning-only models revealed no statistically significant differences across accuracy (<italic>P</italic>&#x2265;.99), completeness (<italic>P</italic>&#x2265;.99), relevance (<italic>P</italic>=.23), faithfulness (<italic>P</italic>&#x2265;.99), or hallucination rates (<italic>P</italic>=.71). Despite relying on distinct mechanisms (dynamic external retrieval vs internal parameter adaptation), both approaches achieved comparable numeric improvements across key clinical performance metrics relative to the baseline model, although the pairwise gains in clinical medical accuracy vs baseline were not individually statistically significant. Therefore, for narrowly scoped postoperative decision-support tasks, either strategy can independently deliver clinically meaningful benefits when carefully designed and validated [<xref ref-type="bibr" rid="ref57">57</xref>].</p><p>From an operational perspective, fine-tuning and RAG present distinct practical trade-offs rather than a clear performance hierarchy. Fine-tuned models may be advantageous in low-latency or offline settings, whereas RAG systems offer easier knowledge updating, greater transparency, and explicit source grounding [<xref ref-type="bibr" rid="ref58">58</xref>]. Consequently, factors such as infrastructure, governance requirements, and the need for traceable evidence may be more influential than marginal performance differences when selecting between these approaches. Notably, the consistently high and statistically indistinguishable relevance scores (2.4 and 2.5, <italic>P</italic>=.06) between the approaches further indicate that perceived clinical usefulness remains robust regardless of knowledge integration strategy.</p><p>Given the comparable performance yet distinct advantages of RAG-only and fine-tuning-only approaches, the numerically strong performance of the hybrid RAG+fine-tuning model is consistent with prior work suggesting complementary strengths of these methods [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref23">23</xref>,<xref ref-type="bibr" rid="ref59">59</xref>,<xref ref-type="bibr" rid="ref60">60</xref>]. By combining domain-adaptive reasoning learned through fine-tuning with dynamic access to external knowledge via retrieval, hybrid architectures have been shown to outperform either strategy alone, particularly for specialized medical tasks and low-frequency clinical knowledge where standalone approaches may be insufficient [<xref ref-type="bibr" rid="ref5">5</xref>,<xref ref-type="bibr" rid="ref9">9</xref>,<xref ref-type="bibr" rid="ref54">54</xref>,<xref ref-type="bibr" rid="ref56">56</xref>]. The strong performance of our hybrid model aligns with these findings, supporting the view that RAG+fine-tuning models represent feasible and adaptable frameworks for postoperative discharge instructions, with potential suitability across multiple health care&#x2013;related workflows pending further empirical validation.</p><p>Therefore, these findings have important implications for the deployment of knowledge-enhanced postoperative education systems within clinical workflows, where accuracy, clinical grounding, and safe boundary recognition are essential. While not intended to replace clinician judgment, fine-tuning, RAG, and hybrid systems may serve as supportive tools to enhance patient communication and reinforce discharge guidance, particularly when implemented with appropriate oversight. The choice among these approaches may depend less on universal performance superiority and more on practical considerations such as infrastructure, source traceability, update frequency, latency, and the complexity of the target clinical use case [<xref ref-type="bibr" rid="ref56">56</xref>,<xref ref-type="bibr" rid="ref59">59</xref>].</p><p>Readability analyses highlighted a trade-off between clinical precision and patient accessibility. Although the enhanced models, particularly the hybrid configuration, achieved the highest accuracy, they also generated responses exceeding AMA and NIH-recommended patient education reading levels (sixth to eighth grade level) [<xref ref-type="bibr" rid="ref39">39</xref>]. In contrast, although the baseline model was substantially less accurate, it appeared to produce more readable outputs in the full analysis. However, the restricted in-scope analysis suggested that part of this difference was attributable to standardized safety boilerplate within enhanced-model responses. Nevertheless, improvements in factual accuracy and safety did not consistently translate into improved readability, underscoring the need for additional optimization before patient-facing deployment [<xref ref-type="bibr" rid="ref61">61</xref>].</p><p>Despite this constraint, relevance scores remained consistently high across configurations, with no statistically significant differences between models. These findings suggest that conversational coherence and contextual alignment, as captured by the Sensibility-Specificity-Interestingness framework, are relatively preserved across knowledge integration strategies. However, high relevance did not necessarily correspond to clinical correctness or appropriate boundary recognition, underscoring the importance of interpreting relevance alongside accuracy and hallucination metrics in safety-critical settings [<xref ref-type="bibr" rid="ref62">62</xref>].</p><p>Importantly, the observed improvements in faithfulness and reductions in hallucination rates suggest an association between knowledge-enhanced model configurations and safer response characteristics relevant to clinical deployment. All knowledge-enhanced approaches demonstrated significantly higher faithfulness and lower hallucination scores compared to the baseline model. However, these differences are likely attributable to differences in prompt design, as the enhanced configurations were provided with explicit deferral instructions, whereas the baseline model did not receive equivalent guidance, which may have contributed to differences in boundary recognition.</p><p>Nevertheless, the consistency of improvements across both automated and expert-based evaluations, including the moderate to strong correlation between the LLM-based judge and clinician ratings, suggests that grounding outputs in domain-specific training data, external evidence, or both can contribute to improved factual alignment and reduced unsafe content generation.</p></sec><sec id="s4-2"><title>Ethical Constraints</title><p>The integration of LLMs into clinical workflows raises important ethical and safety concerns. Hallucinations, incomplete reasoning [<xref ref-type="bibr" rid="ref62">62</xref>], and biases embedded in fine-tuning datasets may compromise patient safety, particularly when training corpora are limited or demographically unrepresentative [<xref ref-type="bibr" rid="ref63">63</xref>]. RAG-based systems introduce additional challenges related to evidence provenance, as output quality depends on the accuracy, currency, and neutrality of retrieved sources [<xref ref-type="bibr" rid="ref64">64</xref>]. These concerns are amplified in hybrid RAG+fine-tuning systems, which combine the vulnerabilities and architectural complexity of both approaches. In addition, many LLMs remain &#x201C;black box&#x201D; systems whose decision pathways cannot be easily examined, complicating transparency and explainability in clinical deployment [<xref ref-type="bibr" rid="ref65">65</xref>]. Together with concerns surrounding privacy, data security, and variable interrater agreement, these limitations underscore the continued need for transparent evaluation frameworks and human oversight before patient-facing deployment. Emerging regulatory frameworks, including the Food and Drug Administration&#x2019;s Predetermined Change Control Plan [<xref ref-type="bibr" rid="ref66">66</xref>,<xref ref-type="bibr" rid="ref67">67</xref>] and the EU (European Union) AI Act [<xref ref-type="bibr" rid="ref68">68</xref>], further emphasize the importance of auditability, transparency, and postdeployment monitoring for clinical AI systems.</p></sec><sec id="s4-3"><title>Limitations</title><p>Several limitations of this study should be acknowledged. First, all evaluations were conducted using simulated postoperative clinical scenarios rather than real-world deployment. Although this controlled environment enabled standardized comparison across models, it may not fully capture the complexity, variability, and workflow constraints of actual clinical practice. Additionally, although the intended application of these systems is patient-facing postoperative education and decision support, evaluation relied on clinician expert ratings rather than patient-level or outcome-based measures. Clinician-based assessment was intentionally used in this pilot phase to prioritize safety, accuracy, and guideline concordance before patient deployment; however, patient-centered outcomes such as comprehension, usability, trust, and behavioral impact were not directly assessed.</p><p>Second, both the fine-tuning dataset and the retrieval corpus introduce constraints on generalizability. The fine-tuning dataset was relatively small (600 QA pairs) and derived from expert-authored, synthetic patient-style questions grounded in institutional and society postoperative guidelines, which may limit external validity. Similarly, although the RAG corpus was broader, it remained a curated set of guideline-concordant resources and patient education materials rather than comprehensive real-world clinical documentation. In addition, the compiled RAG knowledge base includes source materials subject to permission and licensing constraints and therefore cannot be fully publicly redistributed, which may limit reproducibility and external validation. As a result, model performance may differ when exposed to more heterogeneous, unstructured, or institutionally diverse information environments typical of routine clinical care.</p><p>Third, this study focused exclusively on postoperative care scenarios, and it remains uncertain whether these findings generalize to other clinical domains or specialties. The optimal balance between fine-tuning and retrieval augmentation may vary across tasks, medical disciplines, and levels of required clinical precision. Further research is needed to determine whether the synergistic benefits observed for RAG+fine-tuning extend to other areas of medicine.</p><p>Fourth, the relatively modest evaluation sample size (N=150 queries per model) limited the precision of performance estimates and resulted in relatively wide CIs for certain confusion matrix components. While the sample size was sufficient to detect large performance differences, it may have been underpowered to identify smaller incremental differences. Accordingly, nonsignificant pairwise comparisons should not be interpreted as evidence of equivalence, and the possibility of type II error (ie, false-negative findings) must be considered. Moreover, the lower interrater agreement and reduced readability observed for the more sophisticated fine-tuning and hybrid pipelines suggest that their modest performance gains should be interpreted cautiously, as increased architectural complexity may reduce reliability and interpretability in patient-facing settings.</p><p>Fifth, although clinical reviewers were blinded to model identity, certain response characteristics may have limited full blinding. In addition to differences in response length, where the baseline model produced substantially longer outputs compared with the fine-tuned and hybrid models, the use of standardized safety-oriented phrasing for out-of-scope and emergency queries in knowledge-enhanced models introduced repetitive patterns across responses. These features may have served as implicit cues to model condition and could have influenced subjective ratings such as completeness or perceived quality. Clinicians may also demonstrate a natural preference for concise, focused responses in time-constrained environments. Although accuracy was assessed using binary criteria tied to predefined guidelines, quality-related measures may have been susceptible to bias.</p><p>Sixth, we evaluated only one foundation model (Gemini 2.5 Flash), a single PEFT configuration, and a single LLM-based evaluation model (Gemini 2.5 Pro). Furthermore, although prior work suggests that LLM-based evaluators can achieve meaningful agreement with human raters on structured, objective metrics [<xref ref-type="bibr" rid="ref69">69</xref>], the correlation analysis in this study relied on a single expert reviewer for faithfulness and hallucination assessment, which may not fully capture interexpert variability. In addition, because the automated evaluator belonged to the same model family as the evaluated systems, the possibility of self-preference bias within the LLM-as-a-judge framework cannot be excluded. Alternative base models, fine-tuning strategies, and retrieval architectures not examined in this study may yield different performance profiles and trade-offs across accuracy, cost, interpretability, and robustness.</p><p>Finally, the baseline configuration did not include explicit safety or refusal-oriented prompt instructions, whereas the knowledge-enhanced configurations were provided with predefined escalation instructions for emergency scenarios and refusal guidance for out-of-domain prompts. In addition, these safety-category evaluation queries were present verbatim in the validation set used for model selection and retrieval hyperparameter tuning, although not in the training set. Their presence in the validation set means that model selection was not fully independent of these items. While this reflects a minimally adapted real-world deployment scenario, these design features related to both prompt instructions and model selection likely contributed to the observed differences not only in safety or refusal accuracy, but also in Clinical Medical Accuracy, given that this metric combined emergency escalation and routine in-scope clinical queries. These factors should, therefore, be considered when interpreting comparative results. Moreover, although we attempted to minimize the influence of prompt instructions on readability outcomes through restricted analyses, the sensitivity of FRE and FKGL formulas to sentence length, word count, and overall text structure likely continued to influence these metrics across configurations.</p></sec><sec id="s4-4"><title>Future Directions</title><p>Future work should expand evaluation across institutions, patient populations, and surgical subspecialties to improve generalizability and reduce the risk of institutional or demographic bias [<xref ref-type="bibr" rid="ref48">48</xref>]. Prospective clinical studies are also needed to assess supervised patient-facing deployment, patient-centered outcomes (including comprehension, adherence, and appropriate escalation of red-flag symptoms), and comparison with standard discharge education practices under continued clinician oversight [<xref ref-type="bibr" rid="ref70">70</xref>].</p><p>Additional research should evaluate larger and more diverse fine-tuning datasets, broader retrieval sources, and a wider range of foundation models, PEFT strategies, and retrieval architectures to better reflect the complexity of real-world clinical environments. Standardized response lengths, structured scoring rubrics, and consensus-based adjudication may further reduce interrater variability and strengthen comparative evaluations across model configurations.</p><p>Future work should also prioritize fairness assessment [<xref ref-type="bibr" rid="ref63">63</xref>], uncertainty quantification, explainability, and auditability, including explicit source attribution and mechanisms that allow clinicians to trace outputs back to supporting evidence [<xref ref-type="bibr" rid="ref71">71</xref>]. Longitudinal studies evaluating continuous model updating, monitoring, and regulatory compliance within frameworks such as the Food and Drug Administration&#x2019;s Predetermined Change Control Plan [<xref ref-type="bibr" rid="ref66">66</xref>,<xref ref-type="bibr" rid="ref67">67</xref>] and the EU AI Act will be important for safe clinical deployment [<xref ref-type="bibr" rid="ref72">72</xref>].</p></sec><sec id="s4-5"><title>Conclusions</title><p>Integrating domain knowledge through fine-tuning, RAG, or their combination substantially improved postoperative decision support performance compared with the baseline model. Across most endpoints, all 3 knowledge-enhanced approaches demonstrated strong performance, and the hybrid RAG+fine-tuning configuration achieved the most favorable overall point estimates across several outcomes. However, given the generally modest pairwise differences and the absence of significant differences among enhanced configurations in the unanimity-restricted sensitivity analysis, the relative advantage of the hybrid approach should be interpreted cautiously. Nevertheless, hybrid RAG+fine-tuning systems remain a promising framework for postoperative education and decision support because they combine domain adaptation with explicit evidence grounding and retrieval flexibility, although further validation is needed to determine whether these architectural advantages translate into meaningful performance gains over fine-tuning or RAG alone. Their safe deployment will also require rigorous evaluation, transparent governance, alignment with health literacy standards, and sustained human oversight.</p></sec></sec></body><back><ack><p>The figures were created in BioRender. Collaco, B. (2025) [<xref ref-type="bibr" rid="ref11">11</xref>] or using R statistical software. Declaration of artificial intelligence (AI) and AI-assisted technologies in the writing process: during the preparation of this work, the authors used ChatGPT 5.1 (OpenAI) to improve the clarity of the written content and to review this paper. After using this tool or service, the authors reviewed and edited the content as needed and take full responsibility for the content of this publication.</p></ack><notes><sec><title>Funding</title><p>This work is supported by Mayo Clinic and the generosity of Schmidt Sciences, Richard M. Schulze Family Foundation, and Gerstner Philanthropies. No grant number is applicable. These entities had no involvement in this study's design; the collection, analysis, and interpretation of data; the writing of the report; or the decision to submit this paper for publication.</p></sec><sec><title>Data Availability</title><p>The full compiled retrieval-augmented generation knowledge base cannot be publicly shared due to permission and licensing constraints associated with the source materials. The remaining data supporting the findings of this study are available within this paper and its supplementary materials, including the training and validation question and answer dataset. The supplementary materials also include the evaluation prompts, Sensibility-Specificity-Interestingness rating guide, held-out evaluation dataset with rater scoresheets, sensitivity analysis for unanimous-agreement accuracy, and large language model&#x2013;human correlation analyses used to support the reported evaluation framework.</p></sec></notes><fn-group><fn fn-type="con"><p>SP, BGC, and AJF contributed to the conceptualization. SP carried out the methodology, including pipeline development, training, validation, and testing. Validation and formal analysis of the results were performed by BGC and ZF. The original draft was prepared by SP, BGC, CAG-C, and SAH. Review and editing were conducted by AG, AJF, NW, SB, and CT, who provided corrections and suggestions to improve clarity and rigor. Supervision and project administration were the responsibility of AJF. All authors read and approved the final manuscript.</p></fn><fn fn-type="conflict"><p>None declared.</p></fn></fn-group><glossary><title>Abbreviations</title><def-list><def-item><term id="abb1">AMA</term><def><p>American Medical Association</p></def></def-item><def-item><term id="abb2">EU</term><def><p>European Union</p></def></def-item><def-item><term id="abb3">FAISS</term><def><p>Facebook AI similarity search</p></def></def-item><def-item><term id="abb4">FKGL</term><def><p>Flesch-Kincaid Grade Level</p></def></def-item><def-item><term id="abb5">FRE</term><def><p>Flesch Reading Ease</p></def></def-item><def-item><term id="abb6">LLM</term><def><p>large language model</p></def></def-item><def-item><term id="abb7">NIH</term><def><p>National Institutes of Health</p></def></def-item><def-item><term id="abb8">PEFT</term><def><p>parameter-efficient fine-tuning</p></def></def-item><def-item><term id="abb9">QA</term><def><p>question and answer</p></def></def-item><def-item><term id="abb10">RAG</term><def><p>retrieval-augmented generation</p></def></def-item><def-item><term id="abb11">VPC</term><def><p>virtual private cloud</p></def></def-item></def-list></glossary><ref-list><title>References</title><ref id="ref1"><label>1</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Lin</surname><given-names>YH</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>QH</given-names> </name><name name-style="western"><surname>Cheng</surname><given-names>YJ</given-names> </name><etal/></person-group><article-title>LLM inference enhanced by external knowledge: a survey</article-title><source>arXiv</source><comment>Preprint posted online on  May 30, 2025</comment><pub-id pub-id-type="doi">10.48550/arXiv.2505.24377</pub-id></nlm-citation></ref><ref id="ref2"><label>2</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>W</given-names> </name><name name-style="western"><surname>Some</surname><given-names>L</given-names> </name><name name-style="western"><surname>Bain</surname><given-names>M</given-names> </name><name name-style="western"><surname>Kang</surname><given-names>B</given-names> </name></person-group><article-title>A comprehensive survey on integrating large language models with knowledge-based methods</article-title><source>Knowl Based Syst</source><year>2025</year><month>06</month><volume>318</volume><fpage>113503</fpage><pub-id pub-id-type="doi">10.1016/j.knosys.2025.113503</pub-id></nlm-citation></ref><ref id="ref3"><label>3</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>M</given-names> </name><name name-style="western"><surname>Ma</surname><given-names>H</given-names> </name><name name-style="western"><surname>Piao</surname><given-names>M</given-names> </name></person-group><article-title>Effectiveness of large language models in preoperative and discharge education: a systematic review based on an evaluation framework</article-title><source>NPJ Digit Med</source><year>2026</year><month>01</month><day>7</day><volume>9</volume><issue>1</issue><fpage>122</fpage><pub-id pub-id-type="doi">10.1038/s41746-025-02302-w</pub-id><pub-id pub-id-type="medline">41501337</pub-id></nlm-citation></ref><ref id="ref4"><label>4</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Lewis</surname><given-names>P</given-names> </name><name name-style="western"><surname>Perez</surname><given-names>E</given-names> </name><name name-style="western"><surname>Piktus</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Retrieval-augmented generation for knowledge-intensive NLP tasks</article-title><access-date>2026-07-10</access-date><conf-name>NIPS&#x2019;20: 34th International Conference on Neural Information Processing Systems</conf-name><conf-date>Dec 6-12, 2020</conf-date><comment><ext-link ext-link-type="uri" xlink:href="https://dl.acm.org/doi/abs/10.5555/3495724.3496517">https://dl.acm.org/doi/abs/10.5555/3495724.3496517</ext-link></comment></nlm-citation></ref><ref id="ref5"><label>5</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Soudani</surname><given-names>H</given-names> </name><name name-style="western"><surname>Kanoulas</surname><given-names>E</given-names> </name><name name-style="western"><surname>Hasibi</surname><given-names>F</given-names> </name></person-group><article-title>Fine tuning vs. retrieval augmented generation for less popular knowledge</article-title><conf-name>SIGIR-AP 2024</conf-name><conf-date>Dec 9-12, 2024</conf-date><conf-loc>Tokyo, Japan</conf-loc><fpage>12</fpage><lpage>22</lpage><pub-id pub-id-type="doi">10.1145/3673791.3698415</pub-id></nlm-citation></ref><ref id="ref6"><label>6</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Balaguer</surname><given-names>A</given-names> </name><name name-style="western"><surname>Benara</surname><given-names>V</given-names> </name><name name-style="western"><surname>de Freitas Cunha</surname><given-names>RL</given-names> </name><etal/></person-group><article-title>RAG vs fine-tuning: pipelines, tradeoffs, and a case study on agriculture</article-title><source>arXiv</source><comment>Preprint posted online on  Jan 30, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2401.08406</pub-id></nlm-citation></ref><ref id="ref7"><label>7</label><nlm-citation citation-type="confproc"><person-group person-group-type="author"><name name-style="western"><surname>Lin</surname><given-names>X</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>W</given-names> </name><name name-style="western"><surname>Li</surname><given-names>Y</given-names> </name><etal/></person-group><article-title>Data-efficient fine-tuning for LLM-based recommendation</article-title><conf-name>SIGIR 2024</conf-name><conf-date>Jul 14-18, 2024</conf-date><pub-id pub-id-type="doi">10.1145/3626772.3657807</pub-id></nlm-citation></ref><ref id="ref8"><label>8</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kirkpatrick</surname><given-names>J</given-names> </name><name name-style="western"><surname>Pascanu</surname><given-names>R</given-names> </name><name name-style="western"><surname>Rabinowitz</surname><given-names>N</given-names> </name><etal/></person-group><article-title>Overcoming catastrophic forgetting in neural networks</article-title><source>Proc Natl Acad Sci U S A</source><year>2017</year><month>03</month><day>28</day><volume>114</volume><issue>13</issue><fpage>3521</fpage><lpage>3526</lpage><pub-id pub-id-type="doi">10.1073/pnas.1611835114</pub-id><pub-id pub-id-type="medline">28292907</pub-id></nlm-citation></ref><ref id="ref9"><label>9</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Zhang</surname><given-names>T</given-names> </name><name name-style="western"><surname>Patil</surname><given-names>SG</given-names> </name><name name-style="western"><surname>Jain</surname><given-names>N</given-names> </name><etal/></person-group><article-title>RAFT: adapting language model to domain specific RAG</article-title><source>arXiv</source><comment>Preprint posted online on  Jun 5, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2403.10131</pub-id></nlm-citation></ref><ref id="ref10"><label>10</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Erickson</surname><given-names>J</given-names> </name></person-group><article-title>RAG vs fine-tuning: how to choose</article-title><source>Oracle</source><year>2024</year><month>11</month><day>21</day><access-date>2026-06-26</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://www.oracle.com/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/rag-fine-tuning/">https://www.oracle.com/artificial-intelligence/generative-ai/retrieval-augmented-generation-rag/rag-fine-tuning/</ext-link></comment></nlm-citation></ref><ref id="ref11"><label>11</label><nlm-citation citation-type="web"><article-title>Figure 10. readability assessment bar graph illustrating FRE scores, FKGL, and word count across models</article-title><source>BioRender</source><access-date>2026-06-26</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://BioRender.com/v3tnph2">https://BioRender.com/v3tnph2</ext-link></comment></nlm-citation></ref><ref id="ref12"><label>12</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gomez-Cabello</surname><given-names>CA</given-names> </name><name name-style="western"><surname>Borna</surname><given-names>S</given-names> </name><name name-style="western"><surname>Pressman</surname><given-names>SM</given-names> </name><etal/></person-group><article-title>Artificial intelligence in postoperative care: assessing large language models for patient recommendations in plastic surgery</article-title><source>Health Care (Don Mills)</source><year>2024</year><volume>12</volume><issue>11</issue><fpage>1083</fpage><pub-id pub-id-type="doi">10.3390/healthcare12111083</pub-id></nlm-citation></ref><ref id="ref13"><label>13</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ong</surname><given-names>CS</given-names> </name><name name-style="western"><surname>Obey</surname><given-names>NT</given-names> </name><name name-style="western"><surname>Zheng</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Cohan</surname><given-names>A</given-names> </name><name name-style="western"><surname>Schneider</surname><given-names>EB</given-names> </name></person-group><article-title>SurgeryLLM: a retrieval-augmented generation large language model framework for surgical decision support and workflow enhancement</article-title><source>NPJ Digit Med</source><year>2024</year><month>12</month><day>18</day><volume>7</volume><issue>1</issue><fpage>364</fpage><pub-id pub-id-type="doi">10.1038/s41746-024-01391-3</pub-id><pub-id pub-id-type="medline">39695316</pub-id></nlm-citation></ref><ref id="ref14"><label>14</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Genovese</surname><given-names>A</given-names> </name><name name-style="western"><surname>Prabha</surname><given-names>S</given-names> </name><name name-style="western"><surname>Borna</surname><given-names>S</given-names> </name><etal/></person-group><article-title>34. Assessing the effectiveness of RAG-based AI models in answering postoperative rhinoplasty queries: limitations and future directions</article-title><source>Plast Reconstr Surg Global Open</source><year>2025</year><volume>13</volume><issue>S4</issue><fpage>22</fpage><lpage>23</lpage><pub-id pub-id-type="doi">10.1097/01.GOX.0001123684.42484.f2</pub-id></nlm-citation></ref><ref id="ref15"><label>15</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>L</given-names> </name><name name-style="western"><surname>Xu</surname><given-names>S</given-names> </name><name name-style="western"><surname>Sellergren</surname><given-names>A</given-names> </name><etal/></person-group><article-title>Advancing multimodal medical capabilities of Gemini</article-title><source>arXiv</source><comment>Preprint posted online on  May 6, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2405.03162</pub-id></nlm-citation></ref><ref id="ref16"><label>16</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Meyer</surname><given-names>A</given-names> </name><name name-style="western"><surname>Karay</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Steinbicker</surname><given-names>AU</given-names> </name><name name-style="western"><surname>Streichert</surname><given-names>T</given-names> </name><name name-style="western"><surname>Overbeek</surname><given-names>R</given-names> </name></person-group><article-title>Performance of DeepSeek-R1, ChatGPT (GPT-o3-mini), and Gemini 2.0 Flash on German medical multiple-choice questions: comparative evaluation</article-title><source>JMIR Form Res</source><year>2025</year><month>12</month><day>18</day><volume>9</volume><issue>1</issue><fpage>e77357</fpage><pub-id pub-id-type="doi">10.2196/77357</pub-id><pub-id pub-id-type="medline">41411646</pub-id></nlm-citation></ref><ref id="ref17"><label>17</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Zimmerman</surname><given-names>JW</given-names> </name><name name-style="western"><surname>Hudon</surname><given-names>D</given-names> </name><name name-style="western"><surname>Cramer</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Tokens, the oft-overlooked appetizer: large language models, the distributional hypothesis, and meaning</article-title><source>arXiv</source><comment>Preprint posted online on  Nov 22, 2025</comment><pub-id pub-id-type="doi">10.48550/arXiv.2412.10924</pub-id></nlm-citation></ref><ref id="ref18"><label>18</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Fidelis</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Fine-tuning the Gemini 1.5 Flash large language model for user perception classification in BSI mobile application reviews</article-title><source>J Ilmiah Multidisiplin Indones (JIM-ID)</source><year>2025</year><access-date>2026-06-26</access-date><volume>4</volume><issue>5</issue><fpage>195</fpage><lpage>208</lpage><comment><ext-link ext-link-type="uri" xlink:href="https://ejournal.seaninstitute.or.id/index.php/esaprom/article/view/6660">https://ejournal.seaninstitute.or.id/index.php/esaprom/article/view/6660</ext-link></comment></nlm-citation></ref><ref id="ref19"><label>19</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kuligin</surname><given-names>L</given-names> </name><name name-style="western"><surname>Lammert</surname><given-names>J</given-names> </name><name name-style="western"><surname>Ostapenko</surname><given-names>A</given-names> </name><name name-style="western"><surname>Bressem</surname><given-names>K</given-names> </name><name name-style="western"><surname>Boeker</surname><given-names>M</given-names> </name><name name-style="western"><surname>Tschochohei</surname><given-names>M</given-names> </name></person-group><article-title>Prompt design for medical question answering with large language models</article-title><source>Mach Learn Appl</source><year>2025</year><month>12</month><volume>22</volume><fpage>100758</fpage><pub-id pub-id-type="doi">10.1016/j.mlwa.2025.100758</pub-id></nlm-citation></ref><ref id="ref20"><label>20</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Genovese</surname><given-names>A</given-names> </name><name name-style="western"><surname>Prabha</surname><given-names>S</given-names> </name><name name-style="western"><surname>Borna</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Artificial intelligence for patient support: assessing retrieval-augmented generation for answering postoperative rhinoplasty questions</article-title><source>Aesthet Surg J</source><year>2025</year><month>06</month><day>16</day><volume>45</volume><issue>7</issue><fpage>735</fpage><lpage>744</lpage><pub-id pub-id-type="doi">10.1093/asj/sjaf038</pub-id><pub-id pub-id-type="medline">40088460</pub-id></nlm-citation></ref><ref id="ref21"><label>21</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Haider</surname><given-names>SA</given-names> </name><name name-style="western"><surname>Prabha</surname><given-names>S</given-names> </name><name name-style="western"><surname>Gomez Cabello</surname><given-names>CA</given-names> </name><etal/></person-group><article-title>The development and evaluation of a retrieval-augmented generation large language model virtual assistant for postoperative instructions</article-title><source>Bioengineering (Basel)</source><year>2025</year><month>11</month><day>7</day><volume>12</volume><issue>11</issue><fpage>1219</fpage><pub-id pub-id-type="doi">10.3390/bioengineering12111219</pub-id><pub-id pub-id-type="medline">41301175</pub-id></nlm-citation></ref><ref id="ref22"><label>22</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>L</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>S</given-names> </name><name name-style="western"><surname>Jiang</surname><given-names>L</given-names> </name><etal/></person-group><article-title>Parameter-efficient fine-tuning in large language models: a survey of methodologies</article-title><source>Artif Intell Rev</source><year>2025</year><volume>58</volume><issue>8</issue><fpage>227</fpage><pub-id pub-id-type="doi">10.1007/s10462-025-11236-4</pub-id></nlm-citation></ref><ref id="ref23"><label>23</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Pingua</surname><given-names>B</given-names> </name><name name-style="western"><surname>Sahoo</surname><given-names>A</given-names> </name><name name-style="western"><surname>Kandpal</surname><given-names>M</given-names> </name><etal/></person-group><article-title>Medical LLMs: fine-tuning vs. retrieval-augmented generation</article-title><source>Bioengineering (Basel)</source><year>2025</year><month>06</month><day>24</day><volume>12</volume><issue>7</issue><fpage>687</fpage><pub-id pub-id-type="doi">10.3390/bioengineering12070687</pub-id><pub-id pub-id-type="medline">40722379</pub-id></nlm-citation></ref><ref id="ref24"><label>24</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rosenberger</surname><given-names>DC</given-names> </name><name name-style="western"><surname>Pogatzki-Zahn</surname><given-names>EM</given-names> </name></person-group><article-title>Chronic post-surgical pain - update on incidence, risk factors and preventive treatment options</article-title><source>BJA Educ</source><year>2022</year><month>05</month><volume>22</volume><issue>5</issue><fpage>190</fpage><lpage>196</lpage><pub-id pub-id-type="doi">10.1016/j.bjae.2021.11.008</pub-id><pub-id pub-id-type="medline">35496645</pub-id></nlm-citation></ref><ref id="ref25"><label>25</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Niyonkuru</surname><given-names>E</given-names> </name><name name-style="western"><surname>Iqbal</surname><given-names>MA</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Ma</surname><given-names>P</given-names> </name></person-group><article-title>Complementary approaches to postoperative pain management: a review of non-pharmacological interventions</article-title><source>Pain Ther</source><year>2025</year><month>02</month><volume>14</volume><issue>1</issue><fpage>121</fpage><lpage>144</lpage><pub-id pub-id-type="doi">10.1007/s40122-024-00688-1</pub-id><pub-id pub-id-type="medline">39681763</pub-id></nlm-citation></ref><ref id="ref26"><label>26</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Scott</surname><given-names>MJ</given-names> </name><name name-style="western"><surname>Aggarwal</surname><given-names>G</given-names> </name><name name-style="western"><surname>Aitken</surname><given-names>RJ</given-names> </name><etal/></person-group><article-title>Consensus guidelines for perioperative care for emergency laparotomy Enhanced Recovery After Surgery (ERAS<sup>&#x00AE;</sup>) society recommendations part 2-emergency laparotomy: intra- and postoperative care</article-title><source>World J Surg</source><year>2023</year><month>08</month><volume>47</volume><issue>8</issue><fpage>1850</fpage><lpage>1880</lpage><pub-id pub-id-type="doi">10.1007/s00268-023-07020-6</pub-id><pub-id pub-id-type="medline">37277507</pub-id></nlm-citation></ref><ref id="ref27"><label>27</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Raymond</surname><given-names>TM</given-names> </name><name name-style="western"><surname>Dastur</surname><given-names>JK</given-names> </name><name name-style="western"><surname>Khot</surname><given-names>UP</given-names> </name><name name-style="western"><surname>Parker</surname><given-names>MC</given-names> </name></person-group><article-title>Hospital stay and return to full activity following laparoscopic colorectal surgery</article-title><source>JSLS</source><year>2008</year><volume>12</volume><issue>2</issue><fpage>143</fpage><lpage>149</lpage><pub-id pub-id-type="medline">18435886</pub-id></nlm-citation></ref><ref id="ref28"><label>28</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Muchatuta</surname><given-names>NA</given-names> </name><name name-style="western"><surname>Paech</surname><given-names>MJ</given-names> </name></person-group><article-title>Management of postoperative nausea and vomiting: focus on palonosetron</article-title><source>Ther Clin Risk Manag</source><year>2009</year><month>02</month><volume>5</volume><issue>1</issue><fpage>21</fpage><lpage>34</lpage><pub-id pub-id-type="medline">19436621</pub-id></nlm-citation></ref><ref id="ref29"><label>29</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Li</surname><given-names>S</given-names> </name><name name-style="western"><surname>van Boekel</surname><given-names>RLM</given-names> </name><name name-style="western"><surname>van den Heuvel</surname><given-names>SAS</given-names> </name><name name-style="western"><surname>Coenen</surname><given-names>MJH</given-names> </name><name name-style="western"><surname>Vissers</surname><given-names>KCP</given-names> </name></person-group><article-title>Pain predict genetics: protocol for a prospective observational study of clinical and genetic factors to predict the development of postoperative pain</article-title><source>BMJ Open</source><year>2022</year><month>11</month><day>29</day><volume>12</volume><issue>11</issue><fpage>e066134</fpage><pub-id pub-id-type="doi">10.1136/bmjopen-2022-066134</pub-id><pub-id pub-id-type="medline">36446453</pub-id></nlm-citation></ref><ref id="ref30"><label>30</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Shaikh</surname><given-names>SI</given-names> </name><name name-style="western"><surname>Nagarekha</surname><given-names>D</given-names> </name><name name-style="western"><surname>Hegade</surname><given-names>G</given-names> </name><name name-style="western"><surname>Marutheesh</surname><given-names>M</given-names> </name></person-group><article-title>Postoperative nausea and vomiting: a simple yet complex problem</article-title><source>Anesth Essays Res</source><year>2016</year><volume>10</volume><issue>3</issue><fpage>388</fpage><lpage>396</lpage><pub-id pub-id-type="doi">10.4103/0259-1162.179310</pub-id><pub-id pub-id-type="medline">27746521</pub-id></nlm-citation></ref><ref id="ref31"><label>31</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Kargar</surname><given-names>S</given-names> </name><name name-style="western"><surname>Ansari-Moghaddam</surname><given-names>A</given-names> </name><name name-style="western"><surname>Ansari</surname><given-names>H</given-names> </name></person-group><article-title>The prevalence of seat belt use among drivers and passengers: a systematic review and meta-analysis</article-title><source>J Egypt Public Health Assoc</source><year>2023</year><month>08</month><day>2</day><volume>98</volume><issue>1</issue><fpage>14</fpage><pub-id pub-id-type="doi">10.1186/s42506-023-00139-3</pub-id><pub-id pub-id-type="medline">37528241</pub-id></nlm-citation></ref><ref id="ref32"><label>32</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Wang</surname><given-names>R</given-names> </name><name name-style="western"><surname>Sappenfield</surname><given-names>EC</given-names> </name></person-group><article-title>Return to work following pelvic reconstructive surgery: secondary analysis of operations and pelvic muscle training in the management of apical support loss trial</article-title><source>Am J Obstet Gynecol</source><year>2022</year><month>08</month><volume>227</volume><issue>2</issue><fpage>322</fpage><pub-id pub-id-type="doi">10.1016/j.ajog.2022.05.037</pub-id><pub-id pub-id-type="medline">35609642</pub-id></nlm-citation></ref><ref id="ref33"><label>33</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Cassivi</surname><given-names>SD</given-names> </name><name name-style="western"><surname>Pierson</surname><given-names>KE</given-names> </name><name name-style="western"><surname>Lechtenberg</surname><given-names>BJ</given-names> </name><etal/></person-group><article-title>Safety of air travel in the immediate postoperative period after anatomic pulmonary resection</article-title><source>J Thorac Cardiovasc Surg</source><year>2017</year><month>05</month><volume>153</volume><issue>5</issue><fpage>1191</fpage><lpage>1196</lpage><pub-id pub-id-type="doi">10.1016/j.jtcvs.2016.12.035</pub-id><pub-id pub-id-type="medline">28411750</pub-id></nlm-citation></ref><ref id="ref34"><label>34</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Seo</surname><given-names>J</given-names> </name><name name-style="western"><surname>Lee</surname><given-names>T</given-names> </name><name name-style="western"><surname>Moon</surname><given-names>H</given-names> </name><etal/></person-group><article-title>Dense-to-question and sparse-to-answer: hybrid retriever system for industrial frequently asked questions</article-title><source>Mathematics</source><year>2022</year><volume>10</volume><issue>8</issue><fpage>1335</fpage><pub-id pub-id-type="doi">10.3390/math10081335</pub-id></nlm-citation></ref><ref id="ref35"><label>35</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Abbasian</surname><given-names>M</given-names> </name><name name-style="western"><surname>Khatibi</surname><given-names>E</given-names> </name><name name-style="western"><surname>Azimi</surname><given-names>I</given-names> </name><etal/></person-group><article-title>Foundation metrics for evaluating effectiveness of healthcare conversations powered by generative AI</article-title><source>NPJ Digit Med</source><year>2024</year><month>03</month><day>29</day><volume>7</volume><issue>1</issue><fpage>82</fpage><pub-id pub-id-type="doi">10.1038/s41746-024-01074-z</pub-id><pub-id pub-id-type="medline">38553625</pub-id></nlm-citation></ref><ref id="ref36"><label>36</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>X</given-names> </name><name name-style="western"><surname>Rivera</surname><given-names>SC</given-names> </name><name name-style="western"><surname>Moher</surname><given-names>D</given-names> </name><name name-style="western"><surname>Calvert</surname><given-names>MJ</given-names> </name><name name-style="western"><surname>Denniston</surname><given-names>AK</given-names> </name><collab>SPIRIT-AI and CONSORT-AI Working Group</collab></person-group><article-title>Reporting guidelines for clinical trial reports for interventions involving artificial intelligence: the CONSORT-AI extension</article-title><source>Lancet Digit Health</source><year>2020</year><month>10</month><volume>2</volume><issue>10</issue><fpage>e537</fpage><lpage>e548</lpage><pub-id pub-id-type="doi">10.1016/S2589-7500(20)30218-1</pub-id><pub-id pub-id-type="medline">33328048</pub-id></nlm-citation></ref><ref id="ref37"><label>37</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Thoppilan</surname><given-names>R</given-names> </name><name name-style="western"><surname>De Freitas</surname><given-names>D</given-names> </name><name name-style="western"><surname>Hall</surname><given-names>J</given-names> </name><etal/></person-group><article-title>LaMDA: language models for dialog applications</article-title><source>arXiv</source><comment>Preprint posted online on  Feb 10, 2022</comment><pub-id pub-id-type="doi">10.48550/arXiv.2201.08239</pub-id></nlm-citation></ref><ref id="ref38"><label>38</label><nlm-citation citation-type="web"><article-title>Flesch Kincaid calculator</article-title><source>Good Calculators</source><access-date>2026-06-26</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://goodcalculators.com/flesch-kincaid-calculator/">https://goodcalculators.com/flesch-kincaid-calculator/</ext-link></comment></nlm-citation></ref><ref id="ref39"><label>39</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Rooney</surname><given-names>MK</given-names> </name><name name-style="western"><surname>Santiago</surname><given-names>G</given-names> </name><name name-style="western"><surname>Perni</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Readability of patient education materials from high-impact medical journals: a 20-year analysis</article-title><source>J Patient Exp</source><year>2021</year><volume>8</volume><fpage>2374373521998847</fpage><pub-id pub-id-type="doi">10.1177/2374373521998847</pub-id><pub-id pub-id-type="medline">34179407</pub-id></nlm-citation></ref><ref id="ref40"><label>40</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Weiss</surname><given-names>BD</given-names> </name></person-group><source>Health Literacy</source><year>2003</year><publisher-name>American Medical Association</publisher-name><fpage>253</fpage><lpage>358</lpage><pub-id pub-id-type="other">1-57947-502-7</pub-id></nlm-citation></ref><ref id="ref41"><label>41</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Li</surname><given-names>H</given-names> </name><name name-style="western"><surname>Dong</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>J</given-names> </name><etal/></person-group><article-title>LLMs-as-judges: a comprehensive survey on LLM-based evaluation methods</article-title><source>arXiv</source><comment>Preprint posted online on  Dec 10, 2024</comment><pub-id pub-id-type="doi">10.48550/arXiv.2412.05579</pub-id></nlm-citation></ref><ref id="ref42"><label>42</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Zimmerman</surname><given-names>DW</given-names> </name><name name-style="western"><surname>Zumbo</surname><given-names>BD</given-names> </name></person-group><article-title>Relative power of the Wilcoxon test, the Friedman test, and repeated-measures ANOVA on ranks</article-title><source>J Exp Educ</source><year>1993</year><month>07</month><volume>62</volume><issue>1</issue><fpage>75</fpage><lpage>86</lpage><pub-id pub-id-type="doi">10.1080/00220973.1993.9943832</pub-id></nlm-citation></ref><ref id="ref43"><label>43</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Kassambara</surname><given-names>A</given-names> </name></person-group><article-title>Rstatix: pipe-friendly framework for basic statistical tests</article-title><source>The Comprehensive R Archive Network</source><year>2025</year><month>10</month><day>18</day><access-date>2026-06-27</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://CRAN.R-project.org/package=rstatix">https://CRAN.R-project.org/package=rstatix</ext-link></comment></nlm-citation></ref><ref id="ref44"><label>44</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Cohen</surname><given-names>JF</given-names> </name><name name-style="western"><surname>Chalumeau</surname><given-names>M</given-names> </name><name name-style="western"><surname>Cohen</surname><given-names>R</given-names> </name><name name-style="western"><surname>Korevaar</surname><given-names>DA</given-names> </name><name name-style="western"><surname>Khoshnood</surname><given-names>B</given-names> </name><name name-style="western"><surname>Bossuyt</surname><given-names>PMM</given-names> </name></person-group><article-title>Cochran&#x2019;s Q test was useful to assess heterogeneity in likelihood ratios in studies of diagnostic accuracy</article-title><source>J Clin Epidemiol</source><year>2015</year><month>03</month><volume>68</volume><issue>3</issue><fpage>299</fpage><lpage>306</lpage><pub-id pub-id-type="doi">10.1016/j.jclinepi.2014.09.005</pub-id><pub-id pub-id-type="medline">25441698</pub-id></nlm-citation></ref><ref id="ref45"><label>45</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Balduzzi</surname><given-names>S</given-names> </name><name name-style="western"><surname>R&#x00FC;cker</surname><given-names>G</given-names> </name><name name-style="western"><surname>Schwarzer</surname><given-names>G</given-names> </name></person-group><article-title>How to perform a meta-analysis with R: a practical tutorial</article-title><source>Evidence Based Mental Health</source><year>2019</year><month>11</month><volume>22</volume><issue>4</issue><fpage>153</fpage><lpage>160</lpage><pub-id pub-id-type="doi">10.1136/ebmental-2019-300117</pub-id><pub-id pub-id-type="medline">31563865</pub-id></nlm-citation></ref><ref id="ref46"><label>46</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Hou</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Liu</surname><given-names>H</given-names> </name><name name-style="western"><surname>Bian</surname><given-names>J</given-names> </name><name name-style="western"><surname>He</surname><given-names>X</given-names> </name><name name-style="western"><surname>Zhuang</surname><given-names>Y</given-names> </name></person-group><article-title>Enhancing medical coding efficiency through domain-specific fine-tuned large language models</article-title><source>NPJ Health Syst</source><year>2025</year><volume>2</volume><issue>1</issue><fpage>14</fpage><pub-id pub-id-type="doi">10.1038/s44401-025-00018-3</pub-id><pub-id pub-id-type="medline">40321467</pub-id></nlm-citation></ref><ref id="ref47"><label>47</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Nunes</surname><given-names>M</given-names> </name><name name-style="western"><surname>Bone</surname><given-names>J</given-names> </name><name name-style="western"><surname>Ferreira</surname><given-names>JC</given-names> </name><name name-style="western"><surname>Elvas</surname><given-names>LB</given-names> </name></person-group><article-title>Health care language models and their fine-tuning for information extraction: scoping review</article-title><source>JMIR Med Inform</source><year>2024</year><month>10</month><day>21</day><volume>12</volume><fpage>e60164</fpage><pub-id pub-id-type="doi">10.2196/60164</pub-id><pub-id pub-id-type="medline">39432345</pub-id></nlm-citation></ref><ref id="ref48"><label>48</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Maity</surname><given-names>S</given-names> </name><name name-style="western"><surname>Saikia</surname><given-names>MJ</given-names> </name></person-group><article-title>Large language models in healthcare and medical applications: a review</article-title><source>Bioengineering (Basel)</source><year>2025</year><month>06</month><day>10</day><volume>12</volume><issue>6</issue><fpage>631</fpage><pub-id pub-id-type="doi">10.3390/bioengineering12060631</pub-id><pub-id pub-id-type="medline">40564447</pub-id></nlm-citation></ref><ref id="ref49"><label>49</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Dorfner</surname><given-names>FJ</given-names> </name><name name-style="western"><surname>Dada</surname><given-names>A</given-names> </name><name name-style="western"><surname>Busch</surname><given-names>F</given-names> </name><etal/></person-group><article-title>Evaluating the effectiveness of biomedical fine-tuning for large language models on clinical tasks</article-title><source>J Am Med Inf Assoc</source><year>2025</year><month>06</month><day>1</day><volume>32</volume><issue>6</issue><fpage>1015</fpage><lpage>1024</lpage><pub-id pub-id-type="doi">10.1093/jamia/ocaf045</pub-id><pub-id pub-id-type="medline">40190132</pub-id></nlm-citation></ref><ref id="ref50"><label>50</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Gargari</surname><given-names>OK</given-names> </name><name name-style="western"><surname>Habibi</surname><given-names>G</given-names> </name></person-group><article-title>Enhancing medical AI with retrieval-augmented generation: a mini narrative review</article-title><source>Digit Health</source><year>2025</year><volume>11</volume><fpage>20552076251337177</fpage><pub-id pub-id-type="doi">10.1177/20552076251337177</pub-id><pub-id pub-id-type="medline">40343063</pub-id></nlm-citation></ref><ref id="ref51"><label>51</label><nlm-citation citation-type="web"><person-group person-group-type="author"><name name-style="western"><surname>Eastwood</surname><given-names>B</given-names> </name></person-group><article-title>How does retrieval-augmented generation (RAG) support healthcare AI initiatives</article-title><source>HealthTech</source><year>2025</year><month>01</month><day>27</day><access-date>2026-06-27</access-date><comment><ext-link ext-link-type="uri" xlink:href="https://healthtechmagazine.net/article/2025/01/retrieval-augmented-generation-support-healthcare-ai-perfcon">https://healthtechmagazine.net/article/2025/01/retrieval-augmented-generation-support-healthcare-ai-perfcon</ext-link></comment></nlm-citation></ref><ref id="ref52"><label>52</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Ke</surname><given-names>YH</given-names> </name><name name-style="western"><surname>Jin</surname><given-names>L</given-names> </name><name name-style="western"><surname>Elangovan</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Retrieval augmented generation for 10 large language models and its generalizability in assessing medical fitness</article-title><source>NPJ Digit Med</source><year>2025</year><month>04</month><day>5</day><volume>8</volume><issue>1</issue><fpage>187</fpage><pub-id pub-id-type="doi">10.1038/s41746-025-01519-z</pub-id><pub-id pub-id-type="medline">40185842</pub-id></nlm-citation></ref><ref id="ref53"><label>53</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Yang</surname><given-names>R</given-names> </name><name name-style="western"><surname>Ning</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Keppo</surname><given-names>E</given-names> </name><etal/></person-group><article-title>Retrieval-augmented generation for generative artificial intelligence in health care</article-title><source>npj Health Syst</source><year>2025</year><volume>2</volume><issue>1</issue><fpage>2</fpage><pub-id pub-id-type="doi">10.1038/s44401-024-00004-1</pub-id></nlm-citation></ref><ref id="ref54"><label>54</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Liu</surname><given-names>S</given-names> </name><name name-style="western"><surname>McCoy</surname><given-names>AB</given-names> </name><name name-style="western"><surname>Wright</surname><given-names>A</given-names> </name></person-group><article-title>Improving large language model applications in biomedicine with retrieval-augmented generation: a systematic review, meta-analysis, and clinical development guidelines</article-title><source>J Am Med Inform Assoc</source><year>2025</year><month>04</month><day>1</day><volume>32</volume><issue>4</issue><fpage>605</fpage><lpage>615</lpage><pub-id pub-id-type="doi">10.1093/jamia/ocaf008</pub-id><pub-id pub-id-type="medline">39812777</pub-id></nlm-citation></ref><ref id="ref55"><label>55</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Xiong</surname><given-names>G</given-names> </name><name name-style="western"><surname>Jin</surname><given-names>Q</given-names> </name><name name-style="western"><surname>Wang</surname><given-names>X</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>M</given-names> </name><name name-style="western"><surname>Lu</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Zhang</surname><given-names>A</given-names> </name></person-group><article-title>Improving retrieval-augmented generation in medicine with iterative follow-up questions</article-title><source>Biocomputing</source><year>2025</year><volume>30</volume><fpage>199</fpage><lpage>214</lpage><pub-id pub-id-type="doi">10.1142/9789819807024_0015</pub-id><pub-id pub-id-type="medline">39670371</pub-id></nlm-citation></ref><ref id="ref56"><label>56</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lu</surname><given-names>S</given-names> </name><name name-style="western"><surname>Cosgun</surname><given-names>E</given-names> </name></person-group><article-title>Boosting GPT models for genomics analysis: generating trusted genetic variant annotations and interpretations through RAG and fine-tuning</article-title><source>Bioinf Adv</source><year>2025</year><volume>5</volume><issue>1</issue><fpage>vbaf019</fpage><pub-id pub-id-type="doi">10.1093/bioadv/vbaf019</pub-id><pub-id pub-id-type="medline">39981108</pub-id></nlm-citation></ref><ref id="ref57"><label>57</label><nlm-citation citation-type="book"><person-group person-group-type="author"><name name-style="western"><surname>Ranjan</surname><given-names>S</given-names> </name><name name-style="western"><surname>Chembachere</surname><given-names>D</given-names> </name><name name-style="western"><surname>Lobo</surname><given-names>L</given-names> </name></person-group><article-title>Enhancing llms for agentic AI: RAG vs fine-tuning</article-title><source>Agentic AI in Enterprise</source><year>2025</year><publisher-name>Apress, Berkeley, CA</publisher-name><fpage>151</fpage><lpage>186</lpage><pub-id pub-id-type="doi">10.1007/979-8-8688-1542-3_4</pub-id></nlm-citation></ref><ref id="ref58"><label>58</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Budakoglu</surname><given-names>G</given-names> </name><name name-style="western"><surname>Emekci</surname><given-names>H</given-names> </name></person-group><article-title>Unveiling the power of large language models: a comparative study of retrieval-augmented generation, fine-tuning, and their synergistic fusion for enhanced performance</article-title><source>IEEE Access</source><year>2025</year><volume>13</volume><fpage>30936</fpage><lpage>30951</lpage><pub-id pub-id-type="doi">10.1109/ACCESS.2025.3542334</pub-id></nlm-citation></ref><ref id="ref59"><label>59</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Lopez</surname><given-names>I</given-names> </name><name name-style="western"><surname>Swaminathan</surname><given-names>A</given-names> </name><name name-style="western"><surname>Vedula</surname><given-names>K</given-names> </name><etal/></person-group><article-title>Clinical entity augmented retrieval for clinical information extraction</article-title><source>NPJ Digit Med</source><year>2025</year><month>01</month><day>19</day><volume>8</volume><issue>1</issue><fpage>45</fpage><pub-id pub-id-type="doi">10.1038/s41746-024-01377-1</pub-id><pub-id pub-id-type="medline">39828800</pub-id></nlm-citation></ref><ref id="ref60"><label>60</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Collaco</surname><given-names>BG</given-names> </name><name name-style="western"><surname>Srinivasagam</surname><given-names>P</given-names> </name><name name-style="western"><surname>Gomez-Cabello</surname><given-names>CA</given-names> </name><etal/></person-group><article-title>Integrating fine-tuning and retrieval-augmented generation for healthcare AI systems: a scoping review</article-title><source>Bioengineering (Basel)</source><year>2026</year><month>02</month><day>14</day><volume>13</volume><issue>2</issue><fpage>225</fpage><pub-id pub-id-type="doi">10.3390/bioengineering13020225</pub-id><pub-id pub-id-type="medline">41749764</pub-id></nlm-citation></ref><ref id="ref61"><label>61</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Nasra</surname><given-names>M</given-names> </name><name name-style="western"><surname>Jaffri</surname><given-names>R</given-names> </name><name name-style="western"><surname>Pavlin-Premrl</surname><given-names>D</given-names> </name><etal/></person-group><article-title>Can artificial intelligence improve patient educational material readability? A systematic review and narrative synthesis</article-title><source>Intern Med J</source><year>2025</year><month>01</month><volume>55</volume><issue>1</issue><fpage>20</fpage><lpage>34</lpage><pub-id pub-id-type="doi">10.1111/imj.16607</pub-id><pub-id pub-id-type="medline">39720869</pub-id></nlm-citation></ref><ref id="ref62"><label>62</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Kim</surname><given-names>Y</given-names> </name><name name-style="western"><surname>Jeong</surname><given-names>H</given-names> </name><name name-style="western"><surname>Chen</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Medical hallucination in foundation models and their impact on healthcare</article-title><source>medRxiv</source><comment>Preprint posted online on  Nov 2, 2025</comment><pub-id pub-id-type="doi">10.1101/2025.02.28.25323115</pub-id></nlm-citation></ref><ref id="ref63"><label>63</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Omar</surname><given-names>M</given-names> </name><name name-style="western"><surname>Sorin</surname><given-names>V</given-names> </name><name name-style="western"><surname>Agbareia</surname><given-names>R</given-names> </name><etal/></person-group><article-title>Evaluating and addressing demographic disparities in medical large language models: a systematic review</article-title><source>Int J Equity Health</source><year>2025</year><month>02</month><day>26</day><volume>24</volume><issue>1</issue><fpage>57</fpage><pub-id pub-id-type="doi">10.1186/s12939-025-02419-0</pub-id><pub-id pub-id-type="medline">40011901</pub-id></nlm-citation></ref><ref id="ref64"><label>64</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Bunnell</surname><given-names>DJ</given-names> </name><name name-style="western"><surname>Bondy</surname><given-names>MJ</given-names> </name><name name-style="western"><surname>Fromtling</surname><given-names>LM</given-names> </name><name name-style="western"><surname>Ludeman</surname><given-names>E</given-names> </name><name name-style="western"><surname>Gourab</surname><given-names>K</given-names> </name></person-group><article-title>Bridging AI and healthcare: a scoping review of retrieval-augmented generation&#x2014;ethics, bias, transparency, improvements, and applications</article-title><source>medRxiv</source><comment>Preprint posted online on  Apr 1, 2025</comment><pub-id pub-id-type="doi">10.1101/2025.04.01.25325033</pub-id></nlm-citation></ref><ref id="ref65"><label>65</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Collaco</surname><given-names>BG</given-names> </name><name name-style="western"><surname>Haider</surname><given-names>SA</given-names> </name><name name-style="western"><surname>Prabha</surname><given-names>S</given-names> </name><etal/></person-group><article-title>The role of agentic artificial intelligence in healthcare: a scoping review</article-title><source>NPJ Digit Med</source><year>2026</year><month>03</month><day>14</day><volume>9</volume><issue>1</issue><fpage>345</fpage><pub-id pub-id-type="doi">10.1038/s41746-026-02517-5</pub-id><pub-id pub-id-type="medline">41832341</pub-id></nlm-citation></ref><ref id="ref66"><label>66</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Carvalho</surname><given-names>E</given-names> </name><name name-style="western"><surname>Mascarenhas</surname><given-names>M</given-names> </name><name name-style="western"><surname>Pinheiro</surname><given-names>F</given-names> </name><etal/></person-group><article-title>Predetermined change control plans: guiding principles for advancing safe, effective, and high-quality AI-ML technologies</article-title><source>JMIR AI</source><year>2025</year><month>10</month><day>31</day><volume>4</volume><fpage>e76854</fpage><pub-id pub-id-type="doi">10.2196/76854</pub-id><pub-id pub-id-type="medline">41171641</pub-id></nlm-citation></ref><ref id="ref67"><label>67</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Saini</surname><given-names>M</given-names> </name><name name-style="western"><surname>KC</surname><given-names>G</given-names> </name><name name-style="western"><surname>Williams</surname><given-names>AJ</given-names> </name><name name-style="western"><surname>Coplan</surname><given-names>PM</given-names> </name><name name-style="western"><surname>Gressler</surname><given-names>LE</given-names> </name></person-group><article-title>Regulatory challenges and opportunities: a review of U.S. Food and Drug Administration-approved artificial intelligence and machine learning-enabled cardiovascular devices</article-title><source>Ther Innovation Regul Sci</source><year>2026</year><month>03</month><volume>60</volume><issue>2</issue><fpage>393</fpage><lpage>422</lpage><pub-id pub-id-type="doi">10.1007/s43441-025-00896-7</pub-id><pub-id pub-id-type="medline">41276747</pub-id></nlm-citation></ref><ref id="ref68"><label>68</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Smuha</surname><given-names>NA</given-names> </name></person-group><article-title>Regulation 2024/1689 of the Eur Parl &#x0026; Council of June 13, 2024 (EU Artificial Intelligence Act)</article-title><source>Int Leg Mater</source><year>2025</year><month>10</month><volume>64</volume><issue>5</issue><fpage>1234</fpage><lpage>1381</lpage><pub-id pub-id-type="doi">10.1017/ilm.2024.46</pub-id></nlm-citation></ref><ref id="ref69"><label>69</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Genovese</surname><given-names>A</given-names> </name><name name-style="western"><surname>Hegstrom</surname><given-names>L</given-names> </name><name name-style="western"><surname>Prabha</surname><given-names>S</given-names> </name><etal/></person-group><article-title>Artificial authority: the promise and perils of LLM judges in healthcare</article-title><source>Bioengineering (Basel)</source><year>2026</year><month>01</month><day>16</day><volume>13</volume><issue>1</issue><fpage>108</fpage><pub-id pub-id-type="doi">10.3390/bioengineering13010108</pub-id><pub-id pub-id-type="medline">41596039</pub-id></nlm-citation></ref><ref id="ref70"><label>70</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Williams</surname><given-names>CYK</given-names> </name><name name-style="western"><surname>Subramanian</surname><given-names>CR</given-names> </name><name name-style="western"><surname>Ali</surname><given-names>SS</given-names> </name><etal/></person-group><article-title>Physician- and large language model-generated hospital discharge summaries</article-title><source>JAMA Intern Med</source><year>2025</year><month>07</month><day>1</day><volume>185</volume><issue>7</issue><fpage>818</fpage><lpage>825</lpage><pub-id pub-id-type="doi">10.1001/jamainternmed.2025.0821</pub-id><pub-id pub-id-type="medline">40323616</pub-id></nlm-citation></ref><ref id="ref71"><label>71</label><nlm-citation citation-type="other"><person-group person-group-type="author"><name name-style="western"><surname>Atf</surname><given-names>Z</given-names> </name><name name-style="western"><surname>Safavi-Naini</surname><given-names>SAA</given-names> </name><name name-style="western"><surname>Lewis</surname><given-names>PR</given-names> </name><etal/></person-group><article-title>The challenge of uncertainty quantification of large language models in medicine</article-title><source>arXiv</source><comment>Preprint posted online on  Apr 7, 2025</comment><pub-id pub-id-type="doi">10.48550/arXiv.2504.05278</pub-id></nlm-citation></ref><ref id="ref72"><label>72</label><nlm-citation citation-type="journal"><person-group person-group-type="author"><name name-style="western"><surname>Farah</surname><given-names>L</given-names> </name><name name-style="western"><surname>Borget</surname><given-names>I</given-names> </name><name name-style="western"><surname>Martelli</surname><given-names>N</given-names> </name></person-group><article-title>International market access strategies for artificial intelligence-based medical devices: can we standardize the process to faster patient access?</article-title><source>Mayo Clin Proc Digital Health</source><year>2023</year><month>09</month><volume>1</volume><issue>3</issue><fpage>406</fpage><lpage>412</lpage><pub-id pub-id-type="doi">10.1016/j.mcpdig.2023.06.011</pub-id><pub-id pub-id-type="medline">40206615</pub-id></nlm-citation></ref></ref-list><app-group><supplementary-material id="app1"><label>Multimedia Appendix 1</label><p>Training question&#x2013;answer dataset used for model adaptation, comprising 450 training examples.</p><media xlink:href="jmir_v28i1e90692_app1.xlsx" xlink:title="XLSX File, 69 KB"/></supplementary-material><supplementary-material id="app2"><label>Multimedia Appendix 2</label><p>Validation question and answer dataset used for model adaptation, comprising 150 validation examples.</p><media xlink:href="jmir_v28i1e90692_app2.xlsx" xlink:title="XLSX File, 44 KB"/></supplementary-material><supplementary-material id="app3"><label>Multimedia Appendix 3</label><p>Cosine similarity analysis (Table S1) and safety query overlap assessment (Table S2) between the adaptation and evaluation datasets.</p><media xlink:href="jmir_v28i1e90692_app3.xlsx" xlink:title="XLSX File, 21 KB"/></supplementary-material><supplementary-material id="app4"><label>Multimedia Appendix 4</label><p>Prompts instructions used for baseline, retrieval-augmented generation, hybrid fine-tuning plus retrieval-augmented generation, and LLM (large language model)-as-judge evaluation.</p><media xlink:href="jmir_v28i1e90692_app4.docx" xlink:title="DOCX File, 24 KB"/></supplementary-material><supplementary-material id="app5"><label>Multimedia Appendix 5</label><p>Complete evaluation dataset for accuracy, completeness, relevance, and readability.</p><media xlink:href="jmir_v28i1e90692_app5.xlsx" xlink:title="XLSX File, 38 KB"/></supplementary-material><supplementary-material id="app6"><label>Multimedia Appendix 6</label><p>Complete evaluation dataset for faithfulness and hallucination rates evaluated by the LLM (large language model)-as-a-judge and expert rater.</p><media xlink:href="jmir_v28i1e90692_app6.xlsx" xlink:title="XLSX File, 76 KB"/></supplementary-material><supplementary-material id="app7"><label>Multimedia Appendix 7</label><p>Sensibility&#x2013;Specificity&#x2013;Interestingness rating guide used for relevance assessment.</p><media xlink:href="jmir_v28i1e90692_app7.pdf" xlink:title="PDF File, 78 KB"/></supplementary-material><supplementary-material id="app8"><label>Multimedia Appendix 8</label><p>Accuracy sensitivity analysis restricted to queries with unanimous expert agreement across all model configurations.</p><media xlink:href="jmir_v28i1e90692_app8.docx" xlink:title="DOCX File, 17 KB"/></supplementary-material><supplementary-material id="app9"><label>Multimedia Appendix 9</label><p>Spearman correlation analysis between large language model (LLM)&#x2013;based judge scores and clinical expert ratings for faithfulness and hallucination.</p><media xlink:href="jmir_v28i1e90692_app9.docx" xlink:title="DOCX File, 17 KB"/></supplementary-material></app-group></back></article>