Power report generation method and device, computer equipment and readable storage medium
By building a power report knowledge base and automatically acquiring data to generate power reports, the problem of a shortage of multi-skilled talents in the power industry has been solved, and high-quality and efficient power report generation has been achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-22
- Publication Date
- 2026-04-07
AI Technical Summary
The power industry lacks professionals who are proficient in both power system expertise and data mining and interpretation, resulting in low quality and efficiency in power report writing.
By building a power report knowledge base, the system automatically matches initial analysis items and generates an outline, supports editing and confirmation operations, and retrieves data from the power database in conjunction with the target report outline to generate the target power report.
It enables the rapid generation of power reports, improves writing quality and efficiency, ensures the structured and data-driven presentation of report content, and makes up for the shortage of multi-skilled talents.
Smart Images

Figure CN121809417A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power technology, and in particular to a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for generating power reports. Background Technology
[0002] Electricity reports are the core basis for the production, operation, planning, construction and risk management of the power industry. The quality and efficiency of their writing are directly related to the efficiency and safety level of the industry's development.
[0003] High-quality, efficient power report writing requires a solid foundation of power system expertise, coupled with precise data analysis capabilities and profound industry insights. Only through the organic integration of these three elements can a professional report with decision-making value be produced. However, there is currently a significant shortage of compound talents in the power industry who are proficient in both power system expertise and the entire production and operation process, and are also skilled in data mining, interpretation, and transformation. This talent gap leads to lower quality and efficiency in power report writing. Summary of the Invention
[0004] Therefore, it is necessary to address the aforementioned technical problems of low writing quality and efficiency of power reports by providing a method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the writing quality and efficiency of power reports.
[0005] Firstly, this application provides a method for generating an electricity report, including:
[0006] Obtain the requirement text for generating the electricity report;
[0007] The report topic and data description information of the power report to be generated are extracted from the power report generation requirement text; the data description information is used to describe the data that the power report to be generated needs to analyze.
[0008] From multiple power report analysis items in a pre-built power report knowledge base, at least one initial analysis item matching the report topic is determined, an initial report outline is obtained, and the initial report outline is displayed; the power report knowledge base is built based on sample power reports;
[0009] In response to editing and confirming the initial report outline, a target report outline is obtained; the target report outline includes at least one target analysis item.
[0010] Based on the target report outline and the data description information, obtain the target power data corresponding to each target analysis item from the power database;
[0011] Based on the target report outline and the target power data corresponding to each target analysis item, a target power report is generated and displayed.
[0012] In one embodiment, the step of determining at least one initial analysis item matching the report topic from multiple power report analysis items in a pre-built power report knowledge base to obtain an initial report outline includes:
[0013] Determine the degree of match between the report topic and each of the power report analysis items;
[0014] From the multiple power report analysis items, obtain the power report analysis items with a matching degree greater than or equal to the matching degree threshold to obtain the initial analysis items;
[0015] The initial analysis items are combined to obtain the initial report outline.
[0016] In one embodiment, the power report knowledge base also stores a data summary of the data that needs to be analyzed for each power report analysis item;
[0017] The step of obtaining target power data corresponding to each target analysis item from the power database based on the target report outline and the data description information includes:
[0018] For each target analysis item in the target report outline, the data description information and the target data summary of the target analysis item are combined to form the data query information of the target analysis item; the target data summary is the data summary of the power report analysis item corresponding to the target analysis item in the power report knowledge base.
[0019] The target power data corresponding to the target analysis item is obtained by querying the power database based on the data query information.
[0020] In one embodiment, the power report knowledge base also stores the analysis approach information for each power report analysis item;
[0021] The step of generating a target power report based on the target report outline and the target power data corresponding to each target analysis item includes:
[0022] For each target analysis item, the target power data of the target analysis item is analyzed according to the target analysis approach information of the target analysis item to obtain the analysis text under the target analysis item; the target analysis approach information is the analysis approach information of the power report analysis item corresponding to the target analysis item in the power report knowledge base;
[0023] The target power report is obtained by combining the analysis texts corresponding to each target analysis item according to the target report outline.
[0024] In one embodiment, obtaining the target report outline in response to editing and confirming the initial report outline includes:
[0025] In response to the editing operation on the initial report outline, an edited report outline is obtained and displayed; the editing operation includes at least one of the following: adding, deleting, and modifying.
[0026] In response to the confirmation operation of the edited report outline, the target report outline is obtained.
[0027] In one embodiment, after obtaining the target report outline, the method further includes:
[0028] Receive the power text uploaded in response to the target report outline;
[0029] The step of obtaining target power data corresponding to each target analysis item from the power database based on the target report outline and the data description information includes:
[0030] Based on the target report outline and the data description information, the target power data corresponding to each target analysis item is obtained from the power database and the power text.
[0031] Secondly, this application also provides an electricity report generation device, comprising:
[0032] The text receiving module is used to acquire the text required for generating the power report;
[0033] The information extraction module is used to extract the report topic and data description information of the power report to be generated from the power report generation requirement text; the data description information is used to describe the data that needs to be analyzed in the power report to be generated.
[0034] The outline generation module is used to determine at least one initial analysis item that matches the report topic from multiple power report analysis items in a pre-built power report knowledge base, and obtain an initial report outline; the power report knowledge base is built based on sample power reports;
[0035] An outline determination module is used to obtain a target report outline in response to editing and confirmation operations on the initial report outline; the target report outline includes at least one target analysis item;
[0036] The data acquisition module is used to acquire target power data corresponding to each target analysis item from the power database based on the target report outline and the data description information;
[0037] The report generation module is used to generate and display the target power report based on the target report outline and the target power data corresponding to each target analysis item.
[0038] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0039] Obtain the requirement text for generating the electricity report;
[0040] The report topic and data description information of the power report to be generated are extracted from the power report generation requirement text; the data description information is used to describe the data that the power report to be generated needs to analyze.
[0041] From multiple power report analysis items in a pre-built power report knowledge base, at least one initial analysis item matching the report topic is determined, an initial report outline is obtained, and the initial report outline is displayed; the power report knowledge base is built based on sample power reports;
[0042] In response to editing and confirming the initial report outline, a target report outline is obtained; the target report outline includes at least one target analysis item.
[0043] Based on the target report outline and the data description information, obtain the target power data corresponding to each target analysis item from the power database;
[0044] Based on the target report outline and the target power data corresponding to each target analysis item, a target power report is generated and displayed.
[0045] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0046] Obtain the requirement text for generating the electricity report;
[0047] The report topic and data description information of the power report to be generated are extracted from the power report generation requirement text; the data description information is used to describe the data that the power report to be generated needs to analyze.
[0048] From multiple power report analysis items in a pre-built power report knowledge base, at least one initial analysis item matching the report topic is determined, an initial report outline is obtained, and the initial report outline is displayed; the power report knowledge base is built based on sample power reports;
[0049] In response to editing and confirming the initial report outline, a target report outline is obtained; the target report outline includes at least one target analysis item.
[0050] Based on the target report outline and the data description information, obtain the target power data corresponding to each target analysis item from the power database;
[0051] Based on the target report outline and the target power data corresponding to each target analysis item, a target power report is generated and displayed.
[0052] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0053] Obtain the requirement text for generating the electricity report;
[0054] The report topic and data description information of the power report to be generated are extracted from the power report generation requirement text; the data description information is used to describe the data that the power report to be generated needs to analyze.
[0055] From multiple power report analysis items in a pre-built power report knowledge base, at least one initial analysis item matching the report topic is determined, an initial report outline is obtained, and the initial report outline is displayed; the power report knowledge base is built based on sample power reports;
[0056] In response to editing and confirming the initial report outline, a target report outline is obtained; the target report outline includes at least one target analysis item.
[0057] Based on the target report outline and the data description information, obtain the target power data corresponding to each target analysis item from the power database;
[0058] Based on the target report outline and the target power data corresponding to each target analysis item, a target power report is generated and displayed.
[0059] The aforementioned power report generation method, apparatus, computer equipment, computer-readable storage medium, and computer program product, firstly, based on the report topic extracted from the power report generation requirement text and the power report knowledge base constructed from sample power reports, achieve rapid matching of initial analysis items and automatic generation of the initial outline. This eliminates the need to build a report framework from scratch, significantly reducing the time spent on outline preparation. Simultaneously, the initial outline supports editing and confirmation operations, preserving adjustment space and ensuring that the report generation process proceeds in the correct direction. Then, based on the target report outline and data description information, it automatically retrieves the corresponding target power data from the power database, replacing... This process replaces the tedious manual data screening and organization of traditional methods, reducing time wasted in data acquisition and improving accuracy. Next, by generating target power reports based on target analysis items and corresponding target power data, it achieves a structured and data-driven presentation of report content. This ensures that the generated target power reports fully leverage the value of power data and accurately reflect core industry issues, while also shortening the time spent writing report content. Based on this process, the generation of power reports effectively addresses the industry's shortage of multi-skilled personnel who understand both power systems and data analysis, thus improving the quality and efficiency of power report writing. Attached Figure Description
[0060] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only one embodiment of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0061] Figure 1 This is a diagram illustrating the application environment of the power report generation method in one embodiment;
[0062] Figure 2 This is a flowchart illustrating a method for generating electricity reports in one embodiment;
[0063] Figure 3 This is a flowchart illustrating the steps involved in building an electricity report knowledge base in one embodiment;
[0064] Figure 4 This is a flowchart illustrating a method for generating electricity metering reports based on a large language model in one embodiment.
[0065] Figure 5 This is a structural block diagram of an electricity report generation device in one embodiment;
[0066] Figure 6 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0067] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0068] It is understood that terms such as "first" and "second" in this application are used only to distinguish similar objects and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. The term "connection" in the embodiments of this application refers to various connection methods, such as direct or indirect connections, to achieve communication between devices; this application does not impose any limitations on this.
[0069] It is understandable that "at least one" refers to one or more, while "multiple" refers to two or more.
[0070] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising / including” or “having,” etc., specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.
[0071] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0072] The power report generation method provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, server 102 communicates with terminal 104 via a network. A data storage system can store the data that server 102 needs to process. This data storage system can be integrated onto server 102 or located on a cloud or other network server. Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Server 102 serves as the backend server for the power report generation platform. The power report generation platform includes a power report generation model, which is fine-tuned based on a large language model. Terminal 104 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, projection devices, etc. Terminal 104 is used to run the application program of the power report generation platform.
[0073] For example, firstly, server 102 obtains the power report generation requirement text through terminal 104; then, server 102 extracts the report topic and data description information of the power report to be generated from the power report generation requirement text; the data description information is used to describe the data that the power report to be generated needs to analyze; next, the server determines at least one initial analysis item that matches the report topic from multiple power report analysis items in a pre-built power report knowledge base, obtains an initial report outline, and displays the initial report outline through terminal 104; the power report knowledge base is built based on sample power reports; then, in response to editing and confirmation operations on the initial report outline, server 102 obtains the target report outline; the target report outline includes at least one target analysis item; next, based on the target report outline and data description information, server 102 obtains the target power data corresponding to each target analysis item from the power database; finally, server 102 generates the target power report according to the target report outline and the target power data corresponding to each target analysis item, and displays the target power report through terminal 104.
[0074] In one embodiment, such as Figure 2 As shown, a method for generating electricity reports is provided, which can be applied to... Figure 1 Taking a server as an example, it can be understood that this method can also be applied to a terminal, and can also be applied to a system that includes both a server and a terminal, and is implemented through the interaction between the server and the terminal. The method includes the following steps:
[0075] Step S202: Obtain the power report generation requirement text.
[0076] The power report generation requirement text is used to describe at least the report topic of the power report to be generated and the data that the power report needs to analyze; for example, the power report generation requirement text is natural language text input by the user.
[0077] The server is the backend server of the power report generation platform, and the terminal is used to run the application of the power report generation platform. The power report generation platform includes a power report generation model, which is obtained by fine-tuning a large language model.
[0078] In this step, when a user needs to generate an electricity report through the electricity report generation platform, they can input natural language text describing the electricity report generation requirements on the electricity report generation platform running on the terminal. The server will use the natural language text input by the user as the electricity report generation requirement text.
[0079] In practical applications, the electricity report to be generated is an electricity metering report.
[0080] Step S204: Extract the report topic and data description information of the power report to be generated from the power report generation requirement text.
[0081] The data description information is used to describe the data that needs to be analyzed in the power report to be generated; for example, the data description information includes at least one of the following: data items, time range, and location range.
[0082] In this step, the server inputs the power report generation requirement text into the power report generation model, and uses the semantic understanding capability of the power report generation model to extract the report topic and data description information from the power report generation requirement text.
[0083] Step S206: From multiple power report analysis items in the pre-built power report knowledge base, determine at least one initial analysis item that matches the report topic, obtain the initial report outline, and display the initial report outline.
[0084] The power report knowledge base is constructed based on multiple sample power reports. In practical applications, the power report knowledge base includes at least multiple power report analysis items extracted from multiple sample power reports.
[0085] The initial report outline includes each initial analysis item; each analysis item refers to an analysis point, and analysis items can be nested hierarchically.
[0086] In this step, the server, based on the semantic understanding capability of the power report generation model, determines the power report analysis item that matches the report topic from multiple power report analysis items in the power report knowledge base as the initial analysis item, and organizes the order and hierarchical structure between the initial analysis items based on the text generation capability of the power report generation model to obtain the initial report outline; then, the server returns the initial report outline to the terminal and displays the initial report outline through the power report generation platform running on the terminal.
[0087] Step S208: In response to the editing and confirmation operations on the initial report outline, the target report outline is obtained.
[0088] The editing operation includes at least one of the following: adding, modifying, and deleting. Adding refers to manually adding an analysis item, modifying refers to manually modifying the content or order of the analysis item. The content of the analysis item includes its textual description and hierarchical structure. For example, the textual description is the title corresponding to the analysis item. Deleting refers to manually deleting the initial report outline.
[0089] The target report outline includes at least one target analysis item.
[0090] In this step, the user can edit and confirm the initial report outline displayed on the terminal. In response to the user's editing and confirmation operations, the terminal obtains a target report outline including at least one target analysis item and returns it to the server.
[0091] Furthermore, the terminal can also display the target report outline through the running power report generation platform.
[0092] Step S210: Based on the target report outline and data description information, obtain the target power data corresponding to each target analysis item from the power database.
[0093] Among them, the target power data corresponding to the target analysis item refers to the power data that the target analysis item needs to analyze specifically.
[0094] In this step, the server determines the data query information for each target analysis item in the target report outline based on the target report outline and data description information, and retrieves the target power data corresponding to each target analysis item from the power database based on the data query information for each target analysis item.
[0095] Among them, data query information is used to characterize data query conditions.
[0096] Step S212: Generate and display the target power report based on the target report outline and the target power data corresponding to each target analysis item.
[0097] In this step, the server inputs the target report outline and the target power data corresponding to each target analysis item into the power report generation model. Using the semantic understanding and text generation capabilities of the power report generation model, the server generates the target power report. Then, the server returns the target power report to the terminal and displays the target power report through the power report generation platform running on the terminal.
[0098] In practical applications, the target power report is the power metering report.
[0099] In the aforementioned method for generating power reports, firstly, based on the report theme extracted from the power report generation requirement text and the power report knowledge base constructed from sample power reports, the initial analysis items are quickly matched and the initial outline is automatically generated. This eliminates the need to build a report framework from scratch, significantly reducing the time spent on outline preparation. Simultaneously, the initial outline supports editing and confirmation, preserving adjustment space and ensuring the report generation process proceeds in the correct direction. Secondly, based on the target report outline and data description information, the corresponding target power data is automatically retrieved from the power database, replacing the tedious traditional manual data screening and organization. This not only reduces the time wasted on data acquisition but also improves the accuracy of data acquisition. Thirdly, a target power report is generated through the target analysis items and corresponding target power data, achieving a structured and data-driven presentation of the report content. This ensures that the generated target power report fully leverages the value of power data and accurately reflects the core issues of the industry, while also shortening the time spent writing the report content. Power report generation based on this process effectively addresses the shortage of compound talents in the industry who understand both power systems and are proficient in data analysis, thus improving the quality and efficiency of power report writing.
[0100] In one embodiment, step S206 above, which involves determining at least one initial analysis item that matches the report topic from multiple power report analysis items in a pre-built power report knowledge base to obtain an initial report outline, includes the following steps: determining the matching degree between the report topic and each power report analysis item; obtaining power report analysis items with a matching degree greater than or equal to a matching degree threshold from multiple power report analysis items to obtain initial analysis items; and combining the initial analysis items to obtain an initial report outline.
[0101] In this embodiment, the power report generation model performs feature extraction on the report topic to obtain a feature vector of the report topic. Then, based on the feature vector of the report topic and the feature vector of each power report analysis item, the power report generation model calculates the matching degree between the report topic and each power report analysis item. Next, the power report generation model selects power report analysis items from multiple power report analysis items whose matching degree is greater than or equal to the matching degree threshold as initial analysis items. Finally, the power report generation model combines the order and hierarchical structure of each initial analysis item to obtain an initial report outline.
[0102] For example, the power report knowledge base also stores the analysis approach information and data summary of the data to be analyzed for each power report analysis item; the analysis approach information of the power report analysis item is used to characterize the analysis approach of the power report analysis item, and its form can be text, mind map, logic diagram, etc. Furthermore, in addition to the analysis approach, the analysis approach information can also include example data and example analysis text of the example data; the feature vector of the power report analysis item is obtained based on at least one of the power report analysis item, its analysis approach information, and the data summary.
[0103] For example, the power report generation requirement text also includes the report type. Different report types have different matching thresholds. When extracting the report topic and data description information, the power report generation model can also extract the report type, and when obtaining the initial analysis items, it obtains the initial analysis items based on the matching threshold corresponding to the report type. For example, the report types are divided into general reports and special reports. The matching threshold for general reports is 0.5, and the matching threshold for special reports is 0.8.
[0104] In this embodiment, the report topics extracted from the power report generation requirement text and the power report knowledge base built based on sample power reports enable rapid matching of initial analysis items and automatic generation of the initial outline. This eliminates the need to build a report framework from scratch and significantly reduces the time spent on outline preparation.
[0105] In one embodiment, the power report knowledge base also stores a data summary of the data that needs to be analyzed for each power report analysis item. The data summary is used to provide a general description of the data that needs to be analyzed for each power report analysis item.
[0106] Step S210 above, based on the target report outline and data description information, obtains the target power data corresponding to each target analysis item from the power database, including the following steps: for each target analysis item in the target report outline, the data description information and the target data summary of the target analysis item are combined into the data query information of the target analysis item; the data query information is used to query the power database to obtain the target power data corresponding to the target analysis item.
[0107] The target data summary is a data summary of the power report analysis item corresponding to the target analysis item in the power report knowledge base. For example, each target analysis item includes a first analysis item and a second analysis item. The first analysis item includes an initial analysis item that has not been modified or deleted, and the second analysis item includes at least one of the newly added analysis items. Further, depending on whether the content has been modified, the modified initial analysis item also includes an initial analysis item with modified content and an initial analysis item with unmodified content. If the target analysis item is an initial analysis item with unmodified content in the first analysis item or the second analysis item, then the power report analysis item corresponding to the target analysis item is the initial analysis item corresponding to the target analysis item. If the target analysis item is a newly added analysis item or an initial analysis item with modified content in the second analysis item, then the power report analysis item corresponding to the target analysis item is the power report analysis item that best matches the target analysis item among multiple power report analysis items.
[0108] In this embodiment, for each target analysis item in the target report outline, the server combines the data description information and the target data summary of the target analysis item into the data query information of the target analysis item, and uses the data query information as the query condition to query the power database to find the power data that matches the data query information as the target power data corresponding to the target analysis item.
[0109] In this embodiment, the corresponding target power data is automatically retrieved from the power database based on the target report outline and data description information, replacing the tedious operation of traditional manual data screening and sorting. This not only reduces the time loss of data acquisition but also improves the accuracy of data acquisition.
[0110] In one embodiment, the power report knowledge base also stores the analysis approach information for each power report analysis item; the analysis approach information for the power report analysis item is used to characterize the analysis approach of the power report analysis item, and its form can be text, mind map, logic diagram, etc. Furthermore, in addition to the analysis approach, the analysis approach information can also include example data and example analysis text of the example data.
[0111] Step S212 above generates a target power report based on the target report outline and the target power data corresponding to each target analysis item. This includes the following steps: For each target analysis item, the target power data of the target analysis item is analyzed according to the target analysis idea information of the target analysis item to obtain the analysis text under the target analysis item; According to each target analysis item in the target report outline, the analysis texts corresponding to each target analysis item are combined to obtain the target power report.
[0112] The target analysis approach information refers to the analysis approach information of the power report analysis item corresponding to the target analysis item in the power report knowledge base. For example, each target analysis item includes a first analysis item and a second analysis item. The first analysis item includes an initial analysis item that has not been modified or deleted, and the second analysis item includes at least one of the newly added analysis items. Further, according to whether the content has been modified, the modified initial analysis item also includes an initial analysis item with modified content and an initial analysis item with unmodified content. If the target analysis item is an initial analysis item with unmodified content in the first analysis item or the second analysis item, then the power report analysis item corresponding to the target analysis item is the initial analysis item corresponding to the target analysis item. If the target analysis item is a newly added analysis item or an initial analysis item with modified content in the second analysis item, then the power report analysis item corresponding to the target analysis item is the power report analysis item that best matches the target analysis item among multiple power report analysis items.
[0113] In this embodiment, for each target analysis item, the power report generation model analyzes the target power data of the target analysis item according to the target analysis idea information of the target analysis item, and obtains the analysis text under the target analysis item; then, according to the order and hierarchical structure of each target analysis item in the target report outline, the analysis text corresponding to each target analysis item is combined to obtain the target power report.
[0114] For example, the server can generate the analysis text for each target analysis item in parallel or sequentially.
[0115] In this embodiment, a target power report is generated by analyzing target items and corresponding target power data. This achieves a structured and data-driven presentation of the report content, ensuring that the generated target power report can fully explore the value of power data and accurately reflect the core issues of the industry. At the same time, it also shortens the time spent writing the report content.
[0116] In one embodiment, such as Figure 3 As shown, the electricity report generation method provided in this application further includes the following steps for constructing an electricity report knowledge base:
[0117] Step S302: Obtain multiple sample power reports.
[0118] Step S304: Using a large language model, extract multiple power report analysis items, data summaries of the data to be analyzed for each power report analysis item, and analysis idea information from multiple sample power reports.
[0119] Step S306: Construct an electricity report knowledge base based on each electricity report analysis item and its corresponding data summary and analysis approach information.
[0120] In one embodiment, step S208 above, in response to the editing and confirmation operations of the initial report outline, to obtain the target report outline, includes the following steps: in response to the editing operation of the initial report outline, obtaining the edited report outline and displaying the edited report outline; in response to the confirmation operation of the edited report outline, obtaining the target report outline.
[0121] The editing operation includes at least one of the following: adding, modifying, and deleting. Adding refers to manually adding an analysis item, modifying refers to manually modifying the content or order of the analysis item. The content of the analysis item includes its textual description and hierarchical structure. For example, the textual description is the title corresponding to the analysis item. Deleting refers to manually deleting the initial report outline.
[0122] In this embodiment, in response to the user's editing operation on the initial report outline, the terminal obtains the edited report outline; in response to the user's confirmation operation on the edited report outline, the terminal obtains the target report outline and returns it to the server.
[0123] In this embodiment, the initial outline supports editing and confirmation operations, preserving room for personalized adjustments.
[0124] In one embodiment, after obtaining the target report outline in step S208 above, the following step is further included: receiving the power text uploaded for the target report outline.
[0125] Step S210 above, which involves obtaining the target power data corresponding to each target analysis item from the power database based on the target report outline and data description information, includes the following steps: obtaining the target power data corresponding to each target analysis item from the power database and power text based on the target report outline and data description information.
[0126] In this embodiment, after the target report outline is displayed on the terminal, if the user needs to upload additional information to supplement the target report outline, they can upload the corresponding power text to the server through the power report generation platform running on the terminal. The server receives the power text uploaded by the user and, for each target analysis item in the target report outline, combines the data description information and the target data summary of the target analysis item into the data query information for that target analysis item. Using the data query information as the query condition, the server queries the power database and the power text to find the power data that matches the data query information as the target power data corresponding to that target analysis item.
[0127] In this embodiment, users can upload more targeted power-related text to facilitate more accurate acquisition of target power data.
[0128] In one embodiment, the server periodically updates the power report database and the power database.
[0129] To more clearly illustrate the power report generation method provided in the embodiments of this application, a specific embodiment is used below to describe the power report generation method in detail. However, it should be understood that the embodiments of this application are not limited thereto. Figure 4 As shown, in one embodiment, this application also provides a method for generating electricity metering reports based on a large language model, specifically including the following steps:
[0130] 1. Using a large language model, the system receives user-inputted electricity metering reports and generates the required natural language text.
[0131] 2. Using a large language model, extract the report topic and data description information from the natural language text of the electricity metering report generation requirements.
[0132] 3. Based on relevance calculation, at least one initial analysis item matching the report topic is determined from multiple power report analysis items in the pre-built power report knowledge base, and an initial report outline is obtained and displayed; the power report knowledge base also stores the analysis idea information and data summary of the data to be analyzed for each power report analysis item.
[0133] 4. In response to editing and confirming the initial report outline, a target report outline including at least one target analysis item is obtained.
[0134] 5. Receive power text uploaded by users as supplementary information to the target report outline through a large language model.
[0135] 6. Based on the target data summary and data description information corresponding to each target analysis item in the power report knowledge base, query the target power data corresponding to each target analysis item in the power database and the supplementary uploaded power text.
[0136] 7. Input the target analysis approach information and target power data corresponding to each target analysis item in the power report knowledge base into the large language model, and generate the analysis text under each target analysis item through the large language model.
[0137] 8. Organize the analysis text corresponding to each target analysis item according to the order and hierarchical structure of each target analysis item in the target report outline to obtain the target power metering report.
[0138] In related technologies, the traditional writing model for electricity metering reports is no longer suitable for the explosive growth of data and the need for refined decision-making, mainly facing the following core difficulties:
[0139] (i) Inefficient and limited data processing: Electricity metering data is multi-source and heterogeneous. Traditional methods rely on manual screening and integration of data, which not only has a long processing cycle, but also makes it difficult to achieve in-depth correlation analysis of data from multiple business systems. This results in insufficient coverage and accuracy of report data, which cannot fully support accurate decision-making.
[0140] (II) High professional threshold and expensive human resources: Writing electricity metering reports requires the integration of professional knowledge of the power system, data analysis capabilities, and industry insights. However, there is a shortage of compound talents who are proficient in both electricity metering business and data interpretation, which restricts the quality and efficiency of report writing. A single high-quality report often requires multi-stage collaboration, including "data analysts extracting features - business experts interpreting patterns - writers integrating and presenting," which is not only costly in terms of communication and cumbersome in process, but also prone to data interpretation bias or industry logic omissions due to limitations in human experience. This is especially true when dealing with complex scenarios such as identifying covert electricity theft patterns and analyzing grid-connected metering of new energy sources, making it difficult to guarantee the professionalism and reliability of the conclusions.
[0141] (iii) Report generation is delayed and lacks dynamic adaptability: Traditional report writing models are mainly based on periodic static generation, relying on manual data verification, logical sorting and content organization. There is a significant time lag between data collection and report output, which makes it impossible to respond quickly to real-time scenarios such as abnormal fluctuations in electricity consumption and sudden load changes. At the same time, different application scenarios have different requirements for the dimensions and depth of reports.
[0142] (iv) Insufficient knowledge integration and weak decision support: The power metering industry has accumulated a large amount of unstructured knowledge resources such as historical reports, technical standards, and policy documents, but these have not yet formed a knowledge system that can be efficiently reused. Traditional writing methods make it difficult to organically integrate these implicit knowledge with real-time data, resulting in reports lacking in-depth extraction of industry rules and trend prediction.
[0143] In this embodiment, firstly, an interactive and editable intelligent outline intelligently constructs a logically clear and structurally rigorous analytical framework for the user. The user can adjust this framework at a macro level, add or delete paragraphs, and even inject external information, ensuring that the report generation process proceeds in the right direction and fundamentally avoiding problems such as content deviating from the topic or logical inconsistencies. Secondly, by constructing a power report database, each analytical item, along with its corresponding data summary and analytical approach, ensures the reliability and completeness of the analytical items. Thirdly, it achieves a leap from "acquiring data" to "forming insights," and from "generating text" to "building analysis," greatly enhancing the report's practical value and delivery efficiency.
[0144] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0145] Based on the same inventive concept, this application also provides an electricity report generation apparatus for implementing the electricity report generation method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations in one or more embodiments of the electricity report generation apparatus provided below can be found in the limitations of the electricity report generation method described above, and will not be repeated here.
[0146] In one embodiment, such as Figure 5 As shown, an electricity report generation device is provided, including: a text receiving module 502, an information extraction module 504, an outline generation module 506, an outline determination module 508, a data acquisition module 510, and a report generation module 512, wherein:
[0147] The text receiving module 502 is used to obtain the text required for generating the power report.
[0148] The information extraction module 504 is used to extract the report topic and data description information of the power report to be generated from the power report generation requirement text; the data description information is used to describe the data that needs to be analyzed in the power report to be generated.
[0149] The outline generation module 506 is used to determine at least one initial analysis item that matches the report topic from multiple power report analysis items in the pre-built power report knowledge base, and obtain an initial report outline; the power report knowledge base is built based on sample power reports.
[0150] The outline determination module 508 is used to obtain the target report outline in response to the editing and confirmation operations of the initial report outline; the target report outline includes at least one target analysis item.
[0151] The data acquisition module 510 is used to acquire the target power data corresponding to each target analysis item from the power database based on the target report outline and data description information.
[0152] The report generation module 512 is used to generate and display the target power report based on the target report outline and the target power data corresponding to each target analysis item.
[0153] In one embodiment, the outline generation module 506 is further configured to determine the matching degree between the report topic and each power report analysis item; obtain the power report analysis items with a matching degree greater than or equal to the matching degree threshold from multiple power report analysis items to obtain initial analysis items; and combine the initial analysis items to obtain an initial report outline.
[0154] In one embodiment, the power report knowledge base also stores a data summary of the data that needs to be analyzed for each power report analysis item.
[0155] The data acquisition module 510 is also used to combine the data description information and the target data summary of the target analysis item into the data query information of the target analysis item for each target analysis item in the target report outline; the target data summary is the data summary of the power report analysis item corresponding to the target analysis item in the power report knowledge base; and to query the power database according to the data query information to obtain the target power data corresponding to the target analysis item.
[0156] In one embodiment, the power report knowledge base also stores the analysis approach information for each power report analysis item;
[0157] The report generation module 512 is also used to analyze the target power data of each target analysis item according to the target analysis idea information of the target analysis item, and obtain the analysis text under the target analysis item; the target analysis idea information is the analysis idea information of the power report analysis item corresponding to the target analysis item in the power report knowledge base; according to each target analysis item in the target report outline, the analysis text corresponding to each target analysis item is combined to obtain the target power report.
[0158] In one embodiment, the outline determination module 508 is further configured to obtain and display an edited report outline in response to an editing operation on the initial report outline; the editing operation includes at least one of an add operation, a delete operation, and a modify operation; and to obtain a target report outline in response to a confirmation operation on the edited report outline.
[0159] In one embodiment, the text receiving module 502 is further configured to receive power text uploaded in response to the target report outline;
[0160] The data acquisition module 510 is also used to acquire target power data corresponding to each target analysis item from the power database and power text based on the target report outline and data description information.
[0161] Each module in the aforementioned power report generation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.
[0162] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows. Figure 6 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores electricity report knowledge and electricity data. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network connection. When executed by the processor, the computer program implements an electricity report generation method.
[0163] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0164] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0165] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.
[0166] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0167] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0168] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0169] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for generating electricity reports, characterized in that, The method includes: Obtain the requirement text for generating the electricity report; The report topic and data description information of the power report to be generated are extracted from the power report generation requirement text; the data description information is used to describe the data that the power report to be generated needs to analyze. From multiple power report analysis items in a pre-built power report knowledge base, at least one initial analysis item matching the report topic is determined, an initial report outline is obtained, and the initial report outline is displayed; the power report knowledge base is built based on sample power reports; In response to editing and confirming the initial report outline, a target report outline is obtained; the target report outline includes at least one target analysis item. Based on the target report outline and the data description information, obtain the target power data corresponding to each target analysis item from the power database; Based on the target report outline and the target power data corresponding to each target analysis item, a target power report is generated and displayed.
2. The method according to claim 1, characterized in that, The process involves identifying at least one initial analysis item matching the report topic from multiple power report analysis items in a pre-built power report knowledge base to obtain an initial report outline, including: Determine the degree of match between the report topic and each of the power report analysis items; From the multiple power report analysis items, obtain the power report analysis items with a matching degree greater than or equal to the matching degree threshold to obtain the initial analysis items; The initial analysis items are combined to obtain the initial report outline.
3. The method according to claim 1, characterized in that, The power report knowledge base also stores a data summary of the data that needs to be analyzed for each power report analysis item; The step of obtaining target power data corresponding to each target analysis item from the power database based on the target report outline and the data description information includes: For each target analysis item in the target report outline, the data description information and the target data summary of the target analysis item are combined to form the data query information of the target analysis item; the target data summary is the data summary of the power report analysis item corresponding to the target analysis item in the power report knowledge base. The target power data corresponding to the target analysis item is obtained by querying the power database based on the data query information.
4. The method according to claim 1, characterized in that, The power report knowledge base also stores the analysis approach information for each power report analysis item; The step of generating a target power report based on the target report outline and the target power data corresponding to each target analysis item includes: For each target analysis item, the target power data of the target analysis item is analyzed according to the target analysis approach information of the target analysis item to obtain the analysis text under the target analysis item; the target analysis approach information is the analysis approach information of the power report analysis item corresponding to the target analysis item in the power report knowledge base; The target power report is obtained by combining the analysis texts corresponding to each target analysis item according to the target report outline.
5. The method according to claim 1, characterized in that, The process of obtaining the target report outline in response to editing and confirming the initial report outline includes: In response to the editing operation on the initial report outline, an edited report outline is obtained and displayed; the editing operation includes at least one of the following: adding, deleting, and modifying. In response to the confirmation operation of the edited report outline, the target report outline is obtained.
6. The method according to any one of claims 1 to 5, characterized in that, After receiving the outline of the target report, it also includes: Receive the power text uploaded in response to the target report outline; The step of obtaining target power data corresponding to each target analysis item from the power database based on the target report outline and the data description information includes: Based on the target report outline and the data description information, the target power data corresponding to each target analysis item is obtained from the power database and the power text.
7. An electricity report generation device, characterized in that, The device includes: The text receiving module is used to acquire the power report generation requirement text; the power report generation requirement text; The information extraction module is used to extract the report topic and data description information of the power report to be generated from the power report generation requirement text; the data description information is used to describe the data that needs to be analyzed in the power report to be generated. The outline generation module is used to determine at least one initial analysis item that matches the report topic from multiple power report analysis items in a pre-built power report knowledge base, and obtain an initial report outline; the power report knowledge base is built based on sample power reports; An outline determination module is used to obtain a target report outline in response to editing and confirmation operations on the initial report outline; the target report outline includes at least one target analysis item; The data acquisition module is used to acquire target power data corresponding to each target analysis item from the power database based on the target report outline and the data description information; The report generation module is used to generate and display a target power report based on the target report outline and the target power data corresponding to each target analysis item.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.