Comparison of Large Language Model-Based Systems and Prompt Engineering for Internal Medicine Clinical Pharmacy Cases
Abstract
BACKGROUND: Large language models (LLMs) are an application of artificial intelligence and generate responses to user inquiries that vary in accuracy and completeness. Methods of improving LLM response quality are poorly evaluated in the context of clinical pharmacy practice.
METHODS: This was a single-center, observational, prospective study conducted through internal medicine admitting services. A clinical pharmacy specialist developed 50 case questions reflective of usual practice, which were processed through LLM-based systems in a two-by-two factorial design. The first variable was the selection of a general-purpose LLM, ChatGPT 4o (GPT, OpenAI Inc., San Francisco, California, USA), or a health care provider domain-specific LLM with retrieval-augmented generation (RAG) features, OpenEvidence (OpenEvidence, Miami, Florida, USA). The second variable was the inclusion of a prompt engineering template with specific instructions and parameters to refine the system output. Responses were evaluated by two pharmacists and reconciled with a third pharmacist. The primary endpoint was a composite of response accuracy and completeness. Secondary outcomes included accuracy, completeness, reference validity, reproducibility, and extraneous information.
RESULTS: Logistic regression modeling demonstrated no statistically significant interactions between the two LLM-based systems and use of a prompt engineering template for accuracy and completeness. Predicted probabilities for meeting…
How strong is the evidence?
Evidence Hub reads this as a cohort study, done in people. Its evidence level is 3 of 5 (Moderate · trial / cohort / secondary analysis). Trials without a large randomized design, cohorts and secondary analyses give moderate evidence.
Read the paper
Related studies
- Animal models of schizophrenia
- Retrieval Augmented Visual Question Answering with Outside Knowledge
- Fine-grained Late-interaction Multi-modal Retrieval for Retrieval Augmented Visual Question Answering
- Understand What LLM Needs: Dual Preference Alignment for Retrieval-Augmented Generation
- Retrieval-Augmented Embodied Agents
- Retrieving, Rethinking and Revising: The Chain-of-Verification Can Improve Retrieval Augmented Generation
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.