Design and Implementation of a Medical Question Answering System Based on Retrieval-Augmented Generation

With the rapid growth of medical information demand, providing accurate and reliable medical question-answering services has become a pressing challenge. Traditional generative Q&A models are prone to hallucinations, frequently generating inaccurate medical advice, while simple retrieval systems lack natural fluency. To address this, we propose a Retrieval-Augmented Generation (RAG)-based medical QA system with a five-layer architecture. The data processing layer cleans and formats data from the MedChatZH dataset. The knowledge storage layer encodes documents into 768-dimensional vectors using the BGE-small-zh-v1.5 embedding model and builds an index. The retrieval layer selects relevant documents via cosine similarity. The answer generation layer employs the ChatGLM3-6B language model for context-aware responses. Finally, a user-friendly web interface is implemented using Gradio, offering high-quality medical Q&A services.

Authors

Institutions

Publication Details

Journal
International Journal of Biology and Life Sciences
Published
2025-08-28
DOI
https://doi.org/10.54097/4xqm5c93
Citations
1
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
2.48
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Design and Implementation of a Medical Question Answering System Based on Retrieval-Augmented Generation

Dongrui Wu, Jian‐Yun Nie, Yuhao Tang, Yanan Tu et al.
1 citations
International Journal of Biology and Life Sciences
Topic Modeling
2.48
article

Design and Implementation of a Medical Question Answering System Based on Retrieval-Augmented Generation

Dongrui Wu, Jian‐Yun Nie, Yuhao Tang, Yanan Tu, Xiaochun Liu, Geng Zhao
article en
1 citations

Abstract

With the rapid growth of medical information demand, providing accurate and reliable medical question-answering services has become a pressing challenge. Traditional generative Q&A models are prone to hallucinations, frequently generating inaccurate medical advice, while simple retrieval systems lack natural fluency. To address this, we propose a Retrieval-Augmented Generation (RAG)-based medical QA system with a five-layer architecture. The data processing layer cleans and formats data from the MedChatZH dataset. The knowledge storage layer encodes documents into 768-dimensional vectors using the BGE-small-zh-v1.5 embedding model and builds an index. The retrieval layer selects relevant documents via cosine similarity. The answer generation layer employs the ChatGLM3-6B language model for context-aware responses. Finally, a user-friendly web interface is implemented using Gradio, offering high-quality medical Q&A services.

International Journal of Biology and Life SciencesVol. 11(3)
North China University of Technology (CN)
Openalex Percentile: Top 9%
Topic Modeling
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Design and Implementation of a Medical Question Answering System Based on Retrieval-Augmented Generation — Dongrui Wu, Jian‐Yun Nie, et al. · International Journal of Biology and Life Sciences (2025) | TGRS Research Map | TGRS