English

Evaluating the Text-to-SQL Capabilities of Large Language Models

Computation and Language 2022-04-04 v1 Databases Machine Learning

Abstract

We perform an empirical evaluation of Text-to-SQL capabilities of the Codex language model. We find that, without any finetuning, Codex is a strong baseline on the Spider benchmark; we also analyze the failure modes of Codex in this setting. Furthermore, we demonstrate on the GeoQuery and Scholar benchmarks that a small number of in-domain examples provided in the prompt enables Codex to perform better than state-of-the-art models finetuned on such few-shot examples.

Keywords

Cite

@article{arxiv.2204.00498,
  title  = {Evaluating the Text-to-SQL Capabilities of Large Language Models},
  author = {Nitarshan Rajkumar and Raymond Li and Dzmitry Bahdanau},
  journal= {arXiv preprint arXiv:2204.00498},
  year   = {2022}
}
R2 v1 2026-06-24T10:34:49.048Z