MKRAG: Medical Knowledge Retrieval Augmented Generation for Medical Question Answering

Yucheng Shi, Shaochen Xu, Tianze Yang, Zhengliang Liu, Tianming Liu +3 more
9/27/2023
cs.CLcs.AI

No official code found. Best implementation: sycny/MKRAG (7 stars, last commit 2025-01-11).

Abstract

Large Language Models (LLMs), although powerful in general domains, often perform poorly on domain-specific tasks such as medical question answering (QA). In addition, LLMs tend to function as "black-boxes", making it challenging to modify their behavior. To address the problem, our work employs a transparent process of retrieval augmented generation (RAG), aiming to improve LLM responses without the need for fine-tuning or retraining. Specifically, we propose a comprehensive retrieval strategy to extract medical facts from an external knowledge base, and then inject them into the LLM's query prompt. Focusing on medical QA, we evaluate the impact of different retrieval models and the number of facts on LLM performance using the MedQA-SMILE dataset. Notably, our retrieval-augmented Vicuna-7B model exhibited an accuracy improvement from 44.46% to 48.54%. This work underscores the potential of RAG to enhance LLM performance, offering a practical approach to mitigate the challenges posed by black-box LLMs.

View on arXivView PDF

Code Implementations(1)

sycny/MKRAGCommunity65%

[AMIA2024] MKRAG: Medical Knowledge Retrieval Augmented Generation for Medical Question Answering

70PythonDec 30, 20241 years ago

Similar Papers

Cite this paper

@article{shi2023mkrag,
  title  = {MKRAG: Medical Knowledge Retrieval Augmented Generation for Medical Question Answering},
  author = {Yucheng Shi and Shaochen Xu and Tianze Yang and Zhengliang Liu and Tianming Liu and Quanzheng Li and Xiang Li and Ninghao Liu},
  year   = {2023},
  eprint = {2309.16035},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2309.16035v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.16035.svg)](https://codeofpaper.com/paper/2309.16035)

Discussion