Medical AI prompts need clinical testing
In-context learning remains insufficiently validated for diagnosis, prognosis, and treatment recommendations, according to a narrative review published in Cell Reports Medicine.
The approach uses one or more examples in a prompt to show a pretrained artificial intelligence model how to perform a task and format its response. The model adapts to the task without retraining or changing its parameters.
“The safety and clinical utility of these approaches therefore remain largely unproven,” the authors wrote. They noted that in-context learning may currently be best suited for lower-risk tasks such as documentation, summarization, and clinical coding.
How example-based prompting adapts models
The literature search covered PubMed, Google Scholar, arXiv, and major machine learning conference proceedings from January 2023 through June 2026. The review also identified studies through citation tracking and included preprints where appropriate. It generally excluded studies that used instructions or retrieved guidelines alone because its definition of in-context learning required examples that demonstrate the task.
The authors noted that providing a few examples can reduce the need for labeled data and computing resources for task-specific training. For example, a hospital could prompt a model with sample summaries that follow its documentation format. Clinicians could also revise examples when guidelines change, allowing them to adapt the model’s responses without retraining it.
What the studies found
The review covered applications in medical question answering, clinical data extraction and classification, documentation, and imaging. In one cited study, researchers prompted Gemini 1.5 Pro with a few examples to detect diabetic retinopathy in fundus photographs. The model performed comparably to RETFound, a fine-tuned foundation model.
In another study, the MedICL framework retrieved similar cases from electronic health records and used them as examples to classify acute kidney injury stage. It achieved an F1 score of 0.77 and outperformed a random forest model, the best conventional method in that comparison.
The authors described emerging approaches that use examples drawn from images, laboratory results, and clinical records. Some systems can also automatically retrieve examples relevant to a new query. Most evidence for these approaches came from technical or preclinical evaluations.
Why performance varies
Example order, phrasing, and even irrelevant additions to a prompt can change model outputs, according to the authors. On a multimodal medical benchmark, providing examples yielded modest, inconsistent gains, and models tended to favor the last example in the prompt. The models also struggled with numerical reasoning and with inputs underrepresented in pretraining, including three-dimensional magnetic resonance imaging and histopathology.
Most evidence came from retrospective studies and benchmark tests, with limited prospective or external clinical validation. Many studies omitted details about how researchers constructed prompts or selected examples, making the results difficult to reproduce. Longer prompts can increase processing time and memory requirements.
What clinical validation would require
The authors proposed a five-stage framework that begins with assessing the clinical task and its risk. They recommended building prompts that combine task examples, relevant guidelines or institutional policies, deidentified patient details, and instructions for handling uncertainty. When prompts include historical cases, privacy risks extend to both the patient being evaluated and the patients whose information appears in the examples.
The authors called for prospective evaluations in clinical settings that measure accuracy, omission rates, clinician trust, workflow effects, and patient safety. They recommended assessing performance across demographic groups, languages, and clinical populations and testing whether example selection or prompt design introduces bias.
For moderate- and higher-risk uses, the authors recommended human oversight and predefined criteria for escalating cases for review. They also called for monitoring performance after deployment, documenting changes to prompts, and revalidating systems after material changes to the examples, other prompt content, or the underlying model.
As the approach evolves, the authors wrote, “its flexibility must be matched by governance and oversight that continue throughout its life cycle.”
The authors declared no competing interests.
AACE Endocrine AI is published by Conexiant under a license arrangement with the American Association of Clinical Endocrinology, Inc. (AACE®). The ideas and opinions expressed in AACE Endocrine AI do not necessarily reflect those of Conexiant or AACE. For more information, see Policies.