Report content automatic generation method and device and electronic equipment
By obtaining real-time report content and using artificial intelligence models to automatically generate content to be completed, the problem of inefficiency of traditional methods is solved, dynamic analysis and automatic completion of report content is realized, and writing efficiency and content quality are improved.
Patent Information
- Application Number
- CN202411701353.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-26
- Publication Date
- 2025-03-25
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional text analysis and data completion methods are inefficient and prone to errors, making it difficult to dynamically analyze the writing context and automatically complete the report content in a timely and automatic manner.
By obtaining the report content input in real time, we judge whether there is a to-complete label, and use the artificial intelligence model to automatically generate the to-complete report content and its data source path in combination with the latest report content, and show it to the user, ask whether it is accepted, and finally replace the to-complete label to generate the report content.
It realizes dynamic analysis of the writing context during the writing process and timely and automatically completes the report content, improves creative fluency and content quality, and improves work efficiency and user experience.
Smart Images

Figure CN119692312A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing, and in particular to a method, device and electronic equipment for automatically generating report content. Background Art
[0002] With the rapid development of information technology and the explosive growth of data volume, how to efficiently process, analyze and utilize data has become a major challenge faced by all walks of life.
[0003] Traditional text analysis and data completion methods mainly rely on manual review, keyword search, and simple rule matching, which are not only inefficient but also prone to errors.
[0004] How to dynamically analyze the writing context and timely and automatically complete the report content is crucial to improving document quality, speeding up writing, and ensuring the accuracy and completeness of data.
[0005] Therefore, a method, device and electronic device for automatically generating report content are proposed. Summary of the invention
[0006] The present specification provides a method, device and electronic device for automatically generating report content, which realizes dynamic analysis of writing context during the writing process and automatically completes the report content in a timely manner.
[0007] This specification provides a method for automatically generating report content, including:
[0008] Get report content entered in real time;
[0009] Determine whether there is a to-be-completed mark in the report content input in real time;
[0010] When the to-be-completed mark exists in the report content input in real time, the user continues to input the report content in real time until the to-be-completed report content and its data source path corresponding to the to-be-completed mark are automatically generated based on the artificial intelligence model in combination with the latest report content;
[0011] Displaying the content of the report to be completed and its data source path to the user, and asking the user whether to accept the content of the report to be completed;
[0012] When the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed to generate report content.
[0013] Optionally, the automatic generation of the report content to be completed corresponding to the to-be-completed identifier and its data source path based on the artificial intelligence model combined with the latest report content includes:
[0014] Determine the type of the identifier to be completed;
[0015] When the type of the to-be-completed identifier is a non-calculated to-be-completed identifier:
[0016] Generate an SQL command based on the to-be-completed identifier;
[0017] The report content to be completed is prompted in a report database based on the SQL command, and the data source path is determined.
[0018] Optionally, the automatic generation of the report content to be completed corresponding to the to-be-completed identifier and its data source path based on the artificial intelligence model combined with the latest report content also includes:
[0019] When the type of the completion identifier is a calculated to-be-completed identifier:
[0020] Determine a calculation relationship based on the identifier to be completed;
[0021] Acquiring basic data in the report database according to the calculation relationship;
[0022] The calculation relationship is executed based on the basic data to obtain the report content to be completed, and the data source path is the data source of the basic data.
[0023] Optionally, presenting the content of the report to be completed and its data source path to the user includes:
[0024] The completed report content and its data source path are displayed to the user by marking them with eye-catching colors and / or pop-up windows.
[0025] Optionally, also include:
[0026] When the user does not accept the content of the report to be completed, the user modifies the content of the report to be completed, and updates the modified content of the report to be completed to the report database.
[0027] Optionally, when the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed, and after the report content is generated, the report carrying the to-be-completed identifier is stored as a report template in a report template library.
[0028] Optionally, also include:
[0029] Get the report template;
[0030] After the user adjusts the content of the report template, the to-be-completed identifiers are batch-refreshed and replaced based on the adjusted content, and new report content is automatically generated.
[0031] This specification provides a device for automatically generating report content, including:
[0032] An acquisition module is used to acquire report content input in real time;
[0033] A judgment module, used to judge whether there is a to-be-completed mark in the report content input in real time;
[0034] A generation module, for when the to-be-completed mark exists in the report content input in real time, the user continues to input the report content in real time until the to-be-completed report content and its data source path corresponding to the to-be-completed mark are automatically generated based on the artificial intelligence model in combination with the latest report content;
[0035] A display module, used to display the content of the report to be completed and its data source path to the user, and ask the user whether to accept the content of the report to be completed;
[0036] The replacement module is used to replace the to-be-completed identifier based on the to-be-completed report content to generate report content when the user accepts the to-be-completed report content.
[0037] Optionally, the generating module includes:
[0038] Determine the type of the identifier to be completed;
[0039] When the type of the to-be-completed identifier is a non-calculated to-be-completed identifier:
[0040] Generate an SQL command based on the to-be-completed identifier;
[0041] The report content to be completed is prompted in a report database based on the SQL command, and the data source path is determined.
[0042] Optionally, the generating module further includes:
[0043] When the type of the completion identifier is a calculated to-be-completed identifier:
[0044] Determine a calculation relationship based on the identifier to be completed;
[0045] Acquiring basic data in the report database according to the calculation relationship;
[0046] The calculation relationship is executed based on the basic data to obtain the report content to be completed, and the data source path is the data source of the basic data.
[0047] Optionally, the display module includes:
[0048] The completed report content and its data source path are displayed to the user by marking them with eye-catching colors and / or pop-up windows.
[0049] Optionally, also include:
[0050] When the user does not accept the content of the report to be completed, the user modifies the content of the report to be completed, and updates the modified content of the report to be completed to the report database.
[0051] Optionally, when the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed, and after the report content is generated, the report carrying the to-be-completed identifier is stored as a report template in a report template library.
[0052] Optionally, also include:
[0053] Get the report template;
[0054] After the user adjusts the content of the report template, the to-be-completed identifiers are batch-refreshed and replaced based on the adjusted content, and new report content is automatically generated.
[0055] This specification also provides an electronic device, wherein the electronic device includes:
[0056] processor; and,
[0057] A memory storing computer executable instructions, which when executed cause the processor to perform any of the above methods.
[0058] The present specification also provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, any of the above methods is implemented.
[0059] In the present invention, the function of dynamically analyzing the writing context and automatically completing the report content in time during the writing process is realized, which not only enhances the fluency of creation and the quality of content, but also improves work efficiency and enhances user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1 A schematic diagram of the principle of a method for automatically generating report content provided in an embodiment of this specification;
[0062] Figure 2 A schematic diagram of the structure of a device for automatically generating report content provided in an embodiment of this specification;
[0063] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification;
[0064] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification. DETAILED DESCRIPTION
[0065] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.
[0066] The following is combined with Figure 1-4 The exemplary embodiments of the present invention are described more fully. However, the exemplary embodiments can be implemented in various forms, and it should not be understood that the present invention is limited to the embodiments set forth herein. On the contrary, providing these exemplary embodiments can make the present invention more comprehensive and complete, and it is more convenient to fully convey the inventive concept to those skilled in the art. The same reference numerals in the figures represent the same or similar elements, components or parts, and thus their repeated description will be omitted.
[0067] Under the premise of being consistent with the technical concept of the present invention, the features, structures, characteristics or other details described in a specific embodiment do not exclude that they can be combined in one or more other embodiments in a suitable manner.
[0068] In the description of specific embodiments, the features, structures, characteristics or other details described in the present invention are intended to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can practice the technical solutions of the present invention without one or more of the specific features, structures, characteristics or other details.
[0069] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0070] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0071] The term "and / or" or "and / or" includes all combinations of any one or more of the associated listed items.
[0072] Figure 1 A schematic diagram of the principle of a method for automatically generating report content provided in an embodiment of this specification, the method may include:
[0073] S110: Acquire report content input in real time;
[0074] In the specific implementation of this specification, for most reporting systems based on Web or desktop applications, users can input report content in real time through a graphical user interface (GUI), which usually includes multiple input elements such as text fields, drop-down selection boxes, date pickers, and rich text editors.
[0075] S120: Determine whether there is a to-be-completed mark in the report content input in real time;
[0076] S130: When the to-be-completed mark exists in the report content input in real time, the user continues to input the report content in real time until the to-be-completed report content and its data source path corresponding to the to-be-completed mark are automatically generated based on the artificial intelligence model in combination with the latest report content;
[0077] In the specific implementation of this specification, the identifier to be completed includes a prompt $. At present, placeholders are widely used. Placeholders generally have fixed target data and data sources in advance in the report template. The placeholder Key and Value are uniquely corresponding. The determination of the placeholder Key requires special management by the data administrator, and the new report template (calling the indicator placeholder) also requires professional administrators or programmers to produce.
[0078] Prompts are a process of finding target data in multiple data sources using artificial intelligence models. Any user is looking for indicators, determining indicators, and creating their own templates during the writing process. Placeholders are just a subset of the many functions of smart prompts. The user-friendliness of prompts is significantly different, and there is a qualitative leap in the efficiency of template creation.
[0079] When completing the content, record and generate the source path of the content for user verification and tracing. Display the data source path in the report in an easy-to-understand way, such as through links, annotations or graphical representations.
[0080] Optionally, the S130 includes:
[0081] Determine the type of the identifier to be completed;
[0082] When the type of the to-be-completed identifier is a non-calculated to-be-completed identifier:
[0083] Generate an SQL command based on the to-be-completed identifier;
[0084] The report content to be completed is prompted in a report database based on the SQL command, and the data source path is determined.
[0085] In the specific implementation manner of this specification, non-computational tags to be completed are data that can be directly retrieved from a data source such as a database without the need for complex calculations or reasoning.
[0086] Identify the type of the token to be completed by parsing the text content, format, or predefined rules of the token. This can usually be achieved. For example, you can use a regular expression to match the format of the token and determine its type based on the matching result.
[0087] Optionally, the S130 further includes:
[0088] When the type of the completion identifier is a calculated to-be-completed identifier:
[0089] Determine a calculation relationship based on the identifier to be completed;
[0090] Acquiring basic data in the report database according to the calculation relationship;
[0091] The calculation relationship is executed based on the basic data to obtain the report content to be completed, and the data source path is the data source of the basic data.
[0092] In a specific implementation of the present specification, based on the calculation relationship, determine which basic data needs to be retrieved from the report database. This includes data table names, field names, and any necessary screening conditions. Construct SQL queries or use other database query languages to retrieve basic data from the report based on the determined data requirements. Execute calculation relationships based on the basic data to obtain the report content to be completed. Perform necessary preprocessing on the retrieved basic data, such as type conversion, format adjustment, etc., to ensure that they meet the requirements of the calculation relationship. According to the specific logic or function mapped to it, the calculation relationship is executed on the preprocessed basic data, which involves multiple operations such as numerical calculations, statistical analysis, and logical judgments. Format the calculation results into a format suitable for insertion into the report, which includes number formatting, unit conversion, text description, etc.
[0093] When performing data retrieval, record all data source information used as basic data, including database name, data table name, field name, and possible filtering conditions. Integrate the recorded basic data source information into an easy-to-understand source path. This source path clearly shows which basic data the report content to be completed is based on.
[0094] S140: Displaying the report content to be completed and its data source path to the user, and asking the user whether to accept the report content to be completed;
[0095] In the specific implementation of this specification,
[0096] Optionally, the S140 includes:
[0097] The completed report content and its data source path are displayed to the user by marking them with eye-catching colors and / or pop-up windows.
[0098] In a specific implementation of this specification, colors that contrast sharply with the report background color are used to mark the completed content and data source path. For example, if the report background is white or light gray, bright colors such as blue, green, or orange can be used for marking. Completed content blocks (such as text paragraphs, data tables, charts, etc.) are highlighted using borders, background colors, or highlighted text. Make sure that these colors are not only eye-catching, but also coordinated with the overall style of the report. Maintain consistency in color marking throughout the report. For example, all completed content is marked with the same color or color combination so that users can quickly identify it.
[0099] As the completion content is inserted into the report, a pop-up window containing the completion content and the data source path pops up immediately. This pop-up window should be located near the user's visual focus to ensure that the user can notice it immediately. Provide detailed information about the completion content and the data source path in the pop-up window. This information is presented in a clear and concise manner to avoid redundancy and confusion. Add user interactive elements to the pop-up window, such as accept / reject buttons, edit links, or more information buttons. These elements allow users to accept the completion content, make modifications, or get more information about the data source as needed. Make sure that the pop-up window does not obscure other important parts of the report and does not affect the user's normal operations. If possible, use a closable pop-up window and allow users to reopen it by clicking an area in the report.
[0100] S150: When the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed to generate report content.
[0101] In a specific embodiment of the present specification, after displaying the report content to be completed and the data source path, the user is asked whether to accept the automatically completed content through an obvious prompt (such as a pop-up window, a dialog box or a prompt message on the page). Provide users with clear acceptance and rejection options. These options should be presented in a way that is easy to click or select, such as a button, a check box or a radio button. In addition to acceptance and rejection, additional options can also be provided, such as editing (allowing the user to modify the completed content), re-retrieval (triggering a new data retrieval process) or getting help (providing more information about the completion process or data source). If the user chooses to accept the report content to be completed, it is formally inserted into the report and the subsequent report writing or review process continues. If the user chooses to refuse, it may be necessary to remove the completed content and allow the user to manually enter alternative content or continue to edit the report. If the user chooses to edit, an editing interface or tool is provided to allow the user to modify and customize the completed content.
[0102] Optionally, also include:
[0103] When the user does not accept the content of the report to be completed, the user modifies the content of the report to be completed, and updates the modified content of the report to be completed to the report database.
[0104] In the specific implementation of this specification, it is ensured that the user has sufficient authority to modify the report content to be completed. A real-time preview function is provided during the editing process so that the user can see the effect of the modification. An undo and redo function is provided so that the user can easily undo unsatisfactory changes or re-execute previous operations.
[0105] Once the user's modifications are confirmed (either through a save operation or an audit process), these changes should be updated to the report database. Make sure to keep updates synchronized between the report editor and the report database to avoid data inconsistencies.
[0106] Optionally, after S150, the step further includes: storing the report carrying the to-be-completed identifier as a report template in a report template library.
[0107] In a specific embodiment of this specification, assign a clear, descriptive name to the template and categorize it under appropriate categories or tags as needed. This helps users quickly find and use the required template. Upload the prepared report template to the selected template library. Make sure that all formatting and pending completion indicators of the template are retained during the upload process.
[0108] Optionally, also include:
[0109] Get the report template;
[0110] After the user adjusts the content of the report template, the to-be-completed identifiers are batch-refreshed and replaced based on the adjusted content, and new report content is automatically generated.
[0111] In the specific implementation of this specification, all the to-be-completed identifiers in the template are traversed, and they are replaced with corresponding data according to the mapping relationship. This process should be performed in batches to improve efficiency.
[0112] In the present invention, the function of dynamically analyzing the writing context and automatically completing the report content in time during the writing process is realized, which not only enhances the fluency of creation and the quality of content, but also improves work efficiency and enhances user experience.
[0113] Figure 2 A schematic diagram of a report content automatic generation device provided in an embodiment of this specification, the device may include:
[0114] An acquisition module 10 is used to acquire the report content input in real time;
[0115] A determination module 20, used to determine whether there is a to-be-completed mark in the report content input in real time;
[0116] A generating module 30, for when the report content input in real time contains the to-be-completed mark, the user continues to input the report content in real time until the to-be-completed report content and its data source path corresponding to the to-be-completed mark are automatically generated based on the artificial intelligence model in combination with the latest report content;
[0117] The display module 40 is used to display the content of the report to be completed and its data source path to the user, and ask the user whether to accept the content of the report to be completed;
[0118] The replacement module 50 is used to replace the to-be-completed identifier based on the to-be-completed report content to generate report content when the user accepts the to-be-completed report content.
[0119] Optionally, the generating module 30 includes:
[0120] Determine the type of the identifier to be completed;
[0121] When the type of the to-be-completed identifier is a non-calculated to-be-completed identifier:
[0122] Generate an SQL command based on the to-be-completed identifier;
[0123] The report content to be completed is prompted in a report database based on the SQL command, and the data source path is determined.
[0124] Optionally, the generating module 30 further includes:
[0125] When the type of the completion identifier is a calculated to-be-completed identifier:
[0126] Determine a calculation relationship based on the identifier to be completed;
[0127] Acquiring basic data in the report database according to the calculation relationship;
[0128] The calculation relationship is executed based on the basic data to obtain the report content to be completed, and the data source path is the data source of the basic data.
[0129] Optionally, the display module 40 includes:
[0130] The completed report content and its data source path are displayed to the user by marking them with eye-catching colors and / or pop-up windows.
[0131] Optionally, also include:
[0132] When the user does not accept the content of the report to be completed, the user modifies the content of the report to be completed, and updates the modified content of the report to be completed to the report database.
[0133] Optionally, when the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed, and after the report content is generated, the report carrying the to-be-completed identifier is stored as a report template in a report template library.
[0134] Optionally, also include:
[0135] Get the report template;
[0136] After the user adjusts the content of the report template, the to-be-completed identifiers are batch-refreshed and replaced based on the adjusted content, and new report content is automatically generated.
[0137] The functions of the device in the embodiment of the present invention have been described in the above method embodiment, so for details not provided in the description of this embodiment, please refer to the relevant description in the above embodiment, and no further description will be given here.
[0138] Based on the same inventive concept, an embodiment of this specification also provides an electronic device.
[0139] The following describes an electronic device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the electronic device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the electronic device embodiment of the present invention can be implemented with reference to the above method or device embodiments.
[0140] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification. Figure 3 The electronic device 300 according to the embodiment of the present invention is described. Figure 3 The electronic device 300 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0141] like Figure 3 As shown, the electronic device 300 is in the form of a general computing device. The components of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different system components (including the storage unit 320 and the processing unit 310), a display unit 340, etc.
[0142] The storage unit stores program codes, which can be executed by the processing unit 310, so that the processing unit 310 performs the steps according to various exemplary embodiments of the present invention described in the above processing method section of this specification. For example, the processing unit 310 can perform the following steps: Figure 1 Steps shown.
[0143] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache memory unit 3202 , and may further include a read-only memory unit (ROM) 3203 .
[0144] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0145] Bus 330 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0146] The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable viewers to interact with the electronic device 300, and / or any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 350. Furthermore, the electronic device 300 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) through a network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 through the bus 330. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0147] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the exemplary embodiments described in the present invention can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation method of the present invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (which can be a CD-ROM, USB flash drive, mobile hard disk, etc.) or on a network, including a number of instructions to enable a computing device (which can be a personal computer, server, or network device, etc.) to execute the above method according to the present invention. When the computer program is executed by a data processing device, the computer-readable medium can implement the above method of the present invention, that is: Figure 1 The method shown.
[0148] Figure 4 A schematic diagram of a computer-readable medium provided for an embodiment of this specification.
[0149] accomplish Figure 1The computer program of the method shown can be stored on one or more computer readable media. The computer readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0150] The computer readable storage medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by an instruction execution system, an apparatus, or a device or used in combination with it. The program code contained on the readable storage medium may be transmitted with any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0151] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the viewer computing device, partially on the viewer device, as a stand-alone software package, partially on the viewer computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the viewer computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0152] In summary, the present invention can be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that general data processing devices such as microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and a computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.
[0153] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or electronic device, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0154] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0155] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for automatically generating report content, characterized in that: include: Get report content entered in real time; Determine whether there is a to-be-completed mark in the report content input in real time; When the to-be-completed mark exists in the report content input in real time, the user continues to input the report content in real time until the to-be-completed report content and its data source path corresponding to the to-be-completed mark are automatically generated based on the artificial intelligence model in combination with the latest report content; Displaying the content of the report to be completed and its data source path to the user, and asking the user whether to accept the content of the report to be completed; When the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed to generate report content.
2. The method for automatically generating report content according to claim 1, characterized in that: The method of automatically generating the report content to be completed corresponding to the to-be-completed identifier and its data source path based on the artificial intelligence model and the latest report content includes: Determine the type of the identifier to be completed; When the type of the to-be-completed identifier is a non-calculated to-be-completed identifier: Generate an SQL command based on the to-be-completed identifier; The report content to be completed is prompted in a report database based on the SQL command, and the data source path is determined.
3. The method for automatically generating report content according to claim 2, characterized in that: The method of automatically generating the report content to be completed corresponding to the to-be-completed identifier and its data source path based on the artificial intelligence model and the latest report content also includes: When the type of the completion identifier is a calculated to-be-completed identifier: Determine a calculation relationship based on the identifier to be completed; Acquiring basic data in the report database according to the calculation relationship; The calculation relationship is executed based on the basic data to obtain the report content to be completed, and the data source path is the data source of the basic data.
4. The method for automatically generating report content according to claim 3, characterized in that: The presenting the content of the report to be completed and its data source path to the user includes: The completed report content and its data source path are displayed to the user by marking them with eye-catching colors and / or pop-up windows.
5. The method for automatically generating report content according to claim 4, characterized in that: Also includes: When the user does not accept the content of the report to be completed, the user modifies the content of the report to be completed, and updates the modified content of the report to be completed to the report database.
6. The method for automatically generating report content according to claim 5, characterized in that: When the user accepts the report content to be completed, the to-be-completed identifier is replaced based on the report content to be completed. After the report content is generated, the method further includes: storing the report carrying the to-be-completed identifier as a report template in a report template library.
7. The method for automatically generating report content according to claim 6, characterized in that: Also includes: Get the report template; After the user adjusts the content of the report template, the to-be-completed identifiers are batch-refreshed and replaced based on the adjusted content, and new report content is automatically generated.
8. A device for automatically generating report content, characterized in that: include: An acquisition module is used to acquire report content input in real time; A judgment module, used to judge whether there is a to-be-completed mark in the report content input in real time; A generation module, for when the to-be-completed mark exists in the report content input in real time, the user continues to input the report content in real time until the to-be-completed report content and its data source path corresponding to the to-be-completed mark are automatically generated based on the artificial intelligence model in combination with the latest report content; A display module, used to display the content of the report to be completed and its data source path to the user, and ask the user whether to accept the content of the report to be completed; A replacement module is used to replace the to-be-completed identifier based on the to-be-completed report content to generate report content when the user accepts the to-be-completed report content.
9. An electronic device, wherein: The electronic device includes: processor; and, A memory storing computer executable instructions which, when executed, cause the processor to perform a method according to any one of claims 1-7.
10. A computer-readable storage medium, wherein: The computer-readable storage medium stores one or more programs, and when the one or more programs are executed by a processor, the method of any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
System and method for automatically generating news based on template
CN106021389A
Method for automatically creating user-customized document, apparatus therefor, and server
CN114341863A
Report generation method, device and system and storage medium
CN116089570A
Audit report generation method and device, electronic equipment and nonvolatile storage medium
CN117648925A