About | Contact Us | Register | Login
ProceedingsSeriesJournalsSearchEAI
phat 24(1):

Research Article

Enhancing Medical Question-Answering Systems with Knowledge Graph-Integrated Large Language Models: A Comparative Analysis

Download8 downloads
Cite
BibTeX Plain Text
  • @ARTICLE{10.4108/eetpht.11.11670,
        author={Jiaxu Lin and Silin Ouyang},
        title={Enhancing Medical Question-Answering Systems with Knowledge Graph-Integrated Large Language Models: A Comparative Analysis},
        journal={EAI Endorsed Transactions of Pervasive Health and Technology},
        volume={11},
        number={1},
        publisher={EAI},
        journal_a={PHAT},
        year={2026},
        month={1},
        keywords={Knowledge Graph Prompt Engineering, Medical QA, Large Language Models, SPARQL, Wikidata},
        doi={10.4108/eetpht.11.11670}
    }
    
  • Jiaxu Lin
    Silin Ouyang
    Year: 2026
    Enhancing Medical Question-Answering Systems with Knowledge Graph-Integrated Large Language Models: A Comparative Analysis
    PHAT
    EAI
    DOI: 10.4108/eetpht.11.11670
Jiaxu Lin1,*, Silin Ouyang2
  • 1: UNSW Sydney
  • 2: Guangzhou University of Software
*Contact email: 522625439@qq.com

Abstract

This study investigates the impact of integrating knowledge graph prompt engineering (KGPE) with large language models in the context of medical question answering. The Hugging Face MedQA dataset (N = 5,000) was utilised for the extraction of key medical entities via the implementation of named entity recognition, and the construction of SPARQL-based relational prompts from the knowledge base of Wikipedia to guide the reasoning process. Two models, Llama-2-7B-chat-hf and Qwen-2-7B-Instruct, are evaluated through a weighted aggregation of BLEU, ROUGE, and cosine similarity metrics. The findings demonstrate that Qwen-2-7B-Instruct attains substantial enhancements under KGPE—BLEU escalating from 0.366 to 0.531 (+0.165) and cosine similarity rising from 0.763 to 0.820 (+0.057). Conversely, Llama-2-7B-chat-hf exhibits a modest decrease, signifying divergent responsiveness to structured knowledge. These findings demonstrate that integrating structured knowledge through KGPE enhances factual accuracy and semantic coherence in medical reasoning without modifying model architecture

Keywords
Knowledge Graph Prompt Engineering, Medical QA, Large Language Models, SPARQL, Wikidata
Received
2025-05-19
Accepted
2025-12-12
Published
2026-01-28
Publisher
EAI
http://dx.doi.org/10.4108/eetpht.11.11670

Copyright © 2026 Jiaxu Lin et al., licensed to EAI. This is an open access article distributed under the terms of the CC BY-NC-SA 4.0, which permits copying, redistributing, remixing, transformation, and building upon the material in any medium so long as the original work is properly cited.

EBSCOProQuestDBLPDOAJPortico
EAI Logo

About EAI

  • Who We Are
  • Leadership
  • Research Areas
  • Partners
  • Media Center
  • Cookie Preferences

Community

  • Membership
  • Conference
  • Recognition
  • Sponsor Us

Publish with EAI

  • Publishing
  • Journals
  • Proceedings
  • Books
  • EUDL