The widespread use of the internet and social media has made it easier for patients to access medical information1,2. Cancer-care information is often complex and extensive, making it particularly difficult for patients to identify sources that are accurate, relevant, and based on scientific evidence3. While online resources can support patient understanding, they also contain substantial amounts of incorrect medical information3, which can negatively affect patients’ decisions regarding their care4. Because cancer-related misinformation can affect patient outcomes5, there is an increasing need for artificial intelligence (AI) systems that can help individual users search, summarize, and interpret medical information6.
Large language models (LLMs) enable users to access information through natural language conversation7; however, the generation of misinformation (i.e., hallucinations) remains a serious concern in the medical field8,9,10,11. One key source of misinformation is the quality and accuracy of the training data used to develop the chatbot. In addition, the static nature of model training means that knowledge can become outdated over time, limiting the ability of LLMs to provide current and contextually appropriate information12,13. These limitations highlight the importance of effective knowledge-management strategies to ensure that chatbot responses remain accurate, relevant, and up to date. In particular, systems that can readily access and reference current evidence-based resources, such as clinical practice guidelines, are desirable in medical settings, where recommendations and standards of care continually evolve. To address this challenge, retrieval-augmented generation (RAG), which generates responses by incorporating information from external knowledge sources, has received increasing attention10,13,14,15,16,17.
Although RAG has been increasingly applied to medical chatbots, limited attention has been paid to how clinical practice guidelines should be systematically incorporated as reference information sources18. Many clinical practice guidelines are publicly available on the web; however, it remains unclear whether their existing web structure can be directly serve as a retrieval framework for RAG systems18. In addition, practical methods for constructing reference information without manual knowledge-base development have not been well established.
In this study, we aimed to establish design principles for guideline-referencing AI systems in the medical field by developing and evaluating a guideline-based RAG chatbot that uses publicly available, web-based cancer clinical practice guidelines, thereby enabling simple and timely access to guideline-based information. As a proof of concept, we evaluated the technical feasibility of guideline retrieval, response generation, and response restriction using the existing web structure of publicly available clinical practice guidelines, with the goal of proposing a reproducible development protocol for guideline-referenced RAG systems.