HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

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

Xuemei Dong Chao Zhang Yuhang Ge Yuren Mao Yunjun Gao lu Chen Jinshu Lin Dongfang Lou

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

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.

Code Repositories

bigbigwatermalon/c3sql
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
text-to-sql-on-spiderC3 + ChatGPT + Zero-Shot
Execution Accuracy (Dev): 81.8
Execution Accuracy (Test): 82.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
C3: Zero-shot Text-to-SQL with ChatGPT | Papers | HyperAI