TL;DR
AV-SQL introduces a multi-agent framework that decomposes complex Text-to-SQL tasks into manageable steps using agentic views, significantly improving accuracy on challenging benchmarks.
Contribution
The paper presents AV-SQL, a novel multi-agent approach utilizing agentic views to better handle complex, large-schema Text-to-SQL queries with improved accuracy.
Findings
Achieves 70.38% execution accuracy on Spider 2.0, surpassing baselines.
Performs well on standard datasets: 85.59% on Spider, 72.16% on BIRD, 63.78% on KaggleDBQA.
Effectively decomposes complex queries into intermediate steps with agentic views.
Abstract
Text-to-SQL is the task of translating natural language queries into executable SQL for a given database, enabling non-expert users to access structured data without writing SQL manually. Despite rapid advances driven by large language models (LLMs), existing approaches still struggle with complex queries in real-world settings, where database schemas are large and questions require multi-step reasoning over many interrelated tables. In such cases, providing the full schema often exceeds the context window, while one-shot generation frequently produces non-executable SQL due to syntax errors and incorrect schema linking. To address these challenges, we introduce AV-SQL, a framework that decomposes complex Text-to-SQL into a pipeline of specialized LLM agents. Central to AV-SQL is the concept of agentic views: agent-generated Common Table Expressions (CTEs) that encapsulate intermediate…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
