0

C3: Zero-shot Text-to-SQL with ChatGPT

A ChatGPT-based zero-shot Text-to-SQL method, C3, achieves high execution accuracy using Clear Prompting, Calibration with Hints, and Consistent Output components.

Year
2023
Venue
arXiv 2023
Authors
8
Hosting
Abstract onlyARXIV-DEFAULT

Cite

Notes

Only stored in your browser.

Attribution

Abstract & full text
arxiv.org/abs/2307.07306ARXIV-DEFAULT
TL;DR
Semantic Scholar
Attribution policy →

Abstract

This paper proposes a ChatGPT-based zero-shot Text-to-SQL method, dubbed C3, which achieves 82.3% in terms of execution accuracy on the holdout test set of Spider and becomes the state-of-the-art zero-shot Text-to-SQL method on the Spider Challenge. C3 consists of three key components: Clear Prompting (CP), Calibration with Hints (CH), and Consistent Output (CO), which are corresponding to the model input, model bias and model output respectively. It provides a systematic treatment for zero-shot Text-to-SQL. Extensive experiments have been conducted to verify the effectiveness and efficiency of our proposed method.

Authors

8