Answers are grounded in this paper and cite their sources.
Study improves Cypher generation accuracy in medical domains, suggesting better query responses.
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.
No takes yet. Share an insight, caveat, or question.
Xu et al. (2026) studied this question.
Synapse has enriched 10 related papers. Consider them for comparative context: