journal article·2026-05-05Open access

TRAG: A Rule Retrieval-Augmented Generation Framework for Emergency Triage

Luluah Alhusain

Applied Sciences· Volume 16· Issue 9

Abstract

Accurate emergency triage is critical for patient safety and efficient resource allocation. Large language models (LLMs) have shown promise in clinical reasoning tasks; however, their predictions may be inconsistent when not grounded in structured clinical knowledge. This study proposes TRAG (Triage Retrieval-Augmented Generation), a domain-specific framework that integrates rule-based knowledge retrieval with LLM reasoning to support Emergency Severity Index (ESI) prediction. TRAG retrieves triage rules encoded as if–then logic from an ESI knowledge base and incorporates them into the model prompt to guide ESI prediction. The framework evaluated multiple LLMs under different retrieval settings (Top-5, Top-10, Top-15) and compared with zero-shot baselines on 100 curated triage cases. Performance was assessed using accuracy, precision, recall, F1-score, and Quadratic Weighted Kappa (QWK). Results show that retrieval-augmented prompting improves classification performance, particularly for lower-performing models. For example, GPT-3.5 accuracy increased from 0.45 to 0.68 and QWK from 0.67 to 0.82 under the Top-15 setting. Improvements were also observed in reducing under-triage in several configurations, while higher-performing models demonstrated more modest and configuration-dependent gains. These findings suggest that integrating structured clinical rules within a retrieval-augmented framework can enhance the consistency and reliability of LLM-based triage prediction. The proposed TRAG framework highlights the potential of combining structured clinical knowledge with generative models to support safer and more interpretable decision-making in emergency care.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Emergency and Acute Care Studies · Topic Modeling · Clinical Reasoning and Diagnostic Skills

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Information Technology Department, College of Computer and Information Sciences, King Saud University, Riyadh 11451, Saudi Arabia

Funding

King Saud University

References (26)

Show source-provided references
1. Evaluating Large Language Model Workflows in Clinical Decision Support for Triage and Referral and Diagnosis10.1038/s41746-025-01684-1 ↗
2. Factors Affecting Emergency Nurses’ Perceptions of the Triage Systems10.4081/jphr.2020.1808 ↗
3. Diagnostic Accuracy of ChatGPT for Patients’ Triage; a Systematic Review and Meta-Analysis
4. Shesser, R., Pourmand, A., and Keim, A. (2024). Chapter 6—Triage. The Emergency Department Technician Handbook, Elsevier.
5. Gilboy, N., Tanabe, T., Travers, D., and Rosenau, A.M. (2011). Emergency Severity Index (ESI): A Triage Tool for Emergency Department Care, Version 4, Implementation Handbook 2012 Edition.
6. ESI Triage Distribution in U.S. Emergency Departments10.1097/TME.0000000000000390 ↗
7. Triage: An Investigation of the Process and Potential Vulnerabilities10.1111/jan.12304 ↗
8. Comparing the Performance of Popular Large Language Models on the National Board of Medical Examiners Sample Questions
9. Mind + Machine: ChatGPT as a Basic Clinical Decisions Support Tool
10. Health System-Scale Language Models Are All-Purpose Prediction Engines10.1038/s41586-023-06160-y ↗
11. Park, Y.-J., Pillai, A., Deng, J., Guo, E., Gupta, M., Paget, M., and Naugler, C. (2024). Assessing the Research Landscape and Clinical Utility of Large Language Models: A Scoping Review. BMC Med. Inform. Decis. Mak., 24.10.1186/s12911-024-02459-6 ↗
12. The Accuracy and Potential Racial and Ethnic Biases of GPT-4 in the Diagnosis and Triage of Health Conditions: Evaluation Study10.2196/47532 ↗
13. Evaluating LLM-Based Generative AI Tools in Emergency Triage: A Comparative Study of ChatGPT Plus, Copilot Pro, and Triage Nurses10.1016/j.ajem.2024.12.024 ↗
14. Comparative Analysis of ChatGPT, Gemini and Emergency Medicine Specialist in ESI Triage Assessment10.1016/j.ajem.2024.05.001 ↗
15. A Practical Guide to the Utilization of ChatGPT in the Emergency Department: A Systematic Review of Current Applications, Future Directions, and Limitations
16. Assessing the Precision of Artificial Intelligence in ED Triage Decisions: Insights from a Study with ChatGPT10.1016/j.ajem.2024.01.037 ↗
17. Use of a Large Language Model to Assess Clinical Acuity of Adults in the Emergency Department10.1001/jamanetworkopen.2024.8895 ↗
18. Lee, S., Jung, S., Park, J.-H., Cho, H., Moon, S., and Ahn, S. (2025). Performance of ChatGPT, Gemini and DeepSeek for Non-Critical Triage Support Using Real-World Conversations in Emergency Department. BMC Emerg. Med., 25.10.1186/s12873-025-01337-2 ↗
19. Gao, Y., Xiong, Y., Gao, X., Jia, K., Pan, J., Bi, Y., Dai, Y., Sun, J., and Wang, H. (2023). Retrieval-Augmented Generation for Large Language Models: A Survey. arXiv.
20. Emergency Patient Triage Improvement through a Retrieval-Augmented Generation Enhanced Large-Scale Language Model10.1080/10903127.2024.2374400 ↗
21. ChatGPT’s Performance before and after Teaching in Mass Casualty Incident Triage10.1038/s41598-023-46986-0 ↗
22. Ghadekar, P.P., Mohite, S., More, O., Patil, P., and Mangrule, S. (2023, January 18–19). Sentence Meaning Similarity Detector Using FAISS. Proceedings of the 2023 7th International Conference on Computing, Communication, Control and Automation (ICCUBEA), Pune, India.10.1109/ICCUBEA58933.2023.10392009 ↗
23. OpenAI (2025, November 03). Text-Embedding-3-Large. Available online: https://developers.openai.com/api/docs/models/text-embedding-3-large.
24. OpenAI (2025, November 04). GPT-4o-Mini. Available online: https://platform.openai.com/docs/models/gpt-4o-mini.
25. OpenAI (2025, November 04). GPT-4. Available online: https://platform.openai.com/docs/models/gpt-4.
26. OpenAI (2025, November 04). GPT-3.5-Turbo. Available online: https://platform.openai.com/docs/models/gpt-3.5-turbo.