RBDQ: A Reliable LLM-based Text-to-SQL System for Business Data Queries

Using large language models (LLMs) to convert natural language (NL) into SQL simplifies data access for users by allowing them to use everyday language.However, business departments often distrust LLM-based text-to-SQL systems due to the probabilistic nature of SQL generation, which can result in incorrect but executable SQL queries caused by model hallucinations.This leads to significant concerns regarding the accuracy and reliability of the queried data.In this paper, we present RBDQ, a novel LLM-based text-to-SQL system designed to address the unique challenges of business data queries.RBDQ innovatively introduces the Hierarchical Metrics Query Method and integrates advanced Retrieval-Augmented Generation (RAG) methods along with a self-reflection mechanism to tackle these challenges.RBDQ effectively meets the requirements of business metric queries in real-world scenarios.Currently implemented in the Quality Assurance department at ByteDance, RBDQ has significantly improved operational efficiency and query flexibility.Our experiments demonstrate the system's effectiveness, achieving an Execution Accuracy of 96.20%.

Authors

Institutions

Publication Details

Published
2025-05-08
DOI
https://doi.org/10.1145/3701716.3715257
Citations
1
Primary Topic
Semantic Web and Ontologies
Type
article
Field-Weighted Citation Impact
2.48

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

RBDQ: A Reliable LLM-based Text-to-SQL System for Business Data Queries

Dingyan Cao, Wei Wang, Y. Zhang, Fenglin Bi et al.
1 citations
Semantic Web and Ontologies
2.48
article

RBDQ: A Reliable LLM-based Text-to-SQL System for Business Data Queries

Dingyan Cao, Wei Wang, Y. Zhang, Fenglin Bi, Yang Chen, Zhi Li, Tao Hu, Fang Zhao, Zhiyu Wang
article en
1 citations

Abstract

Using large language models (LLMs) to convert natural language (NL) into SQL simplifies data access for users by allowing them to use everyday language.However, business departments often distrust LLM-based text-to-SQL systems due to the probabilistic nature of SQL generation, which can result in incorrect but executable SQL queries caused by model hallucinations.This leads to significant concerns regarding the accuracy and reliability of the queried data.In this paper, we present RBDQ, a novel LLM-based text-to-SQL system designed to address the unique challenges of business data queries.RBDQ innovatively introduces the Hierarchical Metrics Query Method and integrates advanced Retrieval-Augmented Generation (RAG) methods along with a self-reflection mechanism to tackle these challenges.RBDQ effectively meets the requirements of business metric queries in real-world scenarios.Currently implemented in the Quality Assurance department at ByteDance, RBDQ has significantly improved operational efficiency and query flexibility.Our experiments demonstrate the system's effectiveness, achieving an Execution Accuracy of 96.20%.

Fudan University (CN), East China Normal University (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 10%
Semantic Web and Ontologies
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.