Divide and Prompt: Chain of Thought Prompting for Text-to-SQL
원문 초록
Chain-of-thought (CoT) prompting combined with large language models (LLMs) have achieved encouraging results on complex reasoning tasks. Text-to-SQL is a critical semantic parsing task that converts natural language questions into SQL statements, involving a complex reasoning process. However, there is little work about using CoT prompting to activate LLM's reasoning capabilities on Text-to-SQL tasks. In this work, we propose a new paradigm for prompting Text-to-SQL tasks, called Divide-and-Prompt, which first divides the task into subtasks, and then approach each subtask through CoT. We present 3 prompting-based methods to enhance the Text-to-SQL ability of LLMs. Experiments show that these prompts guide LLMs to generate Text-to-SQL with higher execution accuracy.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Sigma: A dataset for text-to-code semantic parsing with statistical analysis
Disambiguate First Parse Later: Generating Interpretations for Ambiguity Resolution in Semantic Parsing
SynTQA: Synergistic Table-based Question Answering via Mixture of Text-to-SQL and E2E TQA
TabSQLify: Enhancing Reasoning Capabilities of LLMs Through Table Decomposition
Improving Generalization in Semantic Parsing by Increasing Natural Language Variation
Semantic Decomposition of Question and SQL for Text-to-SQL Parsing
토론
이 논문과 연결된 포럼 글이 아직 없습니다.