R³-NL2GQL: A Model Coordination and Knowledge Graph Alignment Approach for NL2GQL

Yuhang Zhou, Yu He, Siyu Tian, Yuchen Ni, Zhangyue Yin +6 more
11/3/2023
cs.CLcs.DB

No official code found. Best implementation: zhiqix/NL2GQL (103 stars, last commit 2023-12-14).

Abstract

While current tasks of converting natural language to SQL (NL2SQL) using Foundation Models have shown impressive achievements, adapting these approaches for converting natural language to Graph Query Language (NL2GQL) encounters hurdles due to the distinct nature of GQL compared to SQL, alongside the diverse forms of GQL. Moving away from traditional rule-based and slot-filling methodologies, we introduce a novel approach, $R^3$-NL2GQL, integrating both small and large Foundation Models for ranking, rewriting, and refining tasks. This method leverages the interpretative strengths of smaller models for initial ranking and rewriting stages, while capitalizing on the superior generalization and query generation prowess of larger models for the final transformation of natural language queries into GQL formats. Addressing the scarcity of datasets in this emerging field, we have developed a bilingual dataset, sourced from graph database manuals and selected open-source Knowledge Graphs (KGs). Our evaluation of this methodology on this dataset demonstrates its promising efficacy and robustness.

View on arXivView PDF

Code Implementations(1)

zhiqix/NL2GQLCommunity100%

The LLM of NL2GQL with NebulaGraph or Neo4j

10310PythonJun 30, 20232 years ago

Similar Papers

Cite this paper

@article{zhou2023rnlgql,
  title  = {R³-NL2GQL: A Model Coordination and Knowledge Graph Alignment Approach for NL2GQL},
  author = {Yuhang Zhou and Yu He and Siyu Tian and Yuchen Ni and Zhangyue Yin and Xiang Liu and Chuanjun Ji and Sen Liu and Xipeng Qiu and Guangnan Ye and Hongfeng Chai},
  year   = {2023},
  eprint = {2311.01862},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.01862v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.01862.svg)](https://codeofpaper.com/paper/2311.01862)

Discussion