bioRxivBioinformaticsPreprint
Task Splitting and Prompt Engineering for Cypher Query Generation in Domain-Specific Knowledge Graphs
Saber SoleymaniiD, Nathan GraveliD, Krzysztof KochutiD, Natarajan KannaniD
Abstract
The integration of large language models (LLMs) with knowledge graphs (KGs) holds significant potential for simplifying the process of querying graph databases, especially for non-technical users. KGs provide a structured representation of domain-specific data, enabling rich and precise information retrieval. However, the complexity of graph query languages, such as Cypher, presents a barrier to their effective use by non-experts. This research addresses the challenge by proposing a novel approach, Prompt2Cypher (P2C), which leverages task splitting and prompt engineering to decompose user queries into manageable subtasks, enhancing LLMs ability to generate accurate Cypher queries that align with the underlying graph database schema. We demonstrate the effectiveness of P2C in two biological KGs (protein kinase and ion-channel) that differ in size, schema and complexity. Compared to a baseline approach, our method improves query accuracy, as demonstrated by higher Precision, Recall, F1-score, and Jaccard similarity metrics. This work contributes to the ongoing efforts to bridge the gap between domain-specific knowledge graphs and user-friendly graph database query interfaces.
- research focus: benchmarking
- research focus: software / tool
- approach: deep learning
- approach: machine learning (classical)
- Citations
- 1
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- ddkg.skill: A Compositional Agent Skill for Translating Biomedical and Bioinformatics Questions into Cypher for the Data Distillery Knowledge Graph
Deanne M. Taylor, Aditya M. Lahiri, … Jonathan C. Silverstein·bioRxiv·Oct 7, 2026
- Phenomics Assistant: An Interface for LLM-based Biomedical Knowledge Graph Exploration
Shawn T. O’Neil, Kevin Schaper, … Chris Mungall·bioRxiv·Jan 31, 2024
- AI-Driven Science Communication: Leveraging LLMs and Knowledge Graphs for Seamless Knowledge Exchange
Patrick Scheibe, Jana Schor·bioRxiv·Jul 4, 2025
- iKraph: a comprehensive, high-quality biomedical knowledge graph for AI-powered, data-driven biomedical research
Yuan Zhang, Xin Sui, … Jinfeng Zhang·Nature Machine IntelligencePeer-reviewed·Mar 17, 2025
- An Expert-Curated Benchmark for Frontier and Local LLMs Querying a Biomedical Knowledge Graph
Johannes Fenoude Pancrace Medagbe, Munyoki Kilyungi, … Pjotr Prins·bioRxiv·Oct 11, 2026
- Automating Biomedical Knowledge Graph Construction For Context-Aware Scientific Inference
Yikai Zheng, Wanquan Liu, … Yixue Li·bioRxiv·Aug 21, 2026