Multi-turn Natural Language to Graph Query Language Translation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Liang, Yuanyuan, Pan, Lei, Xie, Tingyu, Lan, Yunshi, Qian, Weining
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908477148889088
author Liang, Yuanyuan
Pan, Lei
Xie, Tingyu
Lan, Yunshi
Qian, Weining
author_facet Liang, Yuanyuan
Pan, Lei
Xie, Tingyu
Lan, Yunshi
Qian, Weining
contents In recent years, research on transforming natural language into graph query language (NL2GQL) has been increasing. Most existing methods focus on single-turn transformation from NL to GQL. In practical applications, user interactions with graph databases are typically multi-turn, dynamic, and context-dependent. While single-turn methods can handle straightforward queries, more complex scenarios often require users to iteratively adjust their queries, investigate the connections between entities, or request additional details across multiple dialogue turns. Research focused on single-turn conversion fails to effectively address multi-turn dialogues and complex context dependencies. Additionally, the scarcity of high-quality multi-turn NL2GQL datasets further hinders the progress of this field. To address this challenge, we propose an automated method for constructing multi-turn NL2GQL datasets based on Large Language Models (LLMs) , and apply this method to develop the MTGQL dataset, which is constructed from a financial market graph database and will be publicly released for future research. Moreover, we propose three types of baseline methods to assess the effectiveness of multi-turn NL2GQL translation, thereby laying a solid foundation for future research.
format Preprint
id arxiv_https___arxiv_org_abs_2508_01871
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Multi-turn Natural Language to Graph Query Language Translation
Liang, Yuanyuan
Pan, Lei
Xie, Tingyu
Lan, Yunshi
Qian, Weining
Artificial Intelligence
Databases
In recent years, research on transforming natural language into graph query language (NL2GQL) has been increasing. Most existing methods focus on single-turn transformation from NL to GQL. In practical applications, user interactions with graph databases are typically multi-turn, dynamic, and context-dependent. While single-turn methods can handle straightforward queries, more complex scenarios often require users to iteratively adjust their queries, investigate the connections between entities, or request additional details across multiple dialogue turns. Research focused on single-turn conversion fails to effectively address multi-turn dialogues and complex context dependencies. Additionally, the scarcity of high-quality multi-turn NL2GQL datasets further hinders the progress of this field. To address this challenge, we propose an automated method for constructing multi-turn NL2GQL datasets based on Large Language Models (LLMs) , and apply this method to develop the MTGQL dataset, which is constructed from a financial market graph database and will be publicly released for future research. Moreover, we propose three types of baseline methods to assess the effectiveness of multi-turn NL2GQL translation, thereby laying a solid foundation for future research.
title Multi-turn Natural Language to Graph Query Language Translation
topic Artificial Intelligence
Databases
url https://arxiv.org/abs/2508.01871