arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.11853cs.CL
收藏

如何为 Text-to-SQL 提示 LLM:在 Zero-shot、Single-domain 和 Cross-domain 设置下的研究

How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settings

The Ohio State University(俄亥俄州立大学)

Shuaichen Chang, Eric Fosler-Lussier

AI总结:

本文针对 text-to-SQL 任务中提示构建缺乏可比性的问题,全面调查了在 Zero-shot、Single-domain 和 Cross-domain 等多种设置下提示构建的影响,为未来研究提供了有效提示构建的见解。

摘要:

具有上下文学习的大型语言模型(LLMs)在 text-to-SQL 任务中展示了卓越的能力。先前的研究通过使用各种示例检索策略和中间推理步骤来提示 LLMs,以增强 LLMs 的性能。然而,这些工作在为 text-to-SQL 输入(如数据库和示例)构建提示文本时,通常采用不同的策略。这导致在提示构建及其主要贡献方面缺乏可比性。此外,选择有效的提示构建已成为未来研究中持续存在的问题。为了解决这一局限性,我们全面调查了各种设置下提示构建的影响,并为未来的 text-to-SQL 研究提供了关于提示构建的见解。

英文摘要:

Large language models (LLMs) with in-context learning have demonstrated remarkable capability in the text-to-SQL task. Previous research has prompted LLMs with various demonstration-retrieval strategies and intermediate reasoning steps to enhance the performance of LLMs. However, those works often employ varied strategies when constructing the prompt text for text-to-SQL inputs, such as databases and demonstration examples. This leads to a lack of comparability in both the prompt constructions and their primary contributions. Furthermore, selecting an effective prompt construction has emerged as a persistent problem for future research. To address this limitation, we comprehensively investigate the impact of prompt constructions across various settings and provide insights into prompt constructions for future text-to-SQL studies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑