Implementing a context-augmented large language model to guide precision cancer medicine

preprint OA: closed
📄 Open PDF Full text JSON View at publisher
Full text 54,790 characters · extracted from preprint-html · click to expand
Implementing a context-augmented large language model to guide precision cancer medicine | medRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-P4HH5NV'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search Implementing a context-augmented large language model to guide precision cancer medicine View ORCID Profile Hyeji Jun , View ORCID Profile Yutaro Tanaka , Shreya Johri , View ORCID Profile Filipe LF Carvalho , Alexander C. Jordan , Chris Labaki , Matthew Nagy , Tess A. O’Meara , Theodora Pappa , Erica Maria Pimenta , Eddy Saad , View ORCID Profile David D Yang , Riaz Gillani , View ORCID Profile Alok K. Tewari , View ORCID Profile Brendan Reardon , View ORCID Profile Eliezer Van Allen doi: https://doi.org/10.1101/2025.05.09.25327312 Hyeji Jun 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Hyeji Jun Yutaro Tanaka 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 3 Department of Pediatric Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Yutaro Tanaka Shreya Johri 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 4 Harvard Medical School , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Filipe LF Carvalho 7 Department of Urology, Brigham and Women’s Hospital , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Filipe LF Carvalho Alexander C. Jordan 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Chris Labaki 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 9 Department of Medicine, Beth Israel Deaconess Medical Center , Boston, MA 02215, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Matthew Nagy 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 3 Department of Pediatric Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 5 Boston Children’s Hospital , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Tess A. O’Meara 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Theodora Pappa 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 6 Brigham and Women’s Hospital , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Erica Maria Pimenta 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Eddy Saad 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site David D Yang 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 8 Department of Radiation Oncology, Brigham and Women’s Hospital , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for David D Yang Riaz Gillani 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 3 Department of Pediatric Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 4 Harvard Medical School , Boston, MA 02115, USA 5 Boston Children’s Hospital , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site Alok K. Tewari 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 4 Harvard Medical School , Boston, MA 02115, USA 6 Brigham and Women’s Hospital , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Alok K. Tewari Brendan Reardon 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Brendan Reardon Eliezer Van Allen 1 Department of Medical Oncology, Dana-Farber Cancer Institute , Boston, MA 02115, USA 2 Broad Institute of Harvard and MIT , Cambridge, MA 02142, USA 4 Harvard Medical School , Boston, MA 02115, USA Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Eliezer Van Allen For correspondence: eliezerm_vanallen{at}dfci.harvard.edu Abstract Full Text Info/History Metrics Supplementary material Data/Code Preview PDF Abstract The rapid expansion of molecularly informed therapies in oncology, coupled with evolving regulatory FDA approvals, poses a challenge for oncologists seeking to integrate precision cancer medicine into patient care. Large Language Models (LLMs) have demonstrated potential for clinical applications, but their reliance on general knowledge limits their ability to provide up-to-date and niche treatment recommendations. To address this challenge, we developed a RAG-LLM workflow augmented with Molecular Oncology Almanac (MOAlmanac), a curated precision oncology knowledge resource, and evaluated this approach relative to alternative frameworks (i.e. LLM-only) in making biomarker-driven treatment recommendations using both unstructured and structured data. We evaluated performance across 234 therapy-biomarker relationships. Finally, we assessed real-world applicability of the workflow by testing it on actual queries from practicing oncologists. While LLM-only achieved 62–75% accuracy in biomarker-driven treatment recommendations, RAG-LLM achieved 79–91% accuracy with an unstructured database and 94–95% accuracy with a structured database. In addition to accuracy, structured context augmentation significantly increased precision (49% to 80%) and F1-score (57% to 84%) compared to unstructured data augmentation. In queries provided by practicing oncologists, RAG-LLM achieved 81–90% accuracy. These findings demonstrate that the RAG-LLM framework effectively delivers precise and reliable FDA-approved precision oncology therapy recommendations grounded in individualized clinical data, and highlight the importance of integrating a well-curated, structured knowledge base in this process. While our RAG-LLM approach significantly improved accuracy compared to standard LLMs, further efforts will enhance the generation of reliable responses for ambiguous or unsupported clinical scenarios. Introduction Identifying therapeutically targetable molecular alterations to guide treatment options is a key component of precision cancer medicine. However, the growing complexity and volume of regulatory approvals for such therapies make it increasingly challenging for clinicians to stay up to date with relevant clinicogenomic relationships 1 . Tracking these approvals often requires navigating multiple scattered sources, including electronic health records (EHRs), NCCN guidelines, PubMed, and internal emails. Moreover, certain approvals may occur with limited or no publicity, further delaying awareness. This knowledge gap may hinder the timely implementation of new approvals into clinical practice, especially for clinicians not well-versed in cancer genomics 2 . In recent years, the advancements in Large Language Models (LLMs) for addressing similar challenges across clinical medicine have gained attention. Studies have demonstrated the capability of LLMs in tasks such as patient-to-clinical trial matching 3 – 5 , performing clinical summarization tasks 6 , and achieving physician-level performance on medical board examinations 7 . There is also emerging interest in their potential application to support clinical decision-making in precision oncology 8 – 10 . Despite these advancements, LLMs have limitations when handling niche and constantly evolving queries, particularly in the field of oncology 11 . These challenges are due to insufficient domain-specific training and reliance on potentially outdated data, which raises concerns about the accuracy and relevance of their output 12 . This issue is especially critical given these strategies guide oncologists in clinical decision-making. Furthermore, the overwhelming variety of ever-growing available LLMs complicates their adoption, as benchmarking them for specific use cases can be both time-consuming and computationally demanding. Efforts to address these limitations are an active area of research 13 . Notably, Retrieval-Augmented Generation (RAG) has emerged as a promising approach, dynamically retrieving relevant information from external domain-specific databases to supplement an LLM’s general knowledge without modifying its internal weights 14 – 17 . In precision oncology, expertly curated databases such as Molecular Oncology Almanac (MOAlmanac), OncoKB, CIVIC, and MyCancerGenome, are used to guide oncologists treatment options that may be available for diverse genomic and disease indications 18 – 21 . As such, we hypothesized that LLMs augmented with input from expertly curated databases could specifically enhance clinical decision support, particularly for practicing medical professionals in underserved settings 22 , 23 . In this study, we introduce a RAG-LLM approach that enables accurate and approval-derived therapy recommendations based on patients’ genomic biomarkers, disease type, treatment history, and other clinically relevant information for treatment planning ( Figure 1 ). Our RAG-LLM method leverages the MOAlmanac, an expert-curated clinicogenomic interpretation database that compiles the latest precision oncology knowledge regarding relationships between molecular features and clinical actionability 18 , to improve queries of retrieving appropriate FDA-approved biomarker-based oncology therapies. We evaluate this approach on a synthetic dataset, finding that it retrieves the approved therapeutic option based on the provided clinical information with high accuracy. We additionally benchmark this approach on real-world questions provided by practicing oncologists, finding that this approach accurately identifies approved therapies for different diagnoses, clinical histories, and known genomic alterations. Download figure Open in new tab Figure 1. Schematic representation of the RAG-LLM precision oncology workflow for biomarker-driven treatment recommendations. A. Overview of the RAG-LLM precision oncology workflow. The RAG framework retrieves the top 10 most similar matches from the context database using Euclidean distance between query and context embeddings. To evaluate the impact of dataset structure on biomarker-driven treatment recommendations, we compared the performance of RAG-LLM with unstructured data augmentation versus that of RAG-LLM using structured data. The resulting context-augmented query was then fed into a general-purpose LLM for inference. B. To test real-world applicability of the RAG-LLM workflow, actual clinical queries collected from practicing oncologists were input into the RAG-LLM workflow. Results Prompt optimization and benchmarking of LLMs Given the critical role of prompt optimization in enhancing LLM performance, we first evaluated whether designing a specific prompt structure would optimize the accuracy of a representative LLM (Mistral Nemo 12B) in accurately retrieving FDA-approved biomarker-based (“precision”) oncology therapies 24 . We tested four distinct prompt strategies: (1) a single instruction (referred to as the “basic prompt”), (2) a basic prompt with a condition statement restricting results to FDA-approved drugs only, (3) a basic prompt with a defined system role, and (4) a combination of the second and third additional statements ( Table 1 ). A desired output format was specified in all strategies using a JSON-style schema. All evaluated queries were formulated using the structured data from MOAlmanac (Table S1–2). To compare prompt effectiveness, we measured partial match accuracy, defined as the proportion of retrieved therapies that matched ground-truth FDA-approved therapies (Methods). Among the four strategies, the basic prompt demonstrated the highest accuracy in retrieving FDA-approved therapies ( Figure 2A ). The basic prompt achieved an accuracy of 69.2%, outperforming the second (53.4%), third (64.5%), and fourth (51.3%) strategies. Download figure Open in new tab Figure 2. Performance of LLMs across various prompt engineering strategies. A. Partial match accuracies of Mistral NeMo 12B using different prompt strategies. B. Partial match accuracies of LLMs with varying sizes across basic and combined prompt strategies. Accuracies between the basic and combined prompt strategies were compared using McNemar’s test. P-value significance is shown if the p-value is less than 0.05 (p < 0.001: ***, p < 0.01: **, p < 0.05: *); otherwise, it is not displayed. View this table: View inline View popup Table 1. Strategies tested for prompt design optimization. The superior performance of the basic prompting strategy was also consistently observed in other LLMs, particularly those of larger sizes (n = 7 LLM models tested; Figure 2B ). Among all LLM models tested, GPT-4o achieved the highest accuracy. Based on these results, we selected the basic prompt and used GPT-4o for all subsequent evaluations in the RAG-LLM workflow, where relevant information from an external database was integrated into the prompt alongside the user-provided query. RAG-integrated LLM outperforms LLM in therapy predictions We next hypothesized that structured data augmentation would improve the accuracy and reliability of LLM for FDA-approved therapy predictions compared to unstructured data. We thus evaluated GPT-4o’s performance using both unstructured and structured data formats. The unstructured dataset was constructed by extracting the ‘Indication and Usage’ section from drug label text, with a median length of 162 tokens (Interquartile range [IQR]: 127–240 tokens; Figure S1A, Table S3). In contrast, the structured dataset consisted of manually curated therapy-biomarker relationship pairs, with a median length of 181 tokens (IQR: 165–204 tokens; Figure S1B, Table S4). Both approaches were tested on 234 synthetic prompts derived from single entities in MOAlmanac, and accuracy was evaluated against ground-truth therapies (Methods). Without RAG-provided context, model accuracy ranged from 62–75%. However, augmenting the model with unstructured text data significantly improved performance, increasing accuracy to 79–91% (exact match: χ 2 (1) = 153.38, p = 1.27 x 10 -34 ; partial match: χ 2 (1) = 129.20, p = 1.23 x 10 - 29 ; McNemar’s test on results pooled from five repeated runs) ( Figure 3A ). Integrating structured data further enhanced performance compared to unstructured data augmentation, yielding an accuracy of 94–95% (exact match: χ 2 (1) = 103.80, p = 2.98 x 10 - 24 ; partial match: χ 2 (1) = 16.59, p = 4.64 x 10 - 5 ; McNemar’s test on results pooled from five iterations). In addition to accuracy, structured data augmentation markedly improved other key performance metrics ( Figure 3B ). Specifically, precision, recall, F1-score, and specificity all increased, with precision and F1-score significantly improving by approximately 50–60% relative to the unstructured data augmented model (mean precision: 49% to 80%, W = 15.0, p = 3.12 x 10 - 2 ; mean F1-score: 57% to 84%, W = 15.0, p = 3.12 x 10 - 2 ; one-sided Wilcoxon signed-rank test comparing model performance across five iterations). These results demonstrate the role of the RAG approach in enhancing the model’s ability to provide more precise and reliable FDA-approved therapy predictions, with structured data augmentation further optimizing performance. Download figure Open in new tab Figure 3. Enhancement through RAG using unstructured and structured datasets. A. Exact match and partial match accuracies from LLM-only and RAG-LLM augmented with unstructured and structured datasets. B. Average precision, recall, F1-score, specificity and accuracies from RAG-LLM with unstructured and structured data augmentation. C. Top: Number of entities in the MOAlmanac database across cancer types. Bottom: Exact match accuracies from unstructured and structured RAG-LLM approaches across cancer types. D. Top: Number of entities in the MOAlmanac databas e across therapy strategies. Bottom: Exact match accuracies from unstructured and structured RAG-LLM approaches across therapy strategies. Abbreviations in C and D are defined in Table S7 . Additionally, structured data augmentation consistently outperformed the unstructured approach across various cancer types and therapy categories ( Figure 3C–D ). For example, an increase in accuracy of at least 30% was observed when transitioning from unstructured to structured augmentation for melanoma (MEL), prostate adenocarcinoma (PRAD), and cholangiocarcinoma (CHOL). Similarly, among therapy strategies, prompts related to antiandrogen + PARP inhibition, RAF inhibition, RAF + MEK inhibition, EGFR inhibition, and ER signaling inhibition also showed more than 30% improvement in accuracy with structured augmentation. Of note, the model’s performance was suboptimal for certain therapies, particularly PARP and IDH1 inhibitors indicated for breast and ovarian cancer. This was primarily due to limitations in the retrieval step and the lack of reasoning to accurately link specific coding variants to their approved therapies, as well as difficulty distinguishing semantically granular contexts (e.g. treatment versus maintenance treatment). However, the structured data augmented model performed strikingly well in some cases where structured clinicogenomic relationships were densely represented. Given that most antiandrogen + PARP inhibition therapies are approved for homologous recombination repair (HRR) gene mutations in prostate cancer—spanning 16 HRR genes linked to drug approvals— the high exact match accuracy achieved by the RAG-integrated model (LLM: 0%; unstructured RAG-LLM: 11%; structured RAG-LLM: 100%) suggests an effective linkage between HRR genes, approved therapies, and prostate cancer, which has the highest number of clinicogenomic associations in the dataset. Together, these results demonstrate that structured data empowers the model to better capture complex relationships between therapies and their approved indications, thereby improving performance across diverse clinical contexts. RAG-LLM accurately predicts therapies in real-world scenarios To assess the real-world applicability of the RAG-LLM approach, we collected 21 clinical queries from 12 oncologists affiliated with Dana-Farber Cancer Institute. These queries focused on precision oncology therapies given a specific cancer type and biomarker(s). Of these, 10 queries had answers linked to on-label FDA-approved therapy indications listed in the MOAlmanac database (Table S5). We used the structured dataset as the context database for RAG and evaluated the model’s performance using exact match and partial match accuracies (Methods). For queries where no on-label FDA-approved therapies currently exist, we evaluated whether RAG-LLM incorrectly retrieved off-label treatment options. We found that RAG-LLM exhibited lower performance on clinical queries (n=21) compared to synthetic queries (n=234), particularly exhibiting high rates of misattributions or hallucinations in cases without any appropriate FDA-approved drugs available (mean exact match accuracy: 50.48%; mean partial match accuracy: 65.71%; Figure 3A , 4A–B). For example, the LLM returned crizotinib, an FDA-approved ALK inhibitor for anaplastic large cell lymphoma, inflammatory myofibroblastic tumor, and non-small cell lung cancer, and misattributed it as an on-label therapy when queried about ALK inhibitor use for a patient with rhabdomyosarcoma and a TFCP2 fusion (Supplementary Note 3). However, when explicitly instructed to return no results for queries with no FDA-approved therapy available via an additional JSON schema (Methods), the model correctly returned no drugs in all such cases ( Figure 4C ), achieving a mean exact match accuracy of 80.95% and a mean partial match accuracy of 90.48%, significantly outperforming the version without the out-of-scope instruction (exact match: χ 2 (1) = 24.03, p = 1.90 x 10 - 6 ; partial match: χ 2 (1) = 13.59, p = 2.28 x 10 - 4 ; McNemar’s test on pooled results from five iterations; Figure 4A ). Full outputs from the workflow are provided in Table S6. These results demonstrate the challenges in extrapolation of carefully designed queries to real-world queries, and potential strategies to counter common issues. They also demonstrate the effectiveness of RAG-LLM in retrieving relevant therapies for real-world oncologist queries, including those with no valid ground-truth answers. Download figure Open in new tab Figure 4. Performance of structured context-augmented RAG-LLM on real-world questions from practicing oncologists. A. Exact match and partial match accuracies from structured data-based RAG-LLM with or without explicit out-of-scope instructions. B. Number of matching, missing, hallucinated, and no-drug cases predicted by the workflow without explicit out-of-scope instructions, based on first-iteration predictions. Hallucinated drugs include all off-label drugs that were incorrectly attributed as FDA-approved. C. Same as B , but with explicit out-of-scope instructions (i.e., explicitly directing the model to return no matches via a JSON schema if no FDA-approved drugs are available). D. Average precision, recall, F1-score, specificity, and accuracy from structured data-augmented RAG-LLM. Accuracy was computed across all 21 queries; the remaining metrics were calculated across the 10 queries with FDA-approved therapies. Although the out-of-scope instructed model achieved higher accuracy across all queries, the version without the out-of-scope instruction demonstrated better overall performance for the 10 questions with FDA-approved therapies (mean partial match accuracy: 100% vs. 80%; mean F1 score: 86% vs. 70%; Figure 4D ). This version also achieved higher mean recall (83% vs. 67%) while preserving high mean precision (99% vs. 80%). In both strategies, average recall was slightly lower than precision. Notably, in at least six out of ten cases with FDA-approved therapies, the predicted therapies perfectly matched all the ground-truth therapies in both approaches. Together, these findings underscore the RAG-LLM approach’s effectiveness and strong reliability in making therapy predictions, while also highlighting how prompt design directly influences the model’s conservativeness—an aspect that can be flexibly tailored within our framework. Discussion Broadly, this study investigated the potential of RAG-LLM to guide precision oncology decision-making across diverse use cases. We found that prompt optimization, particularly using a simple prompt, markedly improved LLM accuracy in retrieving FDA-approved biomarker-driven therapies, with structured data augmentation further boosting performance to achieve near-perfect accuracy in therapy predictions. Real-world oncologist queries validated the model’s ability to retrieve relevant therapies. Together, these findings highlight the transformative potential of RAG-LLM for precision oncology support. Prompt design is essential for adapting general-purpose LLMs to specific applications 25 . We observed better performance with a basic prompt over a combined prompt, suggesting that enforcing JSON-format output may benefit from brevity. However, performance varied across models, especially smaller ones with fewer parameters, indicating no universal prompt design guarantees improvement across all LLMs in this use case. RAG implementation significantly outperformed the LLM-only approach in predicting FDA-approved therapies, though performance varied with the format of the external dataset used. Our results demonstrate the model’s ability to extract relevant information from unstructured free text, while underscoring that highly curated structured data can significantly enhance its reliability, making the RAG-LLM built with structured data better suited for integration into clinical decision-making workflows. We demonstrated the effectiveness of the RAG-LLM approach using a structured dataset in the real-world scenarios we evaluated but also identified an additional challenge. When no FDA-approved therapy was available for a given case, the model often misattributed treatments approved for other cancer types or biomarkers—although such treatments may still be used in practice based on their clinical relevance, this is beyond the scope of the current study. To address this issue, we implemented a predefined JSON schema instructing the model to return “no matches” when appropriate. This enhancement substantially improved accuracy with no misattributed cases. However, for queries with on-label FDA-approved drugs, the model without the out-of-scope instruction had better overall performance and higher recall while maintaining high precision compared to the out-of-scope instructed model, suggesting that strict adherence to the instruction may make the model more conservative in predicting drugs. In both versions, recall was lower than precision, indicating the framework is less likely to predict false positives, which is a critical feature in treatment recommendation tasks. Ultimately, deploying LLM-based tools in clinical workflows demands strategies to mitigate the inherent risks arising from their widespread adoption. While the primary purpose of our RAG-LLM framework is to guide oncologists in recommending biomarker-driven therapies, its deployment will inevitably increase the risk of misuse or vulnerability to adversarial prompts and attacks—risks shared by all general-purpose LLMs 26 . Furthermore, integrating this framework into clinical settings will present unique challenges, including patient data privacy, potential harm from errors and biases, and protection of intellectual property and proprietary data 27 . Ensuring regulatory compliance with data privacy laws is also critical to maintaining patient confidentiality 28 . Thus, successful implementation of this framework is dependent on a comprehensive strategy that not only tackles the technical complexities of LLM deployment but also prospectively addresses the ethical and regulatory challenges in the high-stakes realm of oncology patient care. In total, our RAG-LLM framework, designed to retrieve biomarker-based FDA-approved drugs, significantly outperformed an LLM-only implementation. Structured data augmentation further boosted its performance, and it demonstrated strong reliability when evaluated on real-world oncologist questions. Given that it requires fewer computational resources and greater adaptability than finetuning-based approaches, this framework may also facilitate greater equity in precision cancer medicine, particularly in supporting non-academic oncologists with limited resources. In addition, this flexible framework allows users to control the model’s conservativeness depending on their needs. For instance, for some rare cancers for which FDA-approvals are scarce, users can specify a higher temperature parameter and a less stringent prompt strategy to return a larger number of potentially relevant results, in addition to exact matches. Lastly, as the current process of staying up-to-date with regulatory approvals is highly fragmented, demanding toggling between multiple sources of information, our framework could also serve as a unified and reliable query layer across an otherwise fractured system. Limitations of the study The primary focus of our study was to develop a reliable LLM-based framework that can serve as a decision-support tool for physicians in oncology. However, achieving the necessary accuracy and reliability for clinical deployment of this approach requires further refinements. Key areas for improvement include enhancing retrieval mechanisms to prioritize relevant therapies over purely text-matched results, expanding the context database by integrating clinical guidelines and clinical trial data to provide treatment options often available to physicians beyond FDA-approved drugs, and lastly, ensuring that treatment recommendations remain current by incorporating a dynamically updated knowledge base. Furthermore, increasing the number of real-world queries will improve the framework’s robustness by accounting for a more diverse range of actual patient cases. Addressing these enhancements will be essential for developing a clinically reliable, real-world applicable, and robust LLM-driven decision-support tool. Method details The development and evaluation of this RAG-LLM precision oncology strategy involved three steps: 1) optimizing prompt design using a standard LLM, 2) evaluating the impact of both unstructured and structured context databases on the RAG-LLM’s ability to recommend biomarker-driven treatments, and 3) assessing the real-world applicability of the RAG-LLM by testing it with clinical queries from oncologists regarding biomarker-driven treatment recommendations. Database To incorporate the latest knowledge on the clinical actionability of genomic biomarkers, we used FDA-approved drug indications from the April 11th, 2024 release of the Molecular Oncology Almanac (MOAlmanac) database ( https://github.com/vanallenlab/moalmanac-db/releases/tag/v.2024-04-11 ). MOAlmanac contains both unstructured, free-text precision oncology genomic knowledge and structured data fields, including biomarkers, cancer types, and therapies 18 . Since the study’s primary use case is to assist medical professionals and molecular tumor boards in making treatment decisions, we focused exclusively on FDA-approved drugs to be conservative. Prompt engineering To optimize prompt design for optimal model performance, we conducted a preliminary prompt engineering phase using the Mistral NeMo 12B model 29 , released in July 2024. Several prompt engineering strategies were evaluated, including: Basic prompt: “Please provide each line of treatment as a json format with the following JSON schema…Query: {prompt}” Scope-limiting prompt: “Please only provide the therapies that are FDA-approved for the provided genomic biomarkers…Query: {prompt}” System role prompt: “You are a helpful chatbot specialized in suggesting FDA-approved drugs to treat cancer…Query: {prompt}” Combination prompt: Merging strategies 2 and 3 with the basic prompt. Additionally, the prompt included an example JSON schema to help the model generate structured output, which facilitated accurate and consistent evaluation ( Table 1 ). Benchmark against other LLMs In addition to the Mistral NeMo 12B model, we evaluated the performance of several other widely used LLMs. All models were accessed via their respective APIs, except Mistral 7B Instruct, an older model nearing deprecation, which was loaded and run locally on a Google Cloud virtual machine with 4 NVIDIA T4 GPUs. – Mistral 7B Instruct (mistral-7B-Instruct-v0.3) – Mistral 8B (ministral-8b-2410) – Mistral 123B (mistral-large-2407) – OpenAI GPT-4o (gpt-4o-2024-05-13) – OpenAI GPT-4o-mini (gpt-4o-mini-2024-07-18) – OpenAI o4-mini (o4-mini-2025-04-16) RAG-LLM approach For the development and assessment of the RAG-LLM approach, we used 234 systematically generated prompts derived from each individual entity in the MOAlmanac database to mirror human-provided queries (Table S1–2). We used the top-ranked GPT-4o model for all subsequent analyses. To evaluate the RAG-LLM approach using an unstructured dataset, we generated a dataset of FDA drug label text in PDF format for each biomarker-based therapy approval and extracted each label’s ‘Indication and Usage’ section. We selected drug labels for FDA-approved oncology therapies involving a biomarker for at least one approved indication, as curated by the MOAlmanac database. The resulting unstructured dataset consisted of 56 original ‘Indications and Usage’ sections, which served as the context database for RAG integration (Table S3). A representative input-output example using unstructured data is available in Supplementary Note 1. To evaluate the RAG-LLM approach using a structured dataset, we manually created an answer set for the synthetic prompts, incorporating it into the RAG-LLM workflow as a structured context database. Each answer chunk corresponded to each entity or therapy-biomarker relationship in MOAlamanc (Table S4). An example of an input prompt augmented with structured data and its output from the RAG-LLM workflow is provided in Supplementary Note 2. For both approaches, the context database was embedded using the text-embedding-3-small model 30 and stored as a vector database via the FAISS library 31 . Each query embedding was then compared to the embedded context database using Euclidean distance, retrieving the top 10 most similar text chunks to supplement the prompt fed into the LLM for inference. Real-world question survey and evaluation To collect real-world clinical questions, we designed a survey and distributed it to collaborating physicians at the Dana-Farber Cancer Institute and Boston Children’s Hospital. The survey introduced the MOAlmanac database, focusing on FDA-approved drug indications and clinical genomic biomarkers. Physicians were asked to submit questions related to their clinical practice regarding drug actionability, treatment regimens, or biomarker associations, without including identifiable patient data. These responses were then used as prompts to evaluate our RAG-LLM approach, assessing its ability to generate relevant and accurate answers in real-world clinical settings. The prompt design was refined to handle cases where no FDA-approved therapies exist. To account for variability across model runs, we conducted five iterations of the RAG-LLM workflow. Evaluation We evaluated LLM performance with and without RAG by calculating the proportion of exact and partial matches of correctly predicted therapy recommendations across all the relationships. Each LLM output was generated in a JSON format and was parsed line by line for drug names following the ‘Drug Name’ entity to compute the accuracy. To account for the non-deterministic behavior of LLMs, we ran five iterations of the workflow and averaged the accuracy across iterations. For exact match accuracy, predictions were considered correct if all the ground-truth therapies (Table S2) were present in the drug output. For partial match accuracy, predictions were considered correct if at least one ground truth therapy was present: Where: Additionally, we calculated precision, recall, F1 score, and specificity to comprehensively assess model performance across all queries. To minimize the randomness in outputs, we set the temperature to 0.0 and initialized a fixed random seed. Statistical test We performed McNemar’s test to compare accuracies between different approaches. When the total number of discordant pairs was 25 or greater, we used the chi-square approximation with a continuity correction was used to prevent overestimation of significance. For fewer than 25 discordant pairs, we applied the exact binomial test. To assess overall performance across iterations, we pooled the discordant pair counts from all runs and then performed the McNemar’s test. When comparing evaluation metrics other than accuracy, we used a one-sided Wilcoxon signed-rank test. To account for multiple hypothesis testing, p-values were adjusted using the Benjamini-Hochberg correction. Resource availability Data and code availability All the scripts and datasets for running the LLM and RAG-LLM pipelines, along with the corresponding outputs generated in this study, are publicly available at https://github.com/hjjshine/rag-llm-cancer-paper . Pipeline usage instructions are provided in the README file. Model’s conservativeness can be controlled using the temperature and strategy parameters. Data Availability All data produced are available online at https://github.com/hjjshine/rag-llm-cancer-paper Declaration of interests RG has equity in Google, Microsoft, Amazon, Apple, Moderna, Pfizer, and Vertex Pharmaceuticals; his spouse is employed by Carrum Health. ES receives research funding from Genentech/imCORE and Oncohost. CL receives research funding from Genentech/imCORE. EMVA holds consulting roles with Enara Bio, Manifold Bio, Monte Rosa, Novartis Institute for Biomedical Research, Serinus Bio, and TracerBio; he previously held consulting roles with Tango Therapeutics, Invitae, Syapse, Janssen, Genome Medical, Genomic Life, and Riva Therapeutics; he receives research support from Novartis, Bristol-Myers Squibb, Sanofi, and NextPoint; he has equity in Tango Therapeutics, Genome Medical, Genomic Life, Enara Bio, Manifold Bio, Microsoft, Monte Rosa, Riva Therapeutics, Serinus Bio, Syapse, and TracerDx; he received travel reimbursement from Roche and Genentech; he has filed institutional patents on chromatin mutations and immunotherapy response, and methods for clinical interpretation, and provides intermittent legal consulting on patents for Foaley & Hoag. Other authors have no relevant disclosures. Acknowledgements This work was supported by P50CA272390, DOD W81XWH-21-PCRP-DSA, DOD HT94252410415, and the Mark Foundation Emerging Leader Award. Footnotes ↵ 10 Lead contact Results updated based on top-performing model from prompt optimization; Figures 2-4 updated; Supplemental files updated; Funding information updated. References 1. ↵ Suehnholz , S.P. , Nissan , M.H. , Zhang , H. , Kundra , R. , Nandakumar , S. , Lu , C. , Carrero , S. , Dhaneshwar , A. , Fernandez , N. , Xu , B.W. , et al. ( 2024 ). Quantifying the expanding landscape of clinical actionability for patients with cancer . Cancer Discov . 14 , 49 – 65 . doi: 10.1158/2159-8290.CD-23-0467 . OpenUrl CrossRef 2. ↵ Chow-White , P. , Ha , D. , and Laskin , J . ( 2017 ). Knowledge, attitudes, and values among physicians working with clinical genomics: a survey of medical oncologists . Hum. Resour. Health 15 , 42 . doi: 10.1186/s12960-017-0218-z . OpenUrl CrossRef 3. ↵ Jin , Q. , Wang , Z. , Floudas , C.S. , Chen , F. , Gong , C. , Bracken-Clarke , D. , Xue , E. , Yang , Y. , Sun , J. , and Lu , Z . ( 2024 ). Matching patients to clinical trials with large language models . Nat. Commun . 15 , 9074 . doi: 10.1038/s41467-024-53081-z . OpenUrl CrossRef PubMed 4. ↵ Cerami , E. , Trukhanov , P. , Paul , M.A. , Hassett , M.J. , Riaz , I.B. , Lindsay , J. , Mallaber , E. , Klein , H. , Gungor , G. , Galvin , M. , et al. ( 2024 ). MatchMiner-AI: An Open-Source Solution for Cancer Clinical Trial Matching . arXiv [cs.AI] . 5. ↵ Wong , C. , Zhang , S. , Gu , Y. , Moung , C. , Abel , J. , Usuyama , N. , Weerasinghe , R. , Piening , B. , Naumann , T. , Bifulco , C. , et al. ( 2023 ). Scaling clinical trial matching using large language models: A case study in oncology . arXiv [cs.CL] . 6. ↵ Van Veen , D. , Van Uden , C. , Blankemeier , L. , Delbrouck , J.-B. , Aali , A. , Bluethgen , C. , Pareek , A. , Polacin , M. , Reis , E.P. , Seehofnerová , A. , et al. ( 2024 ). Adapted large language models can outperform medical experts in clinical text summarization . Nat. Med . 30 , 1134 – 1142 . doi: 10.1038/s41591-024-02855-5 . OpenUrl CrossRef PubMed 7. ↵ Katz , U. , Cohen , E. , Shachar , E. , Somer , J. , Fink , A. , Morse , E. , Shreiber , B. , and Wolf , I . ( 2024 ). GPT versus resident physicians — A benchmark based on official board scores . NEJM AI 1 . doi: 10.1056/aidbp2300192 . OpenUrl CrossRef 8. ↵ Benary , M. , Wang , X.D. , Schmidt , M. , Soll , D. , Hilfenhaus , G. , Nassir , M. , Sigler , C. , Knödler , M. , Keller , U. , Beule , D. , et al. ( 2023 ). Leveraging large language models for decision support in personalized oncology . JAMA Netw. Open 6 , e2343689 . doi: 10.1001/jamanetworkopen.2023.43689 . OpenUrl CrossRef 9. Xu , S. , Most , A. , Chase , A. , Hedrick , T. , Murray , B. , Keats , K. , Smith , S. , Barreto , E. , Liu , T. , and Sikora , A . ( 2024 ). Large language models management of complex medication regimens: a case-based evaluation . medRxiv , 2024 . 07.03.24309889 . doi: 10.1101/2024.07.03.24309889 . OpenUrl Abstract / FREE Full Text 10. ↵ Elemento , O. , Khozin , S. , and Sternberg , C.N . ( 2025 ). The use of artificial intelligence for cancer therapeutic decision-making . NEJM AI 2 . doi: 10.1056/aira2401164 . OpenUrl CrossRef 11. ↵ Verlingue , L. , Boyer , C. , Olgiati , L. , Brutti Mairesse , C. , Morel , D. , and Blay , J.-Y . ( 2024 ). Artificial intelligence in oncology: ensuring safe and effective integration of language models in clinical practice . Lancet Reg. Health Eur . 46 , 101064 . doi: 10.1016/j.lanepe.2024.101064 . OpenUrl CrossRef 12. ↵ Jeffrey , C. , Marc , M. , Orion , W. , Dawn , L. , Daniel , K. , and Van Durme , B. ( 2024 ). Dated data: Tracing knowledge cutoffs in Large Language Models . arXiv [cs.CL] . 13. ↵ Towhidul Islam Tonmoy , S. , Mehedi Zaman , S.M. , Vinija , J. , Anku , R. , Vipula , R. , Aman , C. , and Amitava , D. ( 2024 ). A comprehensive survey of hallucination mitigation techniques in Large Language Models . arXiv [cs.CL] . 14. ↵ Lewis , P. , Perez , E. , Piktus , A. , Petroni , F. , Karpukhin , V. , Goyal , N. , Kuttler , H. , Lewis , M. , Yih , W.-T. , Rocktäschel , T. , et al. ( 2020 ). Retrieval-augmented generation for knowledge-intensive NLP tasks . Neural Inf Process Syst abs/ 2005 . 11401 . OpenUrl 15. Shanghua , G. , Richard , Z. , Zhenglun , K. , Ayush , N. , Xiaorui , S. , Curtis , G. , Theodoros , T. , and Marinka , Z . ( 2025 ). TxAgent: An AI agent for therapeutic reasoning across a universe of tools . arXiv [cs.AI] . 16. Zakka , C. , Shad , R. , Chaurasia , A. , Dalal , A.R. , Kim , J.L. , Moor , M. , Fong , R. , Phillips , C. , Alexander , K. , Ashley , E. , et al. ( 2024 ). Almanac - retrieval-augmented language models for clinical medicine . NEJM AI 1 . doi: 10.1056/aioa2300068 . OpenUrl CrossRef 17. ↵ Ferber , D. , El Nahhas , O.S.M. , Wölflein , G. , Wiest , I.C. , Clusmann , J. , Leßmann , M.-E. , Foersch , S. , Lammert , J. , Tschochohei , M. , Jäger , D. , et al. ( 2025 ). Development and validation of an autonomous artificial intelligence agent for clinical decision-making in oncology. Nat . Cancer , 1 – 13 . doi: 10.1038/s43018-025-00991-6 . OpenUrl CrossRef 18. ↵ Reardon , B. , Moore , N.D. , Moore , N.S. , Kofman , E. , AlDubayan , S.H. , Cheung , A.T.M. , Conway , J. , Elmarakeby , H. , Imamovic , A. , Kamran , S.C. , et al. ( 2021 ). Integrating molecular profiles into clinical frameworks through the Molecular Oncology Almanac to prospectively guide precision oncology. Nat . Cancer 2 , 1102 – 1112 . doi: 10.1038/s43018-021-00243-3 . OpenUrl CrossRef PubMed 19. Chakravarty , D. , Gao , J. , Phillips , S.M. , Kundra , R. , Zhang , H. , Wang , J. , Rudolph , J.E. , Yaeger , R. , Soumerai , T. , Nissan , M.H. , et al. ( 2017 ). OncoKB: A precision oncology knowledge base. JCO Precis . Oncol . 2017 . doi: 10.1200/PO.17.00011 . OpenUrl CrossRef PubMed 20. Griffith , M. , Spies , N.C. , Krysiak , K. , McMichael , J.F. , Coffman , A.C. , Danos , A.M. , Ainscough , B.J. , Ramirez , C.A. , Rieke , D.T. , Kujan , L. , et al. ( 2017 ). CIViC is a community knowledgebase for expert crowdsourcing the clinical interpretation of variants in cancer . Nat. Genet . 49 , 170 – 174 . doi: 10.1038/ng.3774 . OpenUrl CrossRef PubMed 21. ↵ Holt , M.E. , Mittendorf , K.F. , LeNoue-Newton , M. , Jain , N.M. , Anderson , I. , Lovly , C.M. , Osterman , T. , Micheel , C. , and Levy , M . ( 2021 ). My Cancer Genome: Coevolution of precision oncology and a molecular oncology knowledgebase. JCO Clin . Cancer Inform . 5 , 995 – 1004 . doi: 10.1200/CCI.21.00084 . OpenUrl CrossRef 22. ↵ Malone , E.R. , Oliva , M. , Sabatini , P.J.B. , Stockley , T.L. , and Siu , L.L . ( 2020 ). Molecular profiling for precision cancer therapies . Genome Med . 12 , 8 . doi: 10.1186/s13073-019-0703-1 . OpenUrl CrossRef PubMed 23. ↵ Rahman , B. , McEwen , A. , Phillips , J.L. , Tucker , K. , Goldstein , D. , and Jacobs , C . ( 2022 ). Genetic and genomic learning needs of oncologists and oncology nurses in the era of precision medicine: a scoping review . Per. Med . 19 , 139 – 153 . doi: 10.2217/pme-2021-0096 . OpenUrl CrossRef 24. ↵ Reynolds , L. , and McDonell , K . ( 2021 ). Prompt programming for large language models: Beyond the few-shot paradigm . In Extended Abstracts of the 2021 CHI Conference on Human Factors in Computing Systems (ACM) . doi: 10.1145/3411763.3451760 . OpenUrl CrossRef 25. ↵ Pranab , S. , Singh , A.K. , Sriparna , S. , Vinija , J. , Samrat , M. , and Aman , C. ( 2024 ). A systematic survey of prompt engineering in large language models: Techniques and applications . arXiv [cs.AI] . 26. ↵ Erfan , S. , Al Mamun , M.A. , Yu , F. , Pedram , Z. , Yue , D. , and Nael , A.-G . ( 2023 ). Survey of vulnerabilities in large Language Models revealed by adversarial attacks . arXiv [cs.CL] . 27. ↵ Umeton , R. , Kwok , A. , Maurya , R. , Leco , D. , Lenane , N. , Willcox , J. , Abel , G.A. , Tolikas , M. , and Johnson , J.M . ( 2024 ). GPT-4 in a cancer center — institute-wide deployment challenges and lessons learned . NEJM AI 1 . doi: 10.1056/aics2300191 . OpenUrl CrossRef 28. ↵ Ong , J.C.L. , Chang , S.Y.-H. , William , W. , Butte , A.J. , Shah , N.H. , Chew , L.S.T. , Liu , N. , Doshi-Velez , F. , Lu , W. , Savulescu , J. , et al. ( 2024 ). Ethical and regulatory challenges of large language models in medicine. Lancet Digit . Health 6 , e428 – e432 . doi: 10.1016/S2589-7500(24)00061-X . OpenUrl CrossRef 29. ↵ mistralai/Mistral-Nemo-Base-2407 · Hugging Face https://huggingface.co/mistralai/Mistral-Nemo-Base-2407 . 30. ↵ New embedding models and API updates https://openai.com/index/new-embedding-models-and-api-updates . 31. ↵ Matthijs , D. , Alexandr , G. , Chengqi , D. , Jeff , J. , Gergely , S. , Pierre-Emmanuel , M. , Maria , L. , Lucas , H. , and Hervé , J . ( 2024 ). The Faiss library . arXiv [cs.LG] . View the discussion thread. Back to top Previous Next Posted July 24, 2025. Download PDF Supplementary Material Data/Code Email Thank you for your interest in spreading the word about medRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following Implementing a context-augmented large language model to guide precision cancer medicine Message Subject (Your Name) has forwarded a page to you from medRxiv Message Body (Your Name) thought you would like to see this page from the medRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share Implementing a context-augmented large language model to guide precision cancer medicine Hyeji Jun , Yutaro Tanaka , Shreya Johri , Filipe LF Carvalho , Alexander C. Jordan , Chris Labaki , Matthew Nagy , Tess A. O’Meara , Theodora Pappa , Erica Maria Pimenta , Eddy Saad , David D Yang , Riaz Gillani , Alok K. Tewari , Brendan Reardon , Eliezer Van Allen medRxiv 2025.05.09.25327312; doi: https://doi.org/10.1101/2025.05.09.25327312 Share This Article: Copy Citation Tools Implementing a context-augmented large language model to guide precision cancer medicine Hyeji Jun , Yutaro Tanaka , Shreya Johri , Filipe LF Carvalho , Alexander C. Jordan , Chris Labaki , Matthew Nagy , Tess A. O’Meara , Theodora Pappa , Erica Maria Pimenta , Eddy Saad , David D Yang , Riaz Gillani , Alok K. Tewari , Brendan Reardon , Eliezer Van Allen medRxiv 2025.05.09.25327312; doi: https://doi.org/10.1101/2025.05.09.25327312 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Health Informatics Subject Areas All Articles Addiction Medicine (569) Allergy and Immunology (863) Anesthesia (300) Cardiovascular Medicine (4442) Dentistry and Oral Medicine (444) Dermatology (383) Emergency Medicine (609) Endocrinology (including Diabetes Mellitus and Metabolic Disease) (1511) Epidemiology (15230) Forensic Medicine (30) Gastroenterology (1126) Genetic and Genomic Medicine (6610) Geriatric Medicine (668) Health Economics (998) Health Informatics (4542) Health Policy (1370) Health Systems and Quality Improvement (1613) Hematology (543) HIV/AIDS (1266) Infectious Diseases (except HIV/AIDS) (15923) Intensive Care and Critical Care Medicine (1103) Medical Education (623) Medical Ethics (147) Nephrology (668) Neurology (6607) Nursing (346) Nutrition (999) Obstetrics and Gynecology (1146) Occupational and Environmental Health (957) Oncology (3337) Ophthalmology (974) Orthopedics (369) Otolaryngology (420) Pain Medicine (436) Palliative Medicine (130) Pathology (664) Pediatrics (1693) Pharmacology and Therapeutics (692) Primary Care Research (712) Psychiatry and Clinical Psychology (5448) Public and Global Health (9238) Radiology and Imaging (2202) Rehabilitation Medicine and Physical Therapy (1370) Respiratory Medicine (1196) Rheumatology (596) Sexual and Reproductive Health (714) Sports Medicine (530) Surgery (712) Toxicology (99) Transplantation (289) Urology (265) (function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'a019e2be4e02df94',t:'MTc3OTc2ODE2MQ=='};var a=document.createElement('script');a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00