Text-to-SQL for Enterprise Data Analytics

Albert Chen, Manas Bundele, Gaurav Ahlawat, Patrick Stetz, Zhitao Wang +13 more
7/18/2025
cs.CLcs.AIcs.DB

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

The introduction of large language models has brought rapid progress on Text-to-SQL benchmarks, but it is not yet easy to build a working enterprise solution. In this paper, we present insights from building an internal chatbot that enables LinkedIn's product managers, engineers, and operations teams to self-serve data insights from a large, dynamic data lake. Our approach features three components. First, we construct a knowledge graph that captures up-to-date semantics by indexing database metadata, historical query logs, wikis, and code. We apply clustering to identify relevant tables for each team or product area. Second, we build a Text-to-SQL agent that retrieves and ranks context from the knowledge graph, writes a query, and automatically corrects hallucinations and syntax errors. Third, we build an interactive chatbot that supports various user intents, from data discovery to query writing to debugging, and displays responses in rich UI elements to encourage follow-up chats. Our chatbot has over 300 weekly users. Expert review shows that 53% of its responses are correct or close to correct on an internal benchmark set. Through ablation studies, we identify the most important knowledge graph and modeling components, offering a practical path for developing enterprise Text-to-SQL solutions.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2025texttosql,
  title  = {Text-to-SQL for Enterprise Data Analytics},
  author = {Albert Chen and Manas Bundele and Gaurav Ahlawat and Patrick Stetz and Zhitao Wang and Qiang Fei and Donghoon Jung and Audrey Chu and Bharadwaj Jayaraman and Ayushi Panth and Yatin Arora and Sourav Jain and Renjith Varma and Alexey Ilin and Iuliia Melnychuk and Chelsea Chueh and Joyan Sil and Xiaofeng Wang},
  year   = {2025},
  eprint = {2507.14372},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.14372v1}
}

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

Discussion