论文:MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL
⭐⭐⭐⭐
arXiv:2312.11242, 北航 & Tencent
Code: MAC-SQL | GitHub
文章目录
一、论文速读
本文提出了一个使用多个 agents 进行互相合作的框架 MAC-SQL 来解决 Text2SQL 任务。
MAC-SQL 主要由 3 种 agents 组成:
- Selector:通过去除掉 inference 时无关的信息来把一个大的数据库分解为更小的数据库
- Decomposer:通过 prompt 的方法来把一个复杂的 question 分解为渐进性的几个可以被独立解决的 sub-questions
- Refiner:用于检测和自动改正 SQL 的错误
原论文对三者的描述:
Specifically, the Decomposer disassembles complex questions into simpler sub-questions and addresses them sequentially through chain-of-thought reasoning. If required, t