AI Paper Atlas

Research map / Large language models / Retrieval and knowledge

Enhancing Text-to-SQL Capabilities of Large Language Models: A Study on Prompt Design Strategies

Linyong Nan, Yilun Zhao, Weijin Zou, Narutatsu Ri, Jaesung Tae, Ellen Zhang, Arman Cohan, Dragomir Radev

EMNLP 2023 · Large language models › Retrieval and knowledge · approach: Knowledge-augmented question answering · 160 citations (OpenAlex) · Allen Institute for AI, Columbia University, Yale University

Read the paper

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
select demonstrations by similarity and diversity (SD) instead of random (ablation)Codex few-shot · Spiderexecution accuracy: 76.03 -> 80.32Improved
select demonstrations by similarity only instead of random (ablation)Codex few-shot · Spiderexecution accuracy: 76.03 -> 78.33Improved
select demonstrations by diversity only instead of random (ablation)Codex few-shot · Spiderexecution accuracy: 76.03 -> 78.64Improved
combine similarity and diversity rather than either alone (ablation)Codex few-shot · Spiderexecution accuracy: 78.33 / 78.64 -> 80.32Improved
increase syntax coverage of demonstrations (similarity-diversity vs random) (ablation)Codex few-shot · Spidersyntax coverage: 0.38 -> 0.50Improved
linearize database as CREATE queries (code) instead of text (ablation)Codex zero-shot · Spiderexecution accuracyImproved
add schema semantic augmentation (column summaries) (ablation)Codex zero-shot · Spiderexecution accuracyImproved
add schema augmentation in few-shot setting (ablation)Codex few-shot · Spiderexecution accuracyNo clear effect
add majority voting over predictions from different shot numbers (ablation)SD + schema augmentation · Spider and variantsexecution accuracyImproved
use similarity-diversity selection on medium-difficulty problems (ablation)Codex few-shot · Spider medium splitexecution accuracyHurt
use a higher-performing preliminary model for the draft SQL (ablation)SD and integrated approaches · Spiderexecution accuracyNo clear effect
use RoBERTa-base instead of text-embedding-ada-002 for similarity retrieval (ablation)Codex few-shot · Spiderexecution accuracyImproved

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy