paper-with-me

홈 › Papers

End-to-End Text-to-SQL with Dataset Selection: Leveraging LLMs for Adaptive Query Generation

2025-08-08 · Anurag Tripathi, Vaibhav Patle, Abhinav Jain, Ayush Pundir, Sairam Menon, Ajeet Kumar Singh, Dorien Herremans arxiv

Text-to-SQL bridges the gap between natural language and structured database language, thus allowing non-technical users to easily query databases. Traditional approaches model text-to-SQL as a direct translation task, where a given Natural Language Query (NLQ) is mapped to an SQL command. Recent advances in large language models (LLMs) have significantly improved translation accuracy, however, these methods all require that the target database is pre-specified. This becomes problematic in scenarios with multiple extensive databases, where identifying the correct database becomes a crucial yet overlooked step. In this paper, we propose a three-stage end-to-end text-to-SQL framework to identify the user's intended database before generating SQL queries. Our approach leverages LLMs and prompt engineering to extract implicit information from natural language queries (NLQs) in the form of a ruleset. We then train a large db\_id prediction model, which includes a RoBERTa-based finetuned encoder, to predict the correct Database identifier (db\_id) based on both the NLQ and the LLM-generated rules. Finally, we refine the generated SQL by using critic agents to correct errors. Experimental results demonstrate that our framework outperforms the current state-of-the-art models in both database intent prediction and SQL generation accuracy.

📄 PDF Abstract BibTeX arXiv:2508.06387

Code (0)

등록된 구현이 없습니다.

Tasks

Natural Language QueriesPrompt Engineering

Similar Papers 제목 키워드 기반

MASF: A Multi-Model Adaptive Selection Framework for Abstractive Text summarization

2026-06-03 · Ahmed Alansary, Ali Hamdi arxiv

Automatic text summarization has become increasingly important due to the rapid growth of digital textual information. This paper presents a Multi-Model Adaptive Summarization Framework designed to improve the robustness…

Abstractive Text Summarization

P3: A Policy-Driven, Pace-Adaptive, and Diversity-Promoted Framework for data pruning in LLM Training

2024-08-10 · Yingxuan Yang, Huayi Wang, Muning Wen, Xiaoyun Mo 외

In the rapidly advancing field of Large Language Models (LLMs), effectively leveraging existing datasets during fine-tuning to maximize the model's potential is of paramount importance. This paper introduces P3, an adapt…

DiversityLogical ReasoningMath

Truth-Aware Context Selection: Mitigating Hallucinations of Large Language Models Being Misled by Untruthful Contexts

2024-03-12 · Tian Yu, Shaolei Zhang, Yang Feng

Although Large Language Models (LLMs) have demonstrated impressive text generation capabilities, they are easily misled by untruthful contexts provided by users or knowledge augmentation tools, leading to hallucinations.…

Text Generation

The Power of Adaptation: Boosting In-Context Learning through Adaptive Prompting

2024-12-23 · Shuzhang Cai, Twumasi Mensah-Boateng, Xander Kuksov, Jing Yuan 외

Large Language Models (LLMs) have demonstrated exceptional abilities across a broad range of language-related tasks, including generating solutions to complex reasoning problems. An effective technique to enhance LLM per…

In-Context LearningInformativeness

PEARL: Peer-Enhanced Adaptive Radio via On-Device LLM

2025-09-28 · Ju-Hyung Lee, Yanqing Lu, Klaus Doppler arxiv

We present PEARL (Peer-Enhanced Adaptive Radio via On-Device LLM), a framework for cooperative cross-layer optimization in device-to-device (D2D) communication. Building on our previous work on single-device on-device LL…