Skip to main content
Cornell University
We gratefully acknowledge support from the Simons Foundation, member institutions, and all contributors. Donate
arxiv logo > cs > arXiv:2411.08449
arXiv logo
Cornell University Logo

quick links

  • Login
  • Help Pages
  • About

Computer Science > Emerging Technologies

arXiv:2411.08449 (cs)
[Submitted on 13 Nov 2024 (v1), last revised 18 Nov 2024 (this version, v2)]

Title:Towards Evaluating Large Language Models for Graph Query Generation

Authors:Siraj Munir, Alessandro Aldini
View a PDF of the paper titled Towards Evaluating Large Language Models for Graph Query Generation, by Siraj Munir and 1 other authors
View PDF
Abstract:Large Language Models (LLMs) are revolutionizing the landscape of Generative Artificial Intelligence (GenAI), with innovative LLM-backed solutions emerging rapidly. However, when applied to database technologies, specifically query generation for graph databases and Knowledge Graphs (KGs), LLMs still face significant challenges. While research on LLM-driven query generation for Structured Query Language (SQL) exists, similar systems for graph databases remain underdeveloped. This paper presents a comparative study addressing the challenge of generating Cypher queries a powerful language for interacting with graph databases using open-access LLMs. We rigorously evaluate several LLM agents (OpenAI ChatGPT 4o, Claude Sonnet 3.5, Google Gemini Pro 1.5, and a locally deployed Llama 3.1 8B) using a designed few-shot learning prompt and Retrieval Augmented Generation (RAG) backed by Chain-of-Thoughts (CoT) reasoning. Our empirical analysis of query generation accuracy reveals that Claude Sonnet 3.5 outperforms its counterparts in this specific domain. Further, we highlight promising future research directions to address the identified limitations and advance LLM-driven query generation for graph databases.
Comments: Paper accepted and will be presented at CSCI2024 in December 2024, Later will be published at Springer LNCS
Subjects: Emerging Technologies (cs.ET); Computation and Language (cs.CL)
Cite as: arXiv:2411.08449 [cs.ET]
  (or arXiv:2411.08449v2 [cs.ET] for this version)
  https://doi.org/10.48550/arXiv.2411.08449
arXiv-issued DOI via DataCite

Submission history

From: Siraj Munir Mr [view email]
[v1] Wed, 13 Nov 2024 09:11:56 UTC (622 KB)
[v2] Mon, 18 Nov 2024 09:57:04 UTC (421 KB)
Full-text links:

Access Paper:

    View a PDF of the paper titled Towards Evaluating Large Language Models for Graph Query Generation, by Siraj Munir and 1 other authors
  • View PDF
  • Other Formats
license icon view license
Current browse context:
cs.ET
< prev   |   next >
new | recent | 2024-11
Change to browse by:
cs
cs.CL

References & Citations

  • NASA ADS
  • Google Scholar
  • Semantic Scholar
export BibTeX citation Loading...

BibTeX formatted citation

×
Data provided by:

Bookmark

BibSonomy logo Reddit logo

Bibliographic and Citation Tools

Bibliographic Explorer (What is the Explorer?)
Connected Papers (What is Connected Papers?)
Litmaps (What is Litmaps?)
scite Smart Citations (What are Smart Citations?)

Code, Data and Media Associated with this Article

alphaXiv (What is alphaXiv?)
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub (What is DagsHub?)
Gotit.pub (What is GotitPub?)
Hugging Face (What is Huggingface?)
Papers with Code (What is Papers with Code?)
ScienceCast (What is ScienceCast?)

Demos

Replicate (What is Replicate?)
Hugging Face Spaces (What is Spaces?)
TXYZ.AI (What is TXYZ.AI?)

Recommenders and Search Tools

Influence Flower (What are Influence Flowers?)
CORE Recommender (What is CORE?)
  • Author
  • Venue
  • Institution
  • Topic

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)
  • About
  • Help
  • Click here to contact arXiv Contact
  • Click here to subscribe Subscribe
  • Copyright
  • Privacy Policy
  • Web Accessibility Assistance
  • arXiv Operational Status
    Get status notifications via email or slack