arXiv:2412.05208cs.AIcs.DB2024-12综述被引 24

综述大模型驱动的文本转SQL技术,解析其应用与挑战

A Survey of Large Language Model-Based Generative AI for Text-to-SQL: Benchmarks, Applications, Use Cases, and Challenges

  • 基于大模型构建文本转SQL系统,提升非技术人员数据库交互能力
  • 现有数据集如Spider、WikiSQL推动技术发展,但多轮对话支持有限
  • 适合关注数据库智能化、AI+数据应用的研究者与开发者

文本转SQL系统通过将自然语言查询转化为结构化查询语言(SQL),使非技术人员能便捷地与复杂数据库交互。本文全面综述了人工智能驱动的文本转SQL系统的发展历程,重点分析其核心组件、大语言模型(LLM)架构的演进,以及Spider、WikiSQL和CoSQL等数据集在推动技术进步中的关键作用。研究覆盖医疗、教育、金融等领域的应用,凸显其提升数据可访问性的变革潜力。同时指出持续存在的挑战:领域泛化能力不足、查询优化困难、对多轮对话支持有限,以及针对NoSQL数据库和动态现实场景的数据集稀缺。为此提出未来方向:拓展至NoSQL支持、设计面向动态多轮交互的数据集,优化系统在真实场景下的可扩展性与鲁棒性。本综述旨在指引下一代大模型文本转SQL技术的研究与应用。

原文摘要 · Abstract (English)

Text-to-SQL systems facilitate smooth interaction with databases by translating natural language queries into Structured Query Language (SQL), bridging the gap between non-technical users and complex database management systems. This survey provides a comprehensive overview of the evolution of AI-driven text-to-SQL systems, highlighting their foundational components, advancements in large language model (LLM) architectures, and the critical role of datasets such as Spider, WikiSQL, and CoSQL in driving progress. We examine the applications of text-to-SQL in domains like healthcare, education, and finance, emphasizing their transformative potential for improving data accessibility. Additionally, we analyze persistent challenges, including domain generalization, query optimization, support for multi-turn conversational interactions, and the limited availability of datasets tailored for NoSQL databases and dynamic real-world scenarios. To address these challenges, we outline future research directions, such as extending text-to-SQL capabilities to support NoSQL databases, designing datasets for dynamic multi-turn interactions, and optimizing systems for real-world scalability and robustness. By surveying current advancements and identifying key gaps, this paper aims to guide the next generation of research and applications in LLM-based text-to-SQL systems.

文本转SQL大模型数据库自然语言

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。