清晨好,您是今天最早来到科研通的研友!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您科研之路漫漫前行!

Text-to-SQL based on Large Language Models and Database Keyword Search

计算机科学 SQL语言 情报检索 存储过程 数据定义语言 数据库 SQL/PSM 空(SQL) 按示例查询 Web搜索查询 搜索引擎
作者
Eduardo Nascimento,Caio Viktor S. Avila,Yenier Torres Izquierdo,Grettel Monteagudo García,Lucas Andrade,Michelle S. P. Facina,Melissa Lemos,Marco A. Casanova
出处
期刊:Cornell University - arXiv
标识
DOI:10.48550/arxiv.2501.13594
摘要

Text-to-SQL prompt strategies based on Large Language Models (LLMs) achieve remarkable performance on well-known benchmarks. However, when applied to real-world databases, their performance is significantly less than for these benchmarks, especially for Natural Language (NL) questions requiring complex filters and joins to be processed. This paper then proposes a strategy to compile NL questions into SQL queries that incorporates a dynamic few-shot examples strategy and leverages the services provided by a database keyword search (KwS) platform. The paper details how the precision and recall of the schema-linking process are improved with the help of the examples provided and the keyword-matching service that the KwS platform offers. Then, it shows how the KwS platform can be used to synthesize a view that captures the joins required to process an input NL question and thereby simplify the SQL query compilation step. The paper includes experiments with a real-world relational database to assess the performance of the proposed strategy. The experiments suggest that the strategy achieves an accuracy on the real-world relational database that surpasses state-of-the-art approaches. The paper concludes by discussing the results obtained.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
852应助木木圆采纳,获得10
1秒前
止观发布了新的文献求助10
32秒前
39秒前
打打应助止观采纳,获得10
45秒前
BOB007发布了新的文献求助10
45秒前
NI完成签到 ,获得积分10
49秒前
火鸟完成签到,获得积分10
59秒前
踏雪完成签到,获得积分10
1分钟前
1分钟前
星际舟完成签到,获得积分10
1分钟前
1分钟前
2分钟前
小二郎应助追寻的摩托采纳,获得30
2分钟前
2分钟前
Skywalk满天星完成签到,获得积分10
2分钟前
止观发布了新的文献求助10
2分钟前
科研通AI6应助科研通管家采纳,获得10
2分钟前
追寻的摩托完成签到,获得积分10
2分钟前
激动的似狮完成签到,获得积分10
2分钟前
止观完成签到,获得积分10
2分钟前
2分钟前
3分钟前
隐形曼青应助有魅力发卡采纳,获得10
3分钟前
666yj完成签到 ,获得积分10
3分钟前
4分钟前
4分钟前
4分钟前
lanxinge完成签到 ,获得积分10
4分钟前
尹汉通发布了新的文献求助10
4分钟前
4分钟前
尹汉通完成签到,获得积分10
4分钟前
害怕的恶天完成签到,获得积分10
4分钟前
4分钟前
大胆的鲂发布了新的文献求助30
4分钟前
知行合一完成签到 ,获得积分10
4分钟前
Hollen完成签到 ,获得积分10
5分钟前
大胆的鲂完成签到,获得积分10
5分钟前
老石完成签到 ,获得积分10
5分钟前
5分钟前
6分钟前
高分求助中
Comprehensive Toxicology Fourth Edition 24000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Hydrothermal Circulation and Seawater Chemistry: Links and Feedbacks 1200
Pipeline and riser loss of containment 2001 - 2020 (PARLOC 2020) 1000
World Nuclear Fuel Report: Global Scenarios for Demand and Supply Availability 2025-2040 800
Handbook of Social and Emotional Learning 800
Risankizumab Versus Ustekinumab For Patients with Moderate to Severe Crohn's Disease: Results from the Phase 3B SEQUENCE Study 600
热门求助领域 (近24小时)
化学 医学 生物 材料科学 工程类 有机化学 内科学 生物化学 物理 计算机科学 纳米技术 遗传学 基因 复合材料 化学工程 物理化学 病理 催化作用 免疫学 量子力学
热门帖子
关注 科研通微信公众号,转发送积分 5149046
求助须知:如何正确求助?哪些是违规求助? 4345200
关于积分的说明 13530238
捐赠科研通 4187460
什么是DOI,文献DOI怎么找? 2296289
邀请新用户注册赠送积分活动 1296657
关于科研通互助平台的介绍 1240697