Guardado en:
Detalles Bibliográficos
Autores principales: Guo, Ziming, Ma, Chao, Sun, Yinggang, Zhao, Tiancheng, Wang, Guangyao, Huang, Hai
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:https://arxiv.org/abs/2412.17867
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910906160513024
author Guo, Ziming
Ma, Chao
Sun, Yinggang
Zhao, Tiancheng
Wang, Guangyao
Huang, Hai
author_facet Guo, Ziming
Ma, Chao
Sun, Yinggang
Zhao, Tiancheng
Wang, Guangyao
Huang, Hai
contents Recent advancements in large language models (LLMs) have significantly advanced text-to-SQL systems. However, most LLM-based methods often narrowly focus on SQL generation, neglecting the complexities of real-world conversational queries. This oversight can lead to unreliable responses, particularly for ambiguous questions that cannot be directly addressed with SQL. To bridge this gap, we propose MMSQL, a comprehensive test suite designed to evaluate the question classification and SQL generation capabilities of LLMs by simulating real-world scenarios with diverse question types and multi-turn Q&A interactions. Using MMSQL, we assessed the performance of popular LLMs, including both open-source and closed-source models, and identified key factors impacting their performance in such scenarios. Moreover, we introduce an LLM-based multi-agent framework that employs specialized agents to identify question types and determine appropriate answering strategies. Our experiments demonstrate that this approach significantly enhances the model's ability to navigate the complexities of conversational dynamics, effectively handling the diverse and complex nature of user queries. Our dataset and code are publicly available at https://mcxiaoxiao.github.io/MMSQL.
format Preprint
id arxiv_https___arxiv_org_abs_2412_17867
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Evaluating and Enhancing LLMs for Multi-turn Text-to-SQL with Multiple Question Types
Guo, Ziming
Ma, Chao
Sun, Yinggang
Zhao, Tiancheng
Wang, Guangyao
Huang, Hai
Computation and Language
Artificial Intelligence
Recent advancements in large language models (LLMs) have significantly advanced text-to-SQL systems. However, most LLM-based methods often narrowly focus on SQL generation, neglecting the complexities of real-world conversational queries. This oversight can lead to unreliable responses, particularly for ambiguous questions that cannot be directly addressed with SQL. To bridge this gap, we propose MMSQL, a comprehensive test suite designed to evaluate the question classification and SQL generation capabilities of LLMs by simulating real-world scenarios with diverse question types and multi-turn Q&A interactions. Using MMSQL, we assessed the performance of popular LLMs, including both open-source and closed-source models, and identified key factors impacting their performance in such scenarios. Moreover, we introduce an LLM-based multi-agent framework that employs specialized agents to identify question types and determine appropriate answering strategies. Our experiments demonstrate that this approach significantly enhances the model's ability to navigate the complexities of conversational dynamics, effectively handling the diverse and complex nature of user queries. Our dataset and code are publicly available at https://mcxiaoxiao.github.io/MMSQL.
title Evaluating and Enhancing LLMs for Multi-turn Text-to-SQL with Multiple Question Types
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2412.17867