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 , Xinlei Cai , Zhijun Shen , Zijie Meng , Junhua Zhao , Yuheng Cheng , 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.