Dual retrieving and ranking medical large language model with retrieval augmented generation
Recent advancements in large language models (LLMs) have significantly enhanced text generation across various sectors; however, their medical application faces critical challenges regarding both accuracy and real-time responsiveness. To address these dual challenges, we propose a novel two-step retrieval and ranking retrieval-augmented generation (RAG) framework that synergistically combines embedding search with Elasticsearch technology. Built upon a dynamically updated medical knowledge base incorporating expert-reviewed documents from leading healthcare institutions, our hybrid architecture employs ColBERTv2 for context-aware result ranking while maintaining computational efficiency. Experimental results show a 10% improvement in accuracy for complex medical queries compared to standalone LLM and single-search RAG variants, while acknowledging that latency challenges remain in emergency situations requiring sub-second responses in an experimental setting, which can be achieved in real-time using more powerful hardware in real-world deployments. This work establishes a new paradigm for reliable medical AI assistants that successfully balances accuracy and practical deployment considerations.
Authors
- Jiexin Chen
- Rongsheng Wang (ORCID: https://orcid.org/0000-0003-2390-5999)
- Yijun Lin (ORCID: https://orcid.org/0000-0002-0815-9636)
- Tieyong Zeng (ORCID: https://orcid.org/0000-0002-0688-202X)
- Tao Tan (ORCID: https://orcid.org/0009-0003-7977-9749)
- Zhiyi Chen
- Qimin Yang (ORCID: https://orcid.org/0000-0002-2894-9395)
- H. T. Su (ORCID: https://orcid.org/0000-0001-7903-3179)
- Huan Zuo
- Huimei Zhou
- R. Su (ORCID: https://orcid.org/0009-0004-9331-0311)
Institutions
- Changsha Central Hospital (CN)
- Macao Polytechnic University (MO)
- University of South China (CN)
Publication Details
- Journal
- Scientific Reports
- Published
- 2025-05-24
- DOI
- https://doi.org/10.1038/s41598-025-00724-w
- Citations
- 11
- Primary Topic
- Artificial Intelligence in Healthcare and Education
- Type
- article
- Field-Weighted Citation Impact
- 7.20