Enhancing Graph Query Generation for Medical Text by Aligning Domain Knowledge Graph with Large Language Models
IEEJ Transactions on Electrical and Electronic Engineering · 27.04.2026
DOI: 10.1002/tee.70313 ↗Kurz gefasst
Fachartikel in der Zeitschrift IEEJ Transactions on Electrical and Electronic Engineering, online erschienen am 27.04.2026. Verfasst von Zhen Xu und 3 weiteren Autor:innen. Die Arbeit nennt 38 Literaturangaben.
Abstract (Originalsprache)
Despite the growing interest in Natural Language to Cypher (NL2Cypher) for querying graph databases, driven by advances in Large Language Models (LLMs), research in this area remains limited. However, there are still challenges to be overcome, including the lack of domain‐specific knowledge constraints and the inconsistent generation of graph query language. This paper proposed a solution to these challenges by improving the LLM's ability to generate Cypher through the creation of a specialized dataset and subsequent fine‐tuning of the LLM. Our method involved three key steps: we constructed a medical NL2Cypher dataset that included both single‐hop and multi‐hop question types. Subsequently, we conducted named entity recognition on the queries and classified the recognized entities to provide contextually relevant entity information to LLM. By incorporating code‐structure graph schema details into the fine‐tuning input, we aligned the domain‐specific knowledge graph with the LLM, ensuring that the generated output adhered to the predefined Cypher structure. Finally, we utilized this prepared dataset for supervised fine‐tuning on the LLM. The experimental results showed that the accuracy of Cypher execution for single‐hop and multi‐hop questions is 95.65% and 96.69%, respectively. These outcomes were achieved with a smaller training set, indicating the effectiveness of the approach. © 2026 Institute of Electrical Engineers of Japan and Wiley Periodicals LLC.
Zitieren
APA
Xu, Z., Liao, W., Wang, L., & Liu, Y. (2026). Enhancing Graph Query Generation for Medical Text by Aligning Domain Knowledge Graph with Large Language Models. IEEJ Transactions on Electrical and Electronic Engineering. https://doi.org/10.1002/tee.70313
Vancouver
Xu Z, Liao W, Wang L, Liu Y. Enhancing Graph Query Generation for Medical Text by Aligning Domain Knowledge Graph with Large Language Models. IEEJ Transactions on Electrical and Electronic Engineering. 2026. doi:10.1002/tee.70313
BibTeX
@article{Xu2026,
author = {Xu, Zhen and Liao, Wei and Wang, Lei and Liu, Yang},
title = {Enhancing Graph Query Generation for Medical Text by Aligning Domain Knowledge Graph with Large Language Models},
journal = {IEEJ Transactions on Electrical and Electronic Engineering},
year = {2026},
doi = {10.1002/tee.70313}
}
EUVIMED