End-to-end Text-to-SQL Generation within an Analytics Insight Engine

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Maamari, Karime, Mhedhbi, Amine
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929388860211200
author Maamari, Karime
Mhedhbi, Amine
author_facet Maamari, Karime
Mhedhbi, Amine
contents Recent advancements in Text-to-SQL have pushed database management systems towards greater democratization of data access. Today's language models are at the core of these advancements. They enable impressive Text-to-SQL generation as experienced in the development of Distyl AI's Analytics Insight Engine. Its early deployment with enterprise customers has highlighted three core challenges. First, data analysts expect support with authoring SQL queries of very high complexity. Second, requests are ad-hoc and, as such, require low latency. Finally, generation requires an understanding of domain-specific terminology and practices. The design and implementation of our Text-to-SQL generation pipeline, powered by large language models, tackles these challenges. The core tenants of our approach rely on external knowledge that we extract in a pre-processing phase, on retrieving the appropriate external knowledge at query generation time, and on decomposing SQL query generation following a hierarchical CTE-based structure. Finally, an adaptation framework leverages feedback to update the external knowledge, in turn improving query generation over time. We give an overview of our end-to-end approach and highlight the operators generating SQL during inference.
format Preprint
id arxiv_https___arxiv_org_abs_2406_12104
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle End-to-end Text-to-SQL Generation within an Analytics Insight Engine
Maamari, Karime
Mhedhbi, Amine
Computation and Language
Artificial Intelligence
Databases
Machine Learning
Recent advancements in Text-to-SQL have pushed database management systems towards greater democratization of data access. Today's language models are at the core of these advancements. They enable impressive Text-to-SQL generation as experienced in the development of Distyl AI's Analytics Insight Engine. Its early deployment with enterprise customers has highlighted three core challenges. First, data analysts expect support with authoring SQL queries of very high complexity. Second, requests are ad-hoc and, as such, require low latency. Finally, generation requires an understanding of domain-specific terminology and practices. The design and implementation of our Text-to-SQL generation pipeline, powered by large language models, tackles these challenges. The core tenants of our approach rely on external knowledge that we extract in a pre-processing phase, on retrieving the appropriate external knowledge at query generation time, and on decomposing SQL query generation following a hierarchical CTE-based structure. Finally, an adaptation framework leverages feedback to update the external knowledge, in turn improving query generation over time. We give an overview of our end-to-end approach and highlight the operators generating SQL during inference.
title End-to-end Text-to-SQL Generation within an Analytics Insight Engine
topic Computation and Language
Artificial Intelligence
Databases
Machine Learning
url https://arxiv.org/abs/2406.12104