arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.08941cs.DBcs.CLcs.LG
收藏

CodexDB:使用GPT-3 Codex生成用于处理SQL的代码

CodexDB: Generating Code for Processing SQL Queries using GPT-3 Codex

Cornell University(康奈尔大学)

Immanuel Trummer

摘要:

CodexDB是一个SQL处理引擎,其内部可以通过自然语言指令进行自定义。CodexDB基于OpenAI的GPT-3 Codex模型,可将文本转换为代码。它是一个基于GPT-3 Codex的框架,可以将复杂的SQL查询分解为一系列简单的处理步骤,用自然语言描述。处理步骤通过用户提供的说明和数据库属性的描述进行了丰富。Codex将结果文本转换为查询处理代码。CodexDB的早期原型能够为WikiSQL基准的大多数查询生成正确的代码,并且可以以各种方式进行定制。

英文摘要:

CodexDB is an SQL processing engine whose internals can be customized via natural language instructions. CodexDB is based on OpenAI's GPT-3 Codex model which translates text into code. It is a framework on top of GPT-3 Codex that decomposes complex SQL queries into a series of simple processing steps, described in natural language. Processing steps are enriched with user-provided instructions and descriptions of database properties. Codex translates the resulting text into query processing code. An early prototype of CodexDB is able to generate correct code for a majority of queries of the WikiSQL benchmark and can be customized in various ways.

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

↑