Prompt Tuning for Natural Language to SQL with Embedding Fine-Tuning and RAG

Jisoo Jang, Tien-Cuong Bui, Yunjun Choi, Wen-Syan Li
11/11/2025
cs.CLcs.LG

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

Abstract

This paper introduces an Error Correction through Prompt Tuning for NL-to-SQL, leveraging the latest advancements in generative pre-training-based LLMs and RAG. Our work addresses the crucial need for efficient and accurate translation of natural language queries into SQL expressions in various settings with the growing use of natural language interfaces. We explore the evolution of NLIDBs from early rule-based systems to advanced neural network-driven approaches. Drawing inspiration from the medical diagnostic process, we propose a novel framework integrating an error correction mechanism that diagnoses error types, identifies their causes, provides fixing instructions, and applies these corrections to SQL queries. This approach is further enriched by embedding fine-tuning and RAG, which harnesses external knowledge bases for improved accuracy and transparency. Through comprehensive experiments, we demonstrate that our framework achieves a significant 12 percent accuracy improvement over existing baselines, highlighting its potential to revolutionize data access and handling in contemporary data-driven environments.

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. 9 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{jang2025prompt,
  title  = {Prompt Tuning for Natural Language to SQL with Embedding Fine-Tuning and RAG},
  author = {Jisoo Jang and Tien-Cuong Bui and Yunjun Choi and Wen-Syan Li},
  year   = {2025},
  eprint = {2511.08245},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.08245v1}
}

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

Discussion