Intelli-Dispatch-SQL: An LLM-based agent for reliable Text-to-SQL in power dispatching

IF 9.6 Q1 COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE
Binye Ni , Xinlei Cai , Zhijun Shen , Zijie Meng , Junhua Zhao , Yuheng Cheng , Xuanang Gui
{"title":"Intelli-Dispatch-SQL: An LLM-based agent for reliable Text-to-SQL in power dispatching","authors":"Binye Ni ,&nbsp;Xinlei Cai ,&nbsp;Zhijun Shen ,&nbsp;Zijie Meng ,&nbsp;Junhua Zhao ,&nbsp;Yuheng Cheng ,&nbsp;Xuanang Gui","doi":"10.1016/j.egyai.2025.100591","DOIUrl":null,"url":null,"abstract":"<div><div>The increasing complexity of modern power systems, driven by factors such as the large-scale integration of renewable energy and the proliferation of distributed generation, has placed unprecedented demands on power dispatching operations. Ensuring grid stability and safety in this new environment requires real-time monitoring and swift, data-driven decision-making. Consequently, efficient and accurate data querying capabilities have become paramount. This study introduces Intelli-Dispatch-SQL, a novel agent-based Text-to-SQL framework that leverages the Large Language Model (LLM) to enhance the accuracy and reliability of generated SQL queries in the context of power dispatching. By integrating intent recognition and SQL validation modules, Intelli-Dispatch-SQL ensures that generated queries are not only syntactically correct but also semantically aligned with user intent and executable within the operational context. Through comprehensive experiments, including ablation studies and cross-model evaluations, we demonstrate that Intelli-Dispatch-SQL significantly outperforms existing Text-to-SQL models, achieving substantial improvements in both Exact Match (EM) and Execution Accuracy (EX). Notably, the incorporation of intent recognition and SQL validation modules is shown to be critical for performance enhancement. The framework’s effectiveness was further validated across various LLMs, confirming its robustness and applicability across diverse scenarios. Intelli-Dispatch-SQL offers a high-performance and generalizable solution for Text-to-SQL in power dispatching, paving the way for more efficient and intelligent power system management.</div></div>","PeriodicalId":34138,"journal":{"name":"Energy and AI","volume":"22 ","pages":"Article 100591"},"PeriodicalIF":9.6000,"publicationDate":"2025-08-26","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Energy and AI","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2666546825001235","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0

Abstract

The increasing complexity of modern power systems, driven by factors such as the large-scale integration of renewable energy and the proliferation of distributed generation, has placed unprecedented demands on power dispatching operations. Ensuring grid stability and safety in this new environment requires real-time monitoring and swift, data-driven decision-making. Consequently, efficient and accurate data querying capabilities have become paramount. This study introduces Intelli-Dispatch-SQL, a novel agent-based Text-to-SQL framework that leverages the Large Language Model (LLM) to enhance the accuracy and reliability of generated SQL queries in the context of power dispatching. By integrating intent recognition and SQL validation modules, Intelli-Dispatch-SQL ensures that generated queries are not only syntactically correct but also semantically aligned with user intent and executable within the operational context. Through comprehensive experiments, including ablation studies and cross-model evaluations, we demonstrate that Intelli-Dispatch-SQL significantly outperforms existing Text-to-SQL models, achieving substantial improvements in both Exact Match (EM) and Execution Accuracy (EX). Notably, the incorporation of intent recognition and SQL validation modules is shown to be critical for performance enhancement. The framework’s effectiveness was further validated across various LLMs, confirming its robustness and applicability across diverse scenarios. Intelli-Dispatch-SQL offers a high-performance and generalizable solution for Text-to-SQL in power dispatching, paving the way for more efficient and intelligent power system management.

Abstract Image

Intelli-Dispatch-SQL:一个基于llm的代理,用于电力调度中可靠的Text-to-SQL
在可再生能源大规模并网和分布式发电普及等因素的推动下,现代电力系统日益复杂化,对电力调度业务提出了前所未有的要求。在这种新环境下,确保电网的稳定和安全需要实时监控和快速的、数据驱动的决策。因此,高效和准确的数据查询功能变得至关重要。本研究介绍了一种新的基于代理的文本到SQL框架,它利用大语言模型(LLM)来提高电力调度环境中生成的SQL查询的准确性和可靠性。通过集成意图识别和SQL验证模块,Intelli-Dispatch-SQL确保生成的查询不仅在语法上正确,而且在语义上与用户意图一致,并且在操作上下文中可执行。通过综合实验,包括烧消研究和跨模型评估,我们证明了Intelli-Dispatch-SQL显著优于现有的Text-to-SQL模型,在精确匹配(EM)和执行精度(EX)方面都取得了实质性的改进。值得注意的是,意图识别和SQL验证模块的结合对于性能增强至关重要。该框架的有效性在不同的法学硕士中得到进一步验证,证实了其在不同场景中的鲁棒性和适用性。Intelli-Dispatch-SQL为电力调度中的文本到sql提供了一种高性能和通用的解决方案,为更高效和智能的电力系统管理铺平了道路。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
Energy and AI
Energy and AI Engineering-Engineering (miscellaneous)
CiteScore
16.50
自引率
0.00%
发文量
64
审稿时长
56 days
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信