Evidence Hub

Open-source modular AI coupled with agentic AI for comprehensive breast cancer note generation and guideline-directed treatment comparison

Ahmed Sandhu, Elizabeth Jaewon Kim, D. Portillo, B. Powers, Ronald Rodriguez

Journal of Clinical Oncology, 2025

3 citations

Abstract

e13685

Background:

Generative Artificial Intelligence (GenAI) has demonstrated promise as a clinical decision support tool. Previous studies utilized closed-source large language models (LLMs) such as GPT-4o (via the chatbot ChatGPT) to evaluate GenAI's role in healthcare. However, these LLMs may change, causing challenges with reliability and reproducibility. Hallucinations are especially concerning in healthcare, so methods such as grounding and retrieval augmented generation (RAG) are important tools that may reduce or eliminate hallucinations.

Methods:

The goal of this study was to enhance GenAI with agentic AI and vector-based RAG, using only open-source tools and LLMs to produce reliable breast cancer summaries and treatment evaluations. A container with Neo4j vector database, LangChain, Docling, and Jupyter was created to review HL7 patient charts containing mCODE data. Ollama was used to pull the LLMs llama3.2, gemma2:2b, qwen2.5, and phi3:mini. Synthetic Breast Cancer Dataset collected from

The mCODE Project

was collected, and a custom HL7-mCODE module was made to make patient data LLM-ingestible. The workflow was as follows: a modular (i.e., swappable) LLM with RAG would iterate over patient notes to extract all information related to cancer in their chart. A subsequent LLM (i.e., agentic AI) would compare the first AI's extraction with an mCODE summary to evaluate if there were any errors, remove them, and return a corrected cancer history. After this comparison…

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free