paper-with-me

Papers

Towards Evaluating Large Language Models for Graph Query Generation

2024-11-13 · Siraj Munir, Alessandro Aldini

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.

📄 PDF Abstract BibTeX arXiv:2411.08449

Code (0)

등록된 구현이 없습니다.

Tasks

Few-Shot LearningKnowledge GraphsRAGRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

mmRAG: A Modular Benchmark for Retrieval-Augmented Generation over Text, Tables, and Knowledge Graphs

2025-05-16 · Chuan Xu, Qiaosheng Chen, Yutong Feng, Gong Cheng

Retrieval-Augmented Generation (RAG) has emerged as a powerful paradigm for enhancing the capabilities of large language models. However, existing RAG evaluation predominantly focuses on text retrieval and relies on opaq…

Information RetrievalKnowledge GraphsQuestion AnsweringRAG+3

Spider4SPARQL: A Complex Benchmark for Evaluating Knowledge Graph Question Answering Systems

2023-09-28 · Catherine Kosten, Philippe Cudré-Mauroux, Kurt Stockinger

With the recent spike in the number and availability of Large Language Models (LLMs), it has become increasingly important to provide large and realistic benchmarks for evaluating Knowledge Graph Question Answering (KGQA…

Graph Question AnsweringKnowledge GraphsQuestion AnsweringQuestion Generation+1

Graph Query Generation with Constraint-guided Large Language Agents

2026-04-09 · Mengying Wang, Nicolaas Jedema, Rahul Pandey, RaviKiran Krishnan 외 arxiv

Knowledge Graph Question Answering (KGQA) has advanced through structured query generation, yet most efforts target RDF/SPARQL, leaving Cypher and property graphs underexplored, despite increasing demand for unified KGQA…

Graph Question Answering

A Reproducibility and Generalizability Study of Large Language Models for Query Generation

2024-11-22 · Moritz Staudinger, Wojciech Kusa, Florina Piroi, Aldo Lipani 외

Systematic literature reviews (SLRs) are a cornerstone of academic research, yet they are often labour-intensive and time-consuming due to the detailed literature curation process. The advent of generative AI and large l…

Information RetrievalRetrieval

LLM-based SPARQL Query Generation from Natural Language over Federated Knowledge Graphs

2024-10-08 · Vincent Emonet, Jerven Bolleman, Severine Duvaud, Tarcisio Mendes de Farias 외

We introduce a Retrieval-Augmented Generation (RAG) system for translating user questions into accurate federated SPARQL queries over bioinformatics knowledge graphs (KGs) leveraging Large Language Models (LLMs). To enha…

Knowledge GraphsRAGRetrievalRetrieval-augmented Generation+1