{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,25]],"date-time":"2026-11-25T12:37:30Z","timestamp":1795610250175,"version":"4.11.1"},"reference-count":37,"publisher":"Oxford University Press (OUP)","issue":"8","license":[{"start":{"date-parts":[[2026,6,5]],"date-time":"2026-06-05T00:00:00Z","timestamp":1780617600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/academic.oup.com\/pages\/standard-publication-reuse-rights"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":[],"published-print":{"date-parts":[[2026,8,1]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:sec>\n                    <jats:title>Objective<\/jats:title>\n                    <jats:p>Evaluate how RAG architecture, including corpus structure, retrieval strategy, and pipeline complexity, affects LLM-based medical problem solving and knowledge retrieval in sleep medicine.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Materials and Methods<\/jats:title>\n                    <jats:p>We benchmarked four open-source LLMs (Llama-3-8B, Llama -3 -70B, Qwen 2.5-14B, and Qwen 2.5-235B) using a knowledge base of five sleep medicine textbooks. We compared performance across three dimensions: corpus structure (raw text vs table-of-contents aligned.), retrieval strategy (dense embedding vs hybrid sparse-dense), and pipeline complexity (baseline vs augmented). Evaluation metrics included board-style multiple choice question (MCQ) accuracy and clinical case vignette diagnostic ranking.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Results<\/jats:title>\n                    <jats:p>RAG improved MCQ accuracy for all models. Llama-8B saw the largest gain of 10.6% (61.8% to 72.4%), while Qwen-235B reached 87.3%. In clinical cases, Llama-8B accuracy dropped by 7.1% when using raw text and dense retrieval due to context noise. This was corrected by using structured hybrid configurations. Hybrid retrieval consistently outperformed dense-only methods. Overall, structured corpora improved primary diagnosis accuracy by 6.1% on average, with Qwen-235B reaching a peak 10.2% increase.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Discussion<\/jats:title>\n                    <jats:p>RAG effectiveness depends on the balance between model size and data structure. Large models handle uncurated text well, but smaller models are easily distracted by irrelevant data. Hybrid retrieval is necessary to maintain precision with specialized medical terms. A structured corpus paired with a baseline hybrid pipeline offers the best stability and speed for clinical use.<\/jats:p>\n                  <\/jats:sec>\n                  <jats:sec>\n                    <jats:title>Conclusion<\/jats:title>\n                    <jats:p>Rigorous data curation and hybrid retrieval are as essential as model scale for deploying safe, guideline-compliant AI in sleep medicine.<\/jats:p>\n                  <\/jats:sec>","DOI":"10.1093\/jamia\/ocag056","type":"journal-article","created":{"date-parts":[[2026,4,2]],"date-time":"2026-04-02T11:46:30Z","timestamp":1775130390000},"page":"1436-1445","source":"Crossref","is-referenced-by-count":5,"title":["Optimizing Retrieval-Augmented Generation (RAG) in clinical medicine: methods and performance evaluation"],"prefix":"10.1093","volume":"33","author":[{"given":"Pengze","family":"Li","sequence":"first","affiliation":[{"name":"Department of Artificial Intelligence and Informatics, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Anshum","family":"Patel","sequence":"additional","affiliation":[{"name":"Division of Pulmonary, Allergy and Sleep Medicine, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sai Krishna","family":"Vallamchetla","sequence":"additional","affiliation":[{"name":"Department of Neurology, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Hayden","family":"Heninger","sequence":"additional","affiliation":[{"name":"Division of Pulmonary, Allergy and Sleep Medicine, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Het","family":"Contractor","sequence":"additional","affiliation":[{"name":"Division of Pulmonary, Allergy and Sleep Medicine, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Cui","family":"Tao","sequence":"additional","affiliation":[{"name":"Department of Artificial Intelligence and Informatics, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Joseph","family":"Cheung","sequence":"additional","affiliation":[{"name":"Department of Artificial Intelligence and Informatics, Mayo Clinic , Jacksonville, FL,","place":["United States"]},{"name":"Division of Pulmonary, Allergy and Sleep Medicine, Mayo Clinic , Jacksonville, FL,","place":["United States"]}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"286","published-online":{"date-parts":[[2026,6,5]]},"reference":[{"key":"2026072104051440900_ocag056-B1","doi-asserted-by":"publisher","first-page":"866","DOI":"10.1001\/jama.2023.14217","article-title":"Creation and adoption of large language models in medicine","volume":"330","author":"Shah","year":"2023","journal-title":"JAMA"},{"key":"2026072104051440900_ocag056-B2","doi-asserted-by":"publisher","first-page":"1823","DOI":"10.1038\/s42256-025-01137-0","article-title":"Densing law of LLMs","volume":"7","author":"Xiao","year":"2025","journal-title":"Nat Mach Intell"},{"key":"2026072104051440900_ocag056-B3","doi-asserted-by":"publisher","first-page":"10104","DOI":"10.1038\/s41467-024-51465-9","article-title":"In-context learning enables multimodal large language models to classify cancer pathology images","volume":"15","author":"Ferber","year":"2024","journal-title":"Nat Commun"},{"issue":"1.","key":"2026072104051440900_ocag056-B4","doi-asserted-by":"publisher","DOI":"10.1038\/s41598-026-46333-z","article-title":"Diagnostic accuracy of multimodal large language models in differentiating epileptic from functional seizures in smartphone recorded videos","volume":"16","author":"Patel","year":"2026","journal-title":"Sci Rep"},{"key":"2026072104051440900_ocag056-B5","doi-asserted-by":"publisher","first-page":"195","DOI":"10.1038\/s41746-023-00939-z","article-title":"Large language models propagate race-based medicine","volume":"6","author":"Omiye","year":"2023","journal-title":"NPJ Digit Med"},{"key":"2026072104051440900_ocag056-B6","doi-asserted-by":"publisher","DOI":"10.1038\/s44401-024-00004-1","article-title":"Retrieval-augmented generation for generative artificial intelligence in health care","volume":"2","author":"Yang","year":"2025","journal-title":"NPJ Health Syst"},{"issue":"1","key":"2026072104051440900_ocag056-B7","doi-asserted-by":"publisher","first-page":"AIra2400380","DOI":"10.1056\/AIra2400380","article-title":"RAG in health care: a novel framework for improving communication and decision-making by addressing LLM limitations","volume":"2","author":"Ng","year":"2025","journal-title":"NEJM AI"},{"key":"2026072104051440900_ocag056-B8","doi-asserted-by":"publisher","first-page":"45","DOI":"10.1038\/s41746-024-01377-1","article-title":"Clinical entity augmented retrieval for clinical information extraction","volume":"8","author":"Lopez","year":"2025","journal-title":"NPJ Digit Med"},{"key":"2026072104051440900_ocag056-B9","doi-asserted-by":"publisher","first-page":"798","DOI":"10.1001\/jamaophthalmol.2024.2513","article-title":"Development and evaluation of a retrieval-augmented large language model framework for ophthalmology","volume":"142","author":"Luo","year":"2024","journal-title":"JAMA Ophthalmol"},{"key":"2026072104051440900_ocag056-B10","doi-asserted-by":"publisher","first-page":"137","DOI":"10.1038\/s41746-025-01536-y","article-title":"Evaluating base and retrieval augmented LLMs with document or online support for evidence based neurology","volume":"8","author":"Masanneck","year":"2025","journal-title":"NPJ Digit Med"},{"key":"2026072104051440900_ocag056-B11","doi-asserted-by":"publisher","first-page":"1442","DOI":"10.1056\/NEJMcp1816152","article-title":"Obstructive sleep apnea in adults","volume":"380","author":"Veasey","year":"2019","journal-title":"N Engl J Med"},{"key":"2026072104051440900_ocag056-B12","doi-asserted-by":"publisher","first-page":"687","DOI":"10.1016\/s2213-2600(19)30198-5","article-title":"Estimation of the global prevalence and burden of obstructive sleep apnoea: a literature-based analysis","volume":"7","author":"Benjafield","year":"2019","journal-title":"Lancet Respir Med"},{"key":"2026072104051440900_ocag056-B13","doi-asserted-by":"publisher","first-page":"247","DOI":"10.1056\/NEJMcp2305655","article-title":"Management of Insomnia","volume":"391","author":"Morin","year":"2024","journal-title":"N Engl J Med"},{"key":"2026072104051440900_ocag056-B14","doi-asserted-by":"publisher","first-page":"1511","DOI":"10.5664\/jcsm.11732","article-title":"Artificial intelligence in sleep medicine: assessing the diagnostic precision of ChatGPT-4","volume":"21","author":"Patel","year":"2025","journal-title":"J Clin Sleep Med"},{"key":"2026072104051440900_ocag056-B15","doi-asserted-by":"publisher","first-page":"106677","DOI":"10.1016\/j.sleep.2025.106677","article-title":"Diagnostic performance of Large Language Models (LLMs) compared with physicians in sleep medicine","volume":"134","author":"Patel","year":"2025","journal-title":"Sleep Med"},{"key":"2026072104051440900_ocag056-B16","doi-asserted-by":"publisher","first-page":"4782","DOI":"10.1038\/s41598-025-34939-8","article-title":"Performance of successive generative pretrained transformers (GPT) models in medical cases and board style questions","volume":"16","author":"Patel","year":"2026","journal-title":"Sci Rep"},{"issue":"2","key":"2026072104051440900_ocag056-B17","doi-asserted-by":"publisher","first-page":"AIoa2300068","DOI":"10.1056\/AIoa2300068","article-title":"Almanac\u2013retrieval-augmented language models for clinical medicine","volume":"1","author":"Zakka","year":"2024","journal-title":"NEJM AI"},{"key":"2026072104051440900_ocag056-B18","author":"Sleep Qs - Board Review 2.0"},{"key":"2026072104051440900_ocag056-B19","author":"BoardVitals"},{"key":"2026072104051440900_ocag056-B20","author":"Case Book of Sleep Medicine Third Edition (Online)","year":"2019"},{"key":"2026072104051440900_ocag056-B21","author":"Chen","year":"2022"},{"key":"2026072104051440900_ocag056-B22","author":"Lu","year":"2022"},{"key":"2026072104051440900_ocag056-B23","doi-asserted-by":"publisher","author":"Excoffier","year":"2024","DOI":"10.48550\/arXiv.2401.01943"},{"key":"2026072104051440900_ocag056-B24","author":"Cormack","year":"2009"},{"key":"2026072104051440900_ocag056-B25","author":"Cao","year":"2025"},{"key":"2026072104051440900_ocag056-B26","author":"Ding","year":"2025"},{"key":"2026072104051440900_ocag056-B27","doi-asserted-by":"publisher","author":"Fang","year":"2024","DOI":"10.48550\/ARXIV.2405.20978"},{"key":"2026072104051440900_ocag056-B28","author":"Kim","year":"2025"},{"key":"2026072104051440900_ocag056-B29","author":"Javadi","year":"2025"},{"key":"2026072104051440900_ocag056-B30","doi-asserted-by":"crossref","first-page":"240","DOI":"10.3390\/ai6100240","article-title":"RAGMed: a RAG-based medical AI assistant for improving healthcare delivery","volume":"6","author":"Patil","year":"2025","journal-title":"AI"},{"key":"2026072104051440900_ocag056-B31","doi-asserted-by":"publisher","author":"Xiong","year":"2024","DOI":"10.18653\/v1\/2024.findings-acl.372"},{"key":"2026072104051440900_ocag056-B32","doi-asserted-by":"publisher","first-page":"187","DOI":"10.1038\/s41746-025-01519-z","article-title":"Retrieval augmented generation for 10 large language models and its generalizability in assessing medical fitness","volume":"8","author":"Ke","year":"2025","journal-title":"NPJ Digit Med"},{"key":"2026072104051440900_ocag056-B33","author":"Wu","year":"2024"},{"key":"2026072104051440900_ocag056-B34","doi-asserted-by":"publisher","first-page":"199","DOI":"10.1142\/9789819807024_0015","article-title":"Improving retrieval-augmented generation in medicine with iterative follow-up questions","volume":"30","author":"Xiong","year":"2025","journal-title":"Pac Symp Biocomput"},{"key":"2026072104051440900_ocag056-B35","doi-asserted-by":"publisher","first-page":"1233","DOI":"10.1056\/NEJMsr2214184","article-title":"Benefits, limits, and risks of GPT-4 as an AI chatbot for medicine","volume":"388","author":"Lee","year":"2023","journal-title":"N Engl J Med"},{"issue":"5","key":"2026072104051440900_ocag056-B36","doi-asserted-by":"publisher","first-page":"e2512994","DOI":"10.1001\/jamanetworkopen.2025.12994","article-title":"Dedicated AI expert system vs generative AI with large language model for clinical diagnoses","volume":"8","author":"Feldman","year":"2025","journal-title":"JAMA Netw Open"},{"issue":"1","key":"2026072104051440900_ocag056-B37","doi-asserted-by":"publisher","first-page":"AIdbp2500418","DOI":"10.1056\/AIdbp2500418","article-title":"Verifying facts in patient care documents generated by large language models using electronic health records","volume":"3","author":"Chung","year":"2025","journal-title":"NEJM AI"}],"container-title":["Journal of the American Medical Informatics Association"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/academic.oup.com\/jamia\/advance-article-pdf\/doi\/10.1093\/jamia\/ocag056\/68478266\/ocag056.pdf","content-type":"application\/pdf","content-version":"am","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/jamia\/article-pdf\/33\/8\/1436\/68478266\/ocag056.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/academic.oup.com\/jamia\/article-pdf\/33\/8\/1436\/68478266\/ocag056.pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,7,21]],"date-time":"2026-07-21T08:05:20Z","timestamp":1784621120000},"score":1,"resource":{"primary":{"URL":"https:\/\/academic.oup.com\/jamia\/article\/33\/8\/1436\/8702688"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,6,5]]},"references-count":37,"journal-issue":{"issue":"8","published-online":{"date-parts":[[2026,6,5]]},"published-print":{"date-parts":[[2026,8,1]]}},"URL":"https:\/\/doi.org\/10.1093\/jamia\/ocag056","relation":{},"ISSN":["1067-5027","1527-974X"],"issn-type":[{"value":"1067-5027","type":"print"},{"value":"1527-974X","type":"electronic"}],"subject":[],"published-other":{"date-parts":[[2026,8]]},"published":{"date-parts":[[2026,6,5]]}}}