大规模电力数据库自动构建与查询生成技术
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP311

基金项目:

国家自然科学基金区域创新发展联合基金重点项目(U23A20298); 云南省智能系统与计算重点实验室项目(202549CE340006)


Automatic Construction and Query Generation Technology for Large-scale Power Databases
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    电力行业的数字化进程催生了海量的结构化业务数据, 关键业务对自然语言驱动的高效数据查询需求日益迫切. 然而, 电力数据库普遍存在模式庞大、字段语义模糊和查询复杂等特点, 当前查询方式仍高度依赖人工编写SQL, 效率低且可能导致运维或调度决策错误. 尽管大语言模型(large language model, LLM)与Text-to-SQL技术为该问题提供了新的解决思路, 却因电力领域数据库的自身特点而导致适配性有限. 针对上述挑战, 提出模型无关的Text-to-SQL框架ElectricSQL, 该框架通过LLM模仿学习和SQL视图模式转化, 在不依赖特定商业大模型的前提下提升复杂电力业务查询的SQL生成性能. 同时, 构建一个面向真实电力业务场景的Text-to-SQL基准数据集PowerSQL. 实验结果表明, ElectricSQL在PowerSQL数据集上显著优于主流基线, 且在多类开源LLM上实现了稳定性能增益, 验证了所提方法的有效性并为电力领域自然语言查询系统构建和垂类领域Text-to-SQL研究提供了可复用方案.

    Abstract:

    The digitalization of the power industry gives rise to massive volumes of structured business data, creating an increasingly urgent demand for efficient natural language-driven data querying in critical business operations. However, power databases typically feature large schemas, ambiguous field semantics, and complex queries, and current query methods therefore continue to rely heavily on manually written SQL. This not only limits efficiency but may also lead to operational or dispatching decision errors. Although large language models (LLMs) and Text-to-SQL techniques provide a new solution to this problem, their applicability remains limited due to the characteristics of power-domain databases. To address these challenges, this study proposes ElectricSQL, a model-agnostic Text-to-SQL framework. The proposed framework improves SQL generation performance for complex power business queries through LLM-based imitation learning and SQL view-based schema transformation, without relying on any specific commercial large language model. In addition, PowerSQL, a Text-to-SQL benchmark dataset for real power business scenarios, is developed. Experimental results show that ElectricSQL significantly outperforms mainstream baselines on the PowerSQL dataset and achieves stable performance gains across multiple types of open-source LLMs. These results verify the effectiveness of the proposed method and provide a reusable solution for building natural language query systems in the power domain and for research on domain-specific Text-to-SQL.

    参考文献
    相似文献
    引证文献
引用本文

刘源,张远来,张仕浩,李昕原,赵奕轲,高明,兰韵诗,岳昆.大规模电力数据库自动构建与查询生成技术.软件学报,,():1-22

复制
相关视频

分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2026-01-21
  • 最后修改日期:2026-02-28
  • 录用日期:
  • 在线发布日期: 2026-09-23
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号