Real-Time Text-to-Cypher Query Generation with Large Language Models for Graph Databases
Open Access
- 22 November 2024
- journal article
- research article
- Published by MDPI AG in Future Internet
- Vol. 16 (12) , 438
Abstract
Based on their ability to efficiently and intuitively represent real-world relationships and structures, graph databases are gaining increasing popularity. In this context, this paper proposes an innovative integration of a Large Language Model into NoSQL databases and Knowledge Graphs to bridge the gap in field of Text-to-Cypher queries, focusing on Neo4j. Using the Design Science Research Methodology, we developed a Natural Language Interface which can receive user queries in real time, convert them into Cypher Query Language (CQL), and perform targeted queries, allowing users to choose from different graph databases. In addition, the user interaction is expanded by an additional chat function based on the chat history, as well as an error correction module, which elevates the precision of the generated Cypher statements. Our findings show that the chatbot is able to accurately and efficiently solve the tasks of database selection, chat history referencing, and CQL query generation. The developed system therefore makes an important contribution to enhanced interaction with graph databases, and provides a basis for the integration of further and multiple database technologies and LLMs, due to its modular pipeline architecture.Keywords
Funding Information
- Bavarian Ministry of Economic Affairs, Regional Development and Energy
This publication has 44 references indexed in Scilit:
- Robust NL-to-Cypher Translation for KBQA: Harnessing Large Language Model with Chain of Prompts2023
- Large language models in medicineNature Medicine, 2023
- SGPT: A Generative Approach for SPARQL Query Generation From Natural Language QuestionsIEEE Access, 2022
- Question Answering Over Knowledge Graphs: A Case Study in TourismIEEE Access, 2022
- ER-SQL: Learning enhanced representation for Text-to-SQL using table contentsNeurocomputing, 2021
- LC-QuAD 2.0: A Large Dataset for Complex Question Answering over Wikidata and DBpedia2019
- Persisting big-data: The NoSQL landscapeInformation Systems, 2017
- A repository for scalable model managementSoftware and Systems Modeling, 2013
- Design and natural science research on information technologyDecision Support Systems, 1995
- Visualizing network dataIEEE Transactions on Visualization and Computer Graphics, 1995