RASL: Retrieval Augmented Schema Linking for Massive Database Text-to-SQL

Jeffrey Eben, Aitzaz Ahmad, Stephen Lau
7/30/2025
cs.CLcs.AIcs.LG

No confident code implementation found for this paper.

Abstract

Despite advances in large language model (LLM)-based natural language interfaces for databases, scaling to enterprise-level data catalogs remains an under-explored challenge. Prior works addressing this challenge rely on domain-specific fine-tuning - complicating deployment - and fail to leverage important semantic context contained within database metadata. To address these limitations, we introduce a component-based retrieval architecture that decomposes database schemas and metadata into discrete semantic units, each separately indexed for targeted retrieval. Our approach prioritizes effective table identification while leveraging column-level information, ensuring the total number of retrieved tables remains within a manageable context budget. Experiments demonstrate that our method maintains high recall and accuracy, with our system outperforming baselines over massive databases with varying structure and available metadata. Our solution enables practical text-to-SQL systems deployable across diverse enterprise settings without specialized fine-tuning, addressing a critical scalability gap in natural language database interfaces.

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. Any repos shown below are weak matches — 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{eben2025rasl,
  title  = {RASL: Retrieval Augmented Schema Linking for Massive Database Text-to-SQL},
  author = {Jeffrey Eben and Aitzaz Ahmad and Stephen Lau},
  year   = {2025},
  eprint = {2507.23104},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.23104v1}
}

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

Discussion