A Benchmark to Understand the Role of Knowledge Graphs on Large Language Model's Accuracy for Question Answering on Enterprise SQL Databases

Juan Sequeda, Dean Allemang, Bryon Jacob
11/13/2023
cs.AIcs.CLcs.DB

No official code found. Best implementation: Delphi-Data/delphi-semantic-layer-llm-benchmark (5 stars, MIT, last commit 2023-11-29).

Abstract

Enterprise applications of Large Language Models (LLMs) hold promise for question answering on enterprise SQL databases. However, the extent to which LLMs can accurately respond to enterprise questions in such databases remains unclear, given the absence of suitable Text-to-SQL benchmarks tailored to enterprise settings. Additionally, the potential of Knowledge Graphs (KGs) to enhance LLM-based question answering by providing business context is not well understood. This study aims to evaluate the accuracy of LLM-powered question answering systems in the context of enterprise questions and SQL databases, while also exploring the role of knowledge graphs in improving accuracy. To achieve this, we introduce a benchmark comprising an enterprise SQL schema in the insurance domain, a range of enterprise queries encompassing reporting to metrics, and a contextual layer incorporating an ontology and mappings that define a knowledge graph. Our primary finding reveals that question answering using GPT-4, with zero-shot prompts directly on SQL databases, achieves an accuracy of 16%. Notably, this accuracy increases to 54% when questions are posed over a Knowledge Graph representation of the enterprise SQL database. Therefore, investing in Knowledge Graph provides higher accuracy for LLM powered question answering systems.

View on arXivView PDF

Code Implementations(1)

MIT

The data.world LLM semantic layer benchmark (https://arxiv.org/pdf/2311.07509.pdf) applied to Delphi (https://delphihq.com)

50JavaScriptNov 29, 20232 years agoMIT

Similar Papers

Cite this paper

@article{sequeda2023benchmark,
  title  = {A Benchmark to Understand the Role of Knowledge Graphs on Large Language Model's Accuracy for Question Answering on Enterprise SQL Databases},
  author = {Juan Sequeda and Dean Allemang and Bryon Jacob},
  year   = {2023},
  eprint = {2311.07509},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.07509v1}
}

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.07509.svg)](https://codeofpaper.com/paper/2311.07509)

Discussion