电力动态元数据检索的大模型查询方法、装置及电子设备

By using a dynamic metadata retrieval method for electricity, the problems of low query efficiency and context overrun in power business using large language models are solved, achieving second-level response and accurate SQL generation, which is suitable for power grid equipment management and fault diagnosis.

CN122220385BActive Publication Date: 2026-07-17SICHUAN ENERGY INTERNET RES INST TSINGHUA UNIV

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SICHUAN ENERGY INTERNET RES INST TSINGHUA UNIV
Filing Date
2026-05-14
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing technologies for querying metadata using large language models in the power industry suffer from low inference efficiency and query errors caused by exceeding context length limits, failing to meet the real-time requirements of the power industry.

Method used

The method of dynamic power metadata retrieval is adopted. It performs legality verification and terminology standardization by receiving users' natural language questions, filters candidate data tables, dynamically obtains field definitions and sample data, generates structured input instructions to generate SQL statements, and performs syntax verification and security audit.

Benefits of technology

It significantly improves query efficiency, avoids the problem of exceeding the context length limit, improves query accuracy and reliability, and has good scalability and generalization ability, making it suitable for power grid equipment ledger management and fault diagnosis analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122220385B_ABST
    Figure CN122220385B_ABST
Patent Text Reader

Abstract

本发明属于电力系统信息化与人工智能交叉领域,涉及电力动态元数据检索的大模型查询方法、装置及电子设备,所述方法包括:接收用户自然语言问题,进行合法性校验、术语标准化映射和查询意图分类;主控大模型判断是否需要访问数据库;数据库交互工具读取预置的电力领域JSON配置文件;程序化连接电力业务数据库;将用户问题、筛选后表的结构信息和样例数据整合为上下文引导文本或结构化的输入指令,输入SQL生成大模型生成SQL语句,并进行语法校验与安全审计;执行通过校验的SQL语句获取结果集。规避上下文长度超限问题,显著提升查询准确率与系统稳定性,适用于电网设备台账管理、状态监测数据统计、故障诊断分析等业务场景。
Need to check novelty before this filing date? Find Prior Art