Material report generation method and system and related products

By designing client tools and tabulation models, the problem of difficult to generate material reports in the existing technology that are difficult to generate any page and format is solved, and flexible and efficient report generation is achieved to meet the diverse needs of users.

CN120337887APending Publication Date: 2025-07-18KINGDEE SOFTWARE(CHINA) CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510425375.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-02
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

When generating material reports, existing data processing systems are difficult to efficiently meet users' needs for generating reports in any page and non-specific formats, resulting in poor user experience.

Method used

Design client tools, analyze material report generation requests by awakening the client tools, call the data reading plug-in to read data from the material data source, and use the tabulation model to generate reports that meet the tabulation format requirements. The training sample of the tabulation model contains a variety of tabulation format information.

Benefits of technology

It realizes the generation of material reports that meet user needs on any page, reducing the development complexity of report generation and improving system flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120337887A_ABST
    Figure CN120337887A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a material report generation method and system and a related product, and the method designs a client tool for awakening, so that a data reading function of a data reading plug-in and a report generation function of a tabulation model can be called through the client tool no matter which page of a data processing system is currently located, and the data reading function of the data reading plug-in and the report generation function of the tabulation model can be called through the client tool. Therefore, the wide requirements of users for generating related reports on any page are met. Besides, a training sample of the tabulation model contains various tabulation format information used for limiting a material data arrangement pattern, the generalization ability of the large model can be expanded and utilized, and the problem that the data processing system is insufficient in development complexity and flexibility of a report generation function is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of data processing, and in particular, to a method and system for generating a material report and related products. Background Art

[0002] With the development of information technology, there is a vast amount of data in the big data platform. In many cases, staff need to generate relevant reports on this data, such as statistical reports on the ex-factory quantity of a certain type of material in a certain area, the transaction volume of a certain type of product, etc.

[0003] When the current data processing system generates a material report, generally, business personnel need to pre-define the report conditions and formats in advance, and program developers develop programs according to the pre-defined report requirements to implement the required report generation function. Therefore, the report generation function of the current data processing system is fixed at the time of factory delivery. For example, it can only generate a specific format report (such as a bar chart) of certain data within a specified page (such as a material arrangement page) or a specified scenario (such as South China last year); if a user wants to generate a non-specific format report (such as a line chart) of data on other pages, business personnel and program developers need to specifically conduct business development for this, but this obviously cannot efficiently meet a large number of concurrent new generation requests and is likely to affect the user experience. Summary of the Invention

[0004] The embodiments of the present application provide a method and system for generating a material report and related products, which are used to meet the user's need to generate relevant reports for any page.

[0005] In a first aspect, an embodiment of the present application provides a method for generating a material report, including:

[0006] Wake up the client tool to parse the input material report generation request to obtain the material data source and tabulation format requirements defined by the material report generation request;

[0007] Call the data reading plug-in through the client tool to read the material source data required for tabulation from the material data set corresponding to the material data source;

[0008] Input the preset prompt word, the material source data, and the tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; the training samples of the tabulation model include various tabulation format information used to define the arrangement style of material data.

[0009] Optionally, the step of waking up the client tool to parse the input material report generation request to obtain the material data source defined by the material report generation request includes:

[0010] Parse the range meaning keywords in the material report generation request;

[0011] Determine that the material data source is the current material page or the material database of the data processing system according to the meaning of the range meaning keywords; the material database contains data of at least part of the materials associated with the current material page.

[0012] Optionally, the step of the client tool calling the data reading plug-in to read the material source data required for tabulation from the material dataset corresponding to the material data source includes:

[0013] If the material data source is the current material page, call the current page plug-in to read the material source data required for tabulation from the material dataset associated with the current material page;

[0014] If the material data source is the material database, call the global plug-in to read the material source data required for tabulation from the material database; the current page plug-in and the global plug-in operate independently.

[0015] Optionally, the setting process of the client tool includes:

[0016] Set a global shortcut for the client tool that is not restricted by the current material page and / or page data usage conditions of the data processing system, so that the client tool can be awakened and used on any page by operating the global shortcut.

[0017] Optionally, the global shortcut is a floating window or a shortcut icon that is not completely blocked by any page of the data processing system.

[0018] Optionally, if the material report generated by the tabulation model does not meet the tabulation format requirements, the method further includes:

[0019] Construct a target prompt word used to replace the preset prompt word with reference to the tabulation format requirements, and at least return the steps of inputting the preset prompt word, the material source data, and the tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements;

[0020] Alternatively, at least train the tabulation model using the tabulation format requirements to obtain a trained tabulation model for generating a material report that meets the tabulation format requirements.

[0021] When the method described in the first aspect of this application is specifically implemented, the content described in the second aspect of this application can be adopted.

[0022] In a second aspect of the embodiments of the present application, a material report generation system is provided, including: a processing unit and an acquisition unit;

[0023] The processing unit is configured to wake up the client tool to parse the entered material report generation request, and obtain the material data source and tabulation format requirements defined by the material report generation request;

[0024] The acquisition unit is configured to call a data reading plug-in through the client tool to read the material source data required for tabulation from the material dataset corresponding to the material data source;

[0025] The processing unit is further configured to input a preset prompt word, the material source data, and the tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; the training samples of the tabulation model include various tabulation format information used to define the arrangement style of material data.

[0026] In a third aspect of the embodiments of the present application, an electronic device is provided, including: a processor and a memory;

[0027] The processor is configured to communicate with the memory and execute the instructions in the memory to implement the method described in the first aspect or any specific implementation manner of the first aspect of the embodiments of the present application.

[0028] In a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided. The readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described in the first aspect or any specific implementation manner of the first aspect of the embodiments of the present application is implemented.

[0029] In a fifth aspect of the embodiments of the present application, a computer program product is provided. The computer program product includes computer instructions, and when the computer instructions are executed by a processor, the method described in the first aspect or any specific implementation manner of the first aspect of the embodiments of the present application is implemented.

[0030] From the above technical solutions, it can be seen that the embodiments of the present application have at least the following advantages:

[0031] The embodiments of the present application are designed to wake up the client tool, which can prompt that no matter which page of the data processing system is currently in, the data reading function of the data reading plug-in and the report generation function of the tabulation model can be called through the client tool, so as to meet the wide needs of users to generate relevant reports for any page. In addition, the training samples of the tabulation model include various tabulation format information used to define the arrangement style of material data, which can expand and utilize the generalization ability of the large model itself, and reduce the problems of insufficient development complexity and flexibility of the report generation function of the data processing system. Description of the Drawings

[0032] To more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings described below are only some of the embodiments recorded in the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0033] It should be noted that although the steps in the flowchart diagrams (if any) involved in each embodiment are drawn in sequence according to the indication of the arrows, unless there is a clear description in this article, the execution of these steps does not have a strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowchart diagrams involved in each embodiment may include multiple steps or multiple stages. These steps or stages are not necessarily executed 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 executed alternately or in turn with at least a part of other steps or steps or stages in other steps.

[0034] Figure 1 Schematic diagram of the system architecture for the method of generating a material report in an embodiment of the present application;

[0035] Figure 2 A flowchart diagram for the method of generating a material report in an embodiment of the present application;

[0036] Figure 3 Another flowchart diagram for the method of generating a material report in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the structure of the material report generation system in an embodiment of the present application;

[0038] Figure 5 A schematic diagram of the structure of an electronic device in an embodiment of the present application. Detailed implementation manners

[0039] In order to make the purpose, technical solutions and advantages of the present application clearer, the following will further describe the present application in detail with reference to the drawings. The described embodiments should not be regarded as limitations of the present application. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.

[0040] The terms "first", "second", "third", "fourth", etc. (if any) in the description, claims and drawings of this application are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units need not be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0041] In the following description, reference is made to "a specific embodiment" or "a specific example" or the like, which describes a subset of all possible embodiments. However, it can be understood that "a specific embodiment" or "a specific example" can be the same subset or different subsets of all possible embodiments and can be combined with each other without conflict. In the following description, the term "a plurality of" refers to at least two. When it is said in this application that a certain value reaches a threshold (if any), in some specific examples, it may include the case where the former is greater than the latter. If terms such as "any" or "at least one" or the like are mentioned, it may specifically refer to any one of the listed examples or any combination between these examples.

[0042] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0043] Please refer to Figure 1 , Figure 1 is the schematic diagram of the system architecture provided by the embodiments of this application. As Figure 1As shown in the figure, the system architecture may include a business server 100 and a terminal cluster. The terminal cluster may include terminal devices such as terminal device 200a, terminal device 200b, terminal device 200c, ……, terminal device 200n. Among them, the above-mentioned business server 100 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud material databases, cloud services, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal devices (including terminal device 200a, terminal device 200b, terminal device 200c, ……, terminal device 200n) may be intelligent terminals such as smart phones, tablet computers, laptop computers, desktop computers, handheld computers, mobile internet devices (MIDs), wearable devices (such as smart watches, smart bracelets, etc.), intelligent computers, and intelligent vehicles. Among them, the business server 100 can establish communication connections with each terminal device in the terminal cluster, and communication connections can also be established between the terminal devices in the terminal cluster. In other words, the business server 100 can establish communication connections with each of the terminal devices 200a, 200b, 200c, ……, 200n. For example, a communication connection can be established between terminal device 200a and the business server 100. A communication connection can be established between terminal device 200a and terminal device 200b, and a communication connection can also be established between terminal device 200a and terminal device 200c. The above-mentioned communication connection is not limited to the connection method, and can be directly or indirectly connected through wired communication methods, or directly or indirectly connected through wireless communication methods, etc. Specifically, it can be determined according to the actual application scenario, and this application does not make any restrictions here.

[0044] It should be noted that the method provided in the embodiments of this application can be executed by the business server 100 as shown in Figure 1 the figure, or by a terminal device (such as any one of the terminal devices 200a, 200b, ……, 200n shown in Figure 1 the figure), or jointly executed by the terminal device and the business server. Specifically, it can be determined according to the actual application scenario, and no restrictions are made here.

[0045] Exemplarily, in practical applications, the terminal device 200a can wake up the client tool to parse the material report generation request entered by the user, "generate a bar chart of the material data in the current material page", and obtain the material data source and tabulation format requirements defined by the material report generation request; the business server 100 can call the data reading plugin through the client tool to read the material source data required for tabulation from the material data set corresponding to the material data source; the business server 100 can input the preset prompt words, material source data, and tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; the training samples of the tabulation model include various tabulation format information used to define the arrangement style of the material data.

[0046] The method of the present application will be described in detail below.

[0047] Please refer to Figure 2 , a specific embodiment of a method for generating a material report provided by the first aspect of the present application, the embodiment includes the following operation steps:

[0048] Step S21: Wake up the client tool to parse the entered material report generation request, and obtain the material data source and tabulation format requirements defined by the material report generation request;

[0049] The above material data source can be a material page or a material database that records some material data. In comparison, it can be considered that the material quantity and / or material content recorded in the material database are more than those of the material page, and there may be an overlapping part between the data contents of the material page and the material database.

[0050] In some examples, the wake-up timing of the client tool (which can be called the large model client) can be set without being restricted by any page in the data processing system. For example, this client tool can be a front-end tool that can continuously appear in or beside the data processing system and can input customer input instructions at any time to assist in realizing the report generation function. It can be understood as a report generation assistant that can be hidden and woken up at any time; such a design of the client tool enables the generation of the required statistical report of the material, such as a bar chart or a pie chart, even on a page that is not a specified material or a material list page and when seeing certain materials.

[0051] The above data processing system can specifically be any operating system such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. Further, it can be a specially developed material data system or a material report system.

[0052] Step S22: Call the data reading plugin through the client tool to read the material source data required for tabulation from the material data set corresponding to the material data source;

[0053] Exemplarily, the above material report generation request can be understood as the user input request "generate a material procurement form for computer model A within the current material page, with the row height and column width of the form being 40, the font being regular script, and the font size being No. 4", etc. Correspondingly, the parsed material data source is "the current material page" (which can be referred to as the current page), and the tabulation format requirements include "a table with a row height of 40, a column width of 40, and a regular script font size of No. 4"; in this case, the material data set corresponding to this material data source can refer to the set composed of the associated data of the current material page, and the source material data can refer to the material procurement details of computer model A directly or indirectly recorded on the current material page, such as the procurement costs, quantities, procurement times, etc. of chips, display screens, etc. Of course, the material data source can also be a material database with richer content than the "current material page", and this material database can contain the material information of multiple objects (such as computer model A within the current material page).

[0054] Step S23: Input the preset prompt words, source material data, and tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements.

[0055] For example, the preset prompt words, source material data, and tabulation format requirements, etc. can form the following new prompt words and input them into the tabulation model: New prompt words [##You are a report generation assistant. You need to obtain table data based on the input data, and generate a corresponding report based on the table data and customer requirements. The data consists of two parts: header data and content data containing each row of data. The header data is separated by ",", and each row of data is also separated by ",". At the same time, it is necessary to understand the customer's requirements for the report style of the entire table data, and generate corresponding chart content for the entire report content according to different report styles. For example, header data: [Code, Name, Specification...], content data: M_secren_001, Mobile phone screen, 6.78 inches,...]

[0056] Among them, the preset prompt words can specifically refer to the reference statement for the purpose: Obtain table data based on the input data, and generate a corresponding report based on the table data and customer requirements. The source material data can specifically refer to the statement: The entire report or the material database pointed to by the entire report. The tabulation format can specifically refer to the statement: The data consists of two parts: header data and content data containing each row of data. The header data is separated by ",", and each row of data is also separated by ",". For example, header data: [Code, Name, Specification...], content data: M_secren_001, Mobile phone screen, 6.78 inches,...]. This is only an example for illustration. The preset prompt words, source material data, and tabulation format requirements, etc. can be specifically determined according to the actual situation, and are not limited here, and are used to guide the tabulation model to more accurately understand the user's intention and meet the user's needs.

[0057] As described above, the embodiments of the present application design a client tool for waking up, which can prompt that no matter which page of the data processing system is currently in, the data reading function of the data reading plugin and the report generation function of the tabulation model can be called through the client tool, so as to meet the wide range of requirements of users to generate relevant reports for any page. In addition, the training samples of the tabulation model contain various tabulation format information for defining the arrangement style of material data, which can expand and utilize the generalization ability of the large model itself, and reduce the problems of insufficient development complexity and flexibility of the report generation function of the data processing system.

[0058] Based on the above example description, the method of the present application will be further described in detail below, and some specific possible implementation examples will be provided. In actual applications, the implementation contents between these examples can be combined or implemented separately according to the corresponding functional principles and application logics as needed. If combined, the execution order between the combined examples can be determined according to their respective processing logics, and specifically can be determined by the actual scenario.

[0059] In some specific examples, the specific operation process of the above step S21 may include: parsing the scope meaning keyword in the material report generation request; determining the material data source as the current material page or the material database of the data processing system according to the meaning of the scope meaning keyword; the material database contains at least part of the data of the materials associated with the current material page.

[0060] For example, if the customer input (which can be regarded as a material report generation request) contains at least one scope meaning keyword such as "all, whole, entire", it can be considered that the material data source defined by the customer is the global material database containing global materials. If the customer input contains at least one scope meaning keyword such as "current, this page, left, this figure, area", it can be considered that the material data source defined by the customer is the "current material page". Of course, the material data source can also be a local material database between the "current material page" (which can be called the current page) and the "global material database", that is, there are three parts of material data sets with a data stock relationship of "current material page" ≤ "local material database" ≤ "global material database". Which material source data to read from specifically can be determined according to the actual situation. Supplementary note: The current material page can be associated with one or more materials, which can be specifically determined according to the data details recorded on the current page, and there is no limit here.

[0061] As described above, in some specific examples, the specific operation process of the above step S22 may include: if the material data source is the current material page, call the current page plug-in to read the material source data required for tabulation from the material dataset associated with the current material page; if the material data source is the material database, call the global plug-in to read the material source data required for tabulation from the material database; the current page plug-in and the global plug-in operate independently.

[0062] To reduce the processing pressure and waiting time of a single plug-in when facing a large number of requests, multiple data reading plug-ins can be designed specifically to share the data reading pressure. Taking material data as an example, two data reading plug-ins with plug-in parameters or names of "current material page" and "all materials" can be designed. These two plug-ins can both be developed locally. The "all materials" plug-in responsible for reading all materials (i.e., the global plug-in relative to the current page plug-in) can directly read all the required material data from the global material database; the "current material page" plug-in responsible for reading at least part of the material data on this page can obtain the page identification ID of the current page through the client tool, so as to obtain the entity class (such as Model) object of the entire page, and further obtain the material data in the model object (that is, the material data on the current page). Similarly, a data reading plug-in with plug-in parameters or names of "partial materials" can be designed to be responsible for reading some required material data from the local material database.

[0063] In some specific examples, the setting process of the above client tool includes: setting a global shortcut for the client tool that is not restricted by the current material page and / or page data usage conditions of the data processing system, so that the client tool can be awakened and used on any page by operating the global shortcut.

[0064] In actual situations, the global shortcut can be set for the client tool through program code, so that no matter where in the data processing system (such as a non-material page) the user operates, the client tool can be awakened by touching a specific shortcut key, that is, the awakening timing of the client tool is not restricted by any page (which can be simply referred to as the system page) in the data processing system.

[0065] In order to remind the user of the existence of the client tool and facilitate awakening and using the "assist in generating reports" function of the client tool, in some specific examples, the above global shortcut can be a floating window or a shortcut icon that is not completely blocked by any page of the data processing system; the client tool on the current material page and the global client tool operate independently.

[0066] Exemplarily, when this global shortcut is a shortcut icon, it can be hidden in a location that is not completely blocked by the system page, such as the lower right corner of the system or the task tray. By clicking on this shortcut icon, the client tool can be awakened for use regardless of where it is in the data processing system. Of course, more directly, the global shortcut can be continuously and prominently presented on one side of the screen in the form of a floating window.

[0067] In some specific examples, after the above step S23, if the material report generated by the tabulation model does not meet the tabulation format requirements, the method further includes the following alternative solutions: constructing a target prompt word to replace the preset prompt word with reference to the tabulation format requirements, and at least returning the steps of inputting the preset prompt word, material source data, and tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; or, at least training the tabulation model using the tabulation format requirements to obtain a trained tabulation model for generating a material report that meets the tabulation format requirements.

[0068] As described above, in actual situations, if the report generated by the large model is not satisfactory, a new prompt word (i.e., the target prompt word) can be constructed based on the tabulation format requirements to enhance the model's further understanding of the user's input intention and better guide the completion of the report rendering. This target prompt word can include specific information such as the user's tabulation format requirements. For example, it can be further stated that the style of the required report is a line chart, the horizontal title of this line chart contains dates, etc., and the intended line colors are red, green, blue, etc. Here, letting the target prompt word contain the user's specific tabulation format requirements can increase the weight of the tabulation format in the model input and make the model's generation effect more in line with the user's requirements.

[0069] Of course, the generation effect of the model may not be ideal because the generalization ability of the model itself is not good enough. Therefore, the above tabulation format requirements can be used to retrain the tabulation model to obtain a trained tabulation model for generating a material report that meets the above tabulation format requirements. For example, information on new format requirements that the tabulation model has not encountered before (such as niche format reports other than popular format reports such as bar charts and pie charts) can be used as part of the training samples to iteratively train this tabulation model, thereby optimizing the model's generation effect for this niche format report and improving user satisfaction.

[0070] Or in some cases, if the report generated by the large model is not satisfactory, the function design permission can also be opened to the user. For example, the user is allowed to develop a local auxiliary plugin (different from the above data reading plugin) for generating niche format reports locally based on information such as material source data and customer requirements, so that the large model can call the local auxiliary plugin to better complete the report rendering; of course, this situation usually requires the user to have strong programming capabilities and hardware and software resources.

[0071] Based on the above description, as Figure 3 shown, taking material information as an example (or it could be employee information, student file information, etc.), the main design of the embodiments of this application is as follows:

[0072] 1. Regardless of the position of the customer in the system (such as on a non-bill of materials page in the data processing system), by waking up the large model client, the function of "generating a material report" can be called to initiate the large model, that is, a material report can be generated regardless of the system page position.

[0073] 2. Two data reading plugins are established. One is a plugin responsible for reading the material data on the current material page, and the other is a plugin responsible for reading all the material data in the system.

[0074] Both of these plugins can be developed locally. One is a global plugin responsible for reading all materials, which can directly read all the required material data from the material database. The plugin parameter associated with the global plugin is "all materials". The other is the current page plugin responsible for reading the data on the whole page. The plugin parameter associated with the current page plugin is "current material page". It can be seen that the setting of the plugin parameters can make the recognition rate of the embodiments of this application high. For example, it helps to better identify which keywords represent which data reading plugin is correspondingly matched.

[0075] 3. According to the prompt words, determine the data reading plugin corresponding to the material report generation request input by the customer.

[0076] For example, the prompt words can be [##You are a report generation assistant, and return the specified plugin according to the needs of the customer. If the customer input contains at least one range keyword such as "all, whole, entire", it means that the customer hopes to return or call the plugin with the parameter "all materials". If the customer input contains at least one range keyword such as "current, this page, left", it means that the customer hopes to return or call the plugin with the parameter "current material page".]

[0077] It should be supplemented that the above report generation assistant can specifically refer to a client tool or a tabulation model. If the customer input contains at least one range keyword such as "these, a part of, local", a data reading plugin with the parameter "part of the materials" can be returned to read some of the required material data from the local material database.

[0078] 4. The system returns one of the correspondingly matched plugins according to the large model, and the corresponding plugin returns the material data read according to its own responsibilities.

[0079] 5. Use prompt engineering to splice the obtained material data and the prompts (which may include tabular format requirements) input by the customer to form a new prompt for input into the tabulation model.

[0080] New prompt: [## You are a report generation assistant. You need to obtain tabular data based on the input data, and generate corresponding reports according to the tabular data and customer requirements. The data consists of two parts: header data and content data containing each row of data. The header data is separated by commas, and each row of data is also separated by commas. At the same time, it is necessary to understand the customer's requirements for the report style of the entire tabular data, and generate corresponding chart content according to different report styles for the entire report content. For example, header data: [Code, Name, Specification...], content data: M_secren_001, Mobile phone screen, 6.78 inches,...]

[0081] 6. The large model generates a corresponding HTML report according to the prompt and displays it.

[0082] The large model returns the corresponding generated HTML report data and displays it. The content of this HTML report can specifically be tabular format content such as bar charts or pie charts. If the customer is not satisfied with the report generated by the large model, the report can be better rendered through any of the above alternative solutions.

[0083] 7. The agent calls the function of converting HTML to PDF to convert the report into a PDF file for downloading, so as to facilitate the customer to save the report content such as bar charts or pie charts. This agent can specifically refer to the above data processing system or report output plug-in.

[0084] As described above, the embodiments of the present application have a relatively low learning cost for customers and can initiate report statistics on relevant materials anywhere in the system according to their own needs; from a technical perspective, by utilizing the capabilities of the large model, the complexity and lack of flexibility in the development of the report system are reduced.

[0085] Please refer to Figure 4 , a specific embodiment of a material report generation system is provided in the second aspect of the present application. The system includes: a processing unit and an acquisition unit;

[0086] The processing unit is used to wake up the client tool to parse the input material report generation request to obtain the material data source and tabular format requirements defined by the material report generation request;

[0087] The acquisition unit is used to call the data reading plug-in through the client tool to read the material source data required for tabulation from the material data set corresponding to the material data source;

[0088] The processing unit is further configured to input a preset prompt word, material source data, and tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; the training samples of the tabulation model include various tabulation format information for defining the arrangement style of material data.

[0089] In some examples, the processing unit is specifically configured to:

[0090] Parse the scope meaning keyword in the material report generation request;

[0091] According to the meaning of the scope meaning keyword, determine that the material data source is the current material page or the material database of the data processing system; the material database contains data of at least part of the materials associated with the current material page.

[0092] In some examples, the acquisition unit is specifically configured to:

[0093] If the material data source is the current material page, call the current page plugin to read the material source data required for tabulation from the material dataset associated with the current material page;

[0094] If the material data source is the material database, call the global plugin to read the material source data required for tabulation from the material database; the current page plugin and the global plugin operate independently.

[0095] In some examples, the processing unit is specifically configured to:

[0096] Set a global shortcut for the client tool that is not restricted by the current material page and / or page data usage conditions of the data processing system, so that the client tool can be awakened and used on any page by operating the global shortcut.

[0097] In some examples, the global shortcut is a floating window or a shortcut icon that is not completely blocked by any page of the data processing system.

[0098] In some examples, if the material report generated by the tabulation model does not meet the tabulation format requirements, the processing unit is further configured to:

[0099] Construct a target prompt word to replace the preset prompt word with reference to the tabulation format requirements, and at least return the steps of inputting the preset prompt word, material source data, and tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements;

[0100] Or, at least train the tabulation model using the tabulation format requirements to obtain a trained tabulation model for generating a material report that meets the tabulation format requirements.

[0101] In the embodiments of the present application, the operations performed by each unit of the material report generation system are similar to those described in the foregoing first aspect or any specific method embodiment of the first aspect, and will not be elaborated herein. Of course, the specific implementation process of each operation in the first aspect of the present application can also be implemented with reference to the relevant description in the second aspect.

[0102] Please refer to Figure 5 , the electronic device in the embodiments of the present application may include one or more processors (such as a central processing unit CPU, central processing units) and a memory, and one or more applications or data are stored in the memory.

[0103] Among them, the memory may be volatile storage or persistent storage. The program stored in the memory may include one or more modules, and each module may include a series of instruction operations on the electronic device. Further, the processor may be configured to communicate with the memory and execute a series of instruction operations in the memory on the electronic device.

[0104] The electronic device may further include one or more power supplies, one or more wired or wireless network interfaces, one or more input / output interfaces, and / or one or more operating systems, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.

[0105] The processor may perform the operations performed in the foregoing first aspect or any specific method embodiment of the first aspect, which will not be elaborated herein.

[0106] A computer-readable storage medium provided by the present application includes instructions, and when the instructions run on a computer, the computer is caused to execute the method described in the foregoing first aspect or any specific implementation manner of the first aspect.

[0107] A computer program product provided by the present application includes instructions or a computer program, and when the computer program product runs on a computer, the computer is caused to execute the method described in the foregoing first aspect or any specific implementation manner of the first aspect.

[0108] It can be understood that in various embodiments of the present application, the sequence numbers of the steps do not mean the order of execution. The execution order of each step should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The operation content added or refined in each example solution of the foregoing method, system or device (if any) does not necessarily have to be executed during specific implementation. If more than two operations are added, these operations can be combined or implemented separately, depending on the actual scenario.

[0109] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems (if any) and devices described above can refer to the corresponding processes in the foregoing method embodiments and will not be elaborated herein.

[0110] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system or device, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the devices or units can be in electrical, mechanical or other forms.

[0111] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0112] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

[0113] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product (or computer program product) is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a business server or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks or optical discs that can store program codes.

Claims

1. A method for generating a material report, characterized in that, Including: Wake up the client tool to parse the entered material report generation request, and obtain the material data source and tabulation format requirements defined by the material report generation request; Call the data reading plugin through the client tool to read the material source data required for tabulation from the material dataset corresponding to the material data source; Input the preset prompt word, the material source data, and the tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; the training samples of the tabulation model include various tabulation format information used to define the arrangement style of material data.

2. The method for generating a material report according to claim 1, wherein The step of waking up the client tool to parse the entered material report generation request and obtaining the material data source defined by the material report generation request includes: Parse the range meaning keyword in the material report generation request; According to the meaning of the range meaning keyword, determine that the material data source is the current material page or the material database of the data processing system; the material database contains at least part of the data of the materials associated with the current material page.

3. The method for generating a material report according to claim 1 or 2, characterized in that, The step of calling the data reading plugin through the client tool to read the material source data required for tabulation from the material dataset corresponding to the material data source includes: If the material data source is the current material page, call the current page plugin to read the material source data required for tabulation from the material dataset associated with the current material page; If the material data source is the material database, call the global plugin to read the material source data required for tabulation from the material database; the current page plugin and the global plugin operate independently.

4. The material report generation method according to claim 1, characterized in that, The setting process of the client tool includes: Set a global shortcut for the client tool that is not restricted by the current material page and / or page data usage conditions of the data processing system, so that the client tool can be woken up and used on any page by operating the global shortcut.

5. The method for generating a material report according to claim 4, wherein The global shortcut is a floating window or a shortcut icon that is not completely blocked by any page of the data processing system.

6. The material report generation method according to claim 1, wherein If the material report generated by the tabulation model does not meet the tabulation format requirements, the method further includes: Construct a target prompt word to replace the preset prompt word with reference to the tabulation format requirements, and at least return the step of inputting the preset prompt word, the material source data, and the tabulation format requirements into the tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; Or, at least train the tabulation model using the tabulation format requirements to obtain a trained tabulation model for generating a material report that meets the tabulation format requirements.

7. A material report generation system, characterized in that, Including: A processing unit, an acquisition unit; The processing unit is used to wake up the client tool to parse the entered material report generation request, and obtain the material data source and tabulation format requirements defined by the material report generation request; The acquisition unit is used to call the data reading plugin through the client tool to read the material source data required for tabulation from the material dataset corresponding to the material data source; The processing unit is further configured to input a preset prompt word, the material source data, and the tabulation format requirements into a tabulation model connected to the client tool, so that the tabulation model generates a material report that meets the tabulation format requirements; the training samples of the tabulation model include various tabulation format information used to define the arrangement style of material data.

8. An electronic device, characterized in that, including: a processor and a memory; The processor is configured to communicate with the memory and execute instructions in the memory to implement the method according to any one of claims 1 to 6.

9. A readable storage medium, characterized in that, The readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, characterized in that, The computer program product includes computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Sample data acquisition method, model training method, electronic equipment and medium

    CN121527796A