Exécution de notre outil de synthèse sur un nouvel article
Vérifiez l’article ci-dessous, puis lancez sa synthèse.
Advancing NLIDB Systems with T5-RAG: An Encoder-Decoder Approach to SQL Query Generation
Mokshada Potdar (National Institute Of Technology Silchar), Mahesh Potdar, Shubhangi Potdar
Résumé : Interacting with relational databases often requires expertise in Structured Query Language (SQL), which limits accessibility for non-technical users. Natural Language Interfaces to Databases (NLIDBs) aim to bridge this gap by translating user questions in plain language into executable SQL queries. Recent developments in large language models (LLMs) have improved this translation process, yet decoder-only models face challenges in handling large schemas, generating accurate queries in complex scenarios, and managing prompt length efficiently. This study presents a hybrid approach that integrates a Retrieval-Augmented Generation (RAG) framework with an encoder-decoder model based on the Text- to- Text Transfer Transformer (TS). The system filters and retrieves schema components relevant to the user query and feeds them, along with the original input, to the model for SQL generation. Evaluated on both a real-world industrial dataset and the Spider benchmark, the proposed method demonstrates improvements in accuracy and execution success while significantly reducing token usage. Additionally, the model is optimized for low-latency inference through quan-tization and self-hosted deployment. The experimental results indicate that combining focused schema retrieval with encoder-decoder architectures enhances both performance and efficiency in natural language to SQL translation tasks.