Data processing method and device, electronic equipment and storage medium
By receiving user requirements in the dialog component window of tabular data and utilizing language model analysis, the problem of low tabular data processing efficiency and poor accuracy of analysis results is solved, achieving fast and efficient data processing and analysis.
Patent Information
- Application Number
- CN202311560886.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-21
- Publication Date
- 2024-09-17
AI Technical Summary
In the existing technology, tabular data processing efficiency is low and the accuracy of analysis results is poor. Users need to write special analysis programs. The operation threshold is high and the results depend on user experience.
Provide a data processing method that receives the target requirements input by the user in the dialog component window of the page presentation of tabular data, uses the language model to analyze, and generates reply messages, including text, tables, and charts, to achieve rapid processing and analysis.
It can improve table data processing efficiency and analysis accuracy without the need for additional data analysis programs, simplify the operation process, and reduce dependence on user experience.
Smart Images

Figure CN118657127A
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of artificial intelligence technology, and in particular, to a data processing method, device, electronic device, and storage medium. Background Art
[0002] A spreadsheet is a commonly used data carrier that records information in the form of rows and columns. The resulting tabular data is widely used in various scenarios such as data management and data analysis.
[0003] Currently, the processing and analysis of tabular data usually requires users to write dedicated analysis programs, which leads to low processing efficiency of tabular data and poor accuracy of analysis results. Summary of the invention
[0004] The embodiments of the present disclosure provide a data processing method, device, electronic device and storage medium to overcome the problems of low efficiency in table data processing and poor accuracy of analysis results.
[0005] In a first aspect, an embodiment of the present disclosure provides a data processing method, including:
[0006] Displaying tabular data, wherein the tabular data includes at least one data object and at least one basic statistical information corresponding to the data object; in response to a triggering operation on a preset control, presenting a dialog component window on the page of the tabular data; in response to receiving a first message including a target demand through the dialog component window, displaying a reply message in the dialog component window, wherein the reply message includes conclusion content and / or a recommended demand template for the target demand; wherein the conclusion content includes at least one of text, a table and a chart.
[0007] In a second aspect, an embodiment of the present disclosure provides a data processing device, including:
[0008] A display unit, used for displaying table data, wherein the table data includes at least one data object and at least one basic statistical information corresponding to the data object;
[0009] A receiving unit, configured to present a dialog component window on the page of the table data in response to a triggering operation on a preset control;
[0010] A processing unit is used to display a reply message in the dialogue component window in response to receiving a first message containing a target requirement through the dialogue component window, wherein the reply message includes conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart.
[0011] In a third aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0012] The memory stores computer-executable instructions;
[0013] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the data processing method described in the first aspect and various possible designs of the first aspect.
[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the data processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0015] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the data processing method described in the first aspect and various possible designs of the first aspect.
[0016] The data processing method, device, electronic device and storage medium provided in this embodiment display table data, wherein the table data includes at least one data object and at least one basic statistical information corresponding to the data object; in response to the triggering operation of the preset control, a dialogue component window is presented on the page of the table data; in response to receiving a first message containing a target requirement through the dialogue component window, a reply message is displayed in the dialogue component window, wherein the reply message includes conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart. After displaying the table data, the target requirement input by the user is received, and the table data is analyzed based on the target requirement and the language model, and the reply message is obtained and displayed, thereby realizing the rapid processing and analysis of the table data, without the need to perform data processing by running an additional data analysis program, and improving the data processing efficiency of the table data and the accuracy of data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0018] Figure 1 An application scenario diagram of the data processing method provided by the embodiment of the present disclosure;
[0019] Figure 2 Schematic diagram of the data processing method provided in the embodiment of the present disclosure Figure 1 ;
[0020] Figure 3 A schematic diagram of a process of a first terminal device responding to a trigger operation is provided for an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram of displaying alternative requirement texts provided in an embodiment of the present disclosure;
[0022] Figure 5 A schematic diagram of displaying second prompt information provided by an embodiment of the present disclosure;
[0023] Figure 6 A schematic diagram of a process of displaying extended text provided by an embodiment of the present disclosure;
[0024] Figure 7 A schematic diagram of displaying reply messages and chart information provided by an embodiment of the present disclosure;
[0025] Figure 8 Schematic diagram of the data processing method provided in the embodiment of the present disclosure Figure 2 ;
[0026] Fig. 9 for Figure 8 A flowchart of a specific implementation method of step S204 in the illustrated embodiment;
[0027] Fig.10 A schematic diagram of a system structure for implementing the method of the present embodiment provided in the present disclosure;
[0028] Fig.11 for Figure 8 A flowchart of a specific implementation method of step S205 in the illustrated embodiment;
[0029] Fig.12 for Fig.11 A flowchart of a specific implementation method of step S2051 in the illustrated embodiment;
[0030] Fig.13 A schematic diagram of the structure of a first intelligent agent provided in an embodiment of the present disclosure;
[0031] Fig.14 for Fig.11 A flowchart of a specific implementation method of step S2052 in the illustrated embodiment;
[0032] Fig.15 A structural block diagram of a data processing device provided in an embodiment of the present disclosure;
[0033] Fig.16A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0034] Fig.17 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0036] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0037] The application scenarios of the embodiments of the present disclosure are explained below:
[0038] Figure 1 This is an application scenario diagram of the data processing method provided in the embodiment of the present disclosure. The data processing method provided in the embodiment of the present disclosure can be applied to an application with a table data processing function, and more specifically, can be applied to an application scenario based on online spreadsheet data processing. The execution subject of this embodiment can be a terminal device that runs the above-mentioned application with online spreadsheet functions and programs, or a server that deploys the service end corresponding to the above-mentioned application, or other electronic devices that perform similar functions. Taking the terminal device as an example, an application with an online spreadsheet function is running in the terminal device, refer to Figure 1As shown in , in the interactive interface of the application, a table data sheet_1 is displayed, and the table data sheet_1, for example, has N data rows and M data columns (N and M are positive integers), wherein each data row corresponds to a data object. As shown in the reference figure, the first column in the table data sheet_1 is used to record the object identification of the data object, for example, the object identification of the data object corresponding to the first row is "material data #1"; the object identification of the data object corresponding to the second row is "material data #2"; in the other data columns except the first column, the statistical information corresponding to each data object is recorded respectively, for example, the first column records the statistical quantity of the data object, the second column records the statistical time of the data object, and so on. For the above table data, after obtaining the table data, the terminal device can further run a pre-written data analysis program to process the above table data to obtain the data processing results, thereby achieving data analysis, information mining and other data processing purposes.
[0039] In the prior art, the analysis process for the above-mentioned table data is usually implemented based on user experience, that is, the user writes the corresponding data processing program to realize data processing and analysis. However, data processing and analysis have a high operational threshold, and the accuracy of the analysis results also depends mainly on the user's data analysis experience and business knowledge level. At the same time, since the data processing program needs to be written in advance, the rules of data analysis and reasoning cannot be flexibly and in real time modified. This leads to problems such as low data processing efficiency and poor accuracy of analysis results in the process of analyzing and processing table data in the prior art.
[0040] The embodiments of the present disclosure provide a data processing method to solve the above problems.
[0041] refer to Figure 2 , Figure 2 Schematic diagram of the data processing method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a terminal device. The data processing method includes:
[0042] Step S101: displaying table data, where the table data includes at least one data object and at least one basic statistical information corresponding to the data object.
[0043] For example, reference Figure 1In the schematic diagram of the application scenario shown, the execution subject of the information display method provided by the embodiment of the present disclosure can be a terminal device, such as a personal computer, etc., and an application with a spreadsheet function is run in the terminal device. The terminal device provides an operation entrance for the user by displaying the interactive interface of the application. The user operates the application through the operation entrance, and can load and open the table data in the application, and display the table data in the interactive interface of the application. Among them, the interactive interface may include a main window and a dialogue component window. The main window and the dialogue component window can be arranged left and right or up and down in the interactive interface. The main window is used to display the original table data, and the dialogue component window is used to display the relevant interactive information for the table data, for example, to provide an editable text box to receive the text entered by the user; for another example, it is used to display the intermediate process information in the interactive process, such as prompt information, and reply messages. For the content displayed by the dialogue component window, in the subsequent embodiment steps, it will be described in detail in combination with the embodiment scheme, and will not be repeated here. Further, the main window and the dialogue component window can correspond to the window and page displayed in the interactive interface. For example, a first window for displaying table data is provided at the main window position; a second window for displaying related interactive information and reply messages is provided at the dialog component window position. The specific implementation scheme for displaying content in the main window and the dialog component window can be specifically set as needed and is not limited here.
[0044] Furthermore, the application may have an online electronic functional form, that is, the user can edit the form data online and synchronize it with multiple terminals. Therefore, the form data can be stored locally on the terminal device and directly loaded locally by the terminal device based on user instructions; it can also be stored in the cloud and obtained by the terminal device accessing the cloud server, which will not be described in detail here.
[0045] Further, refer to Figure 1 The tabular data in the application scenario diagram shown in the figure includes at least one data object and at least one basic statistical information corresponding to the data object, that is, the tabular data is a data storage carrier for data storage based on the data object. Each data object can correspond to the same amount of basic statistical information. Specifically, for example, taking the application scenario of storing "book information" in the tabular data as an example, the data object corresponds to the name of the book, such as "XX Autobiography" and "XXX Adventures". The basic statistical information corresponding to each data object includes, for example, the author of the book, the time of book release, the sales volume of the book, etc., that is, in the tabular data, the author of the book, the time of book release, and the sales volume of the book "XX Autobiography" and "XXX Adventures" are included respectively.
[0046] Among them, in a possible implementation method of displaying table data in the interactive interface, data objects can be displayed in rows, that is, each row displays a data object and corresponding one or more basic statistical information, that is, Figure 1 The display method of the tabular data shown in ; in another possible implementation method, the data objects can also be displayed in columns, that is, each column displays a data object and corresponding one or more basic statistical information. The specific implementation method can be set as needed and is not specifically limited here.
[0047] Step S102: In response to a triggering operation on a preset control, a dialog component window is presented on a page of table data.
[0048] Step S103: In response to receiving a first message containing a target requirement through a dialogue component window, a reply message is displayed in the dialogue component window, wherein the reply message includes conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart.
[0049] Exemplarily, an input component for receiving text input by a user is provided in the interactive interface, such as an editable text box (edit_text). After the user inputs text through the input component, the terminal device obtains the content input by the user, that is, the target demand, through the input component. In a possible implementation, based on the introduction in the steps of the previous embodiment, the input component can be set in the dialog component window to avoid affecting the display effect of the table data in the main window. Further, before displaying the reply message, it also includes: generating a reply message according to the target demand, wherein the reply message is generated based on the language model, and the reply message includes a target data object obtained based on the inference rule. Among them, the target demand is used to characterize the inference rule for inferring the table data based on the advanced statistical information, and the advanced statistical information is generated based on the basic statistical information. For example, in an example, the content of the target demand includes: "Find the ten books with the fastest growth rate of reading volume". In this target demand, the advanced statistical information is "the growth rate of reading volume", and the advanced statistical information "the growth rate of reading volume" is obtained by statistics based on the basic statistical information "reading volume". It instructs the terminal device (language model) to infer the table data based on the advanced statistical information of "the growth rate of reading volume", so as to obtain the logic of "the ten books with the fastest growth rate of reading volume", that is, the inference rule. The above inference rules represented by the target requirements are used to guide the language model to perform subsequent data processing steps, so as to achieve the purpose of generating a reply message.
[0050] Furthermore, based on the different contents of the target requirements, the reasoning rules represented by them have multiple implementation methods. For example, the reasoning rules represented by the target requirements include at least one of the following: determining the target data object based on the average value of the advanced statistical information of the data object within the target time interval; determining the target data object based on the change amount of the advanced statistical information of the data object within the target time interval; determining the target data object based on the rising value and / or falling value of the advanced statistical information of the data object within the target time interval; determining the target data object based on the change trend of the advanced statistical information of the data object within the target time interval. Through the target requirements input by the user, the table data can be personalized analyzed from multiple dimensions, thereby obtaining effective and high-value data analysis results.
[0051] Furthermore, the process of generating a reply message is generated based on a language model, and the language model is a model for task processing based on natural language, such as a large language model (LLM). In this embodiment, the language model can be combined with the target requirements to generate corresponding action instructions to call an external data analysis module, thereby realizing the automated analysis and processing of the above-mentioned table data, thereby generating a corresponding reply message. Further, in the process of generating a reply message based on a language model, prompt words can be used to guide the content generated by the language model. The above-mentioned prompt words are generated based on the target requirements and a preset prompt word template. The generation control of the above-mentioned reply message is realized by setting the prompt word template.
[0052] In a possible implementation, after displaying the table data (step S101), the terminal device may execute subsequent steps by responding to a trigger operation input by the user. Figure 3 A schematic diagram of a process of a first terminal device responding to a trigger operation is provided for an embodiment of the present disclosure, such as Figure 3 As shown, the main window in the interactive interface of the terminal device displays table data. When the user clicks the interactive component in the interactive interface (the name of the interactive component is "smart assistant"), the terminal responds to the trigger operation and displays an editable text box edit_text in the dialogue component window in the interactive interface. At the same time, preset explanatory information is displayed in the second window, such as "Hello, I am a table data intelligent analysis assistant. Please enter your requirements." After the user enters the target requirements through the editable text box edit_text, the terminal device obtains the target requirements and executes subsequent data processing steps to obtain the reply message corresponding to the table data and display it in the interactive interface.
[0053] Optionally, in a possible implementation, the first message includes an indication identifier and a first requirement text, wherein the first requirement text is used to indicate target data in the table data: the specific implementation method of step S103 includes: in response to the indication identifier received through the dialogue component window, obtaining the target data indicated by the first requirement text, and displaying a reply message in the dialogue component window based on the target data.
[0054] Exemplarily, the first message includes an indicator and a first requirement text, wherein the indicator may be a preset special symbol, letter, number, etc. For example, the "@" symbol. The first requirement text is used to indicate the target data in the table data, such as a row number, a column number, or a combination of a row number and a column number, so as to locate the target data in the table data. Then, the target data indicated by the first requirement text is used as the target requirement or a part of the target requirement, and the subsequent language model processing steps are performed to generate and display a reply message.
[0055] Optionally, before step S102, the method further includes:
[0056] Step S100A: displaying at least one candidate requirement text in the dialog component window, where the candidate requirement text represents a requirement template for the target requirement;
[0057] Step S100B: In response to a selection instruction for the candidate requirement text, a target requirement is obtained.
[0058] Correspondingly, step S102 is implemented by: acquiring the target demand obtained in step S100B.
[0059] Figure 4 A schematic diagram of displaying alternative requirement texts provided by an embodiment of the present disclosure, such as Figure 4 As shown, the descriptive information displayed in the second window may also include alternative requirement texts. For example, as shown in the figure, the descriptive information displayed in the second window also includes the following alternative requirement texts:
[0060] "I can help you complete the following tasks: Processing Function I; Processing Function II; Processing Function III".
[0061] Afterwards, in response to the selection instruction for the alternative requirement text, a target requirement is determined. Among them, the specific implementation method of the selection instruction includes, for example, clicking the text "processing function I" or "processing function II" or "processing function III" in the alternative requirement text to generate a corresponding selection instruction. The specific implementation method of the selection instruction also includes, for example, entering "processing function I" or "processing function II" or "processing function III" in an editable text box to generate a corresponding selection instruction. For example, as shown in the figure, when the alternative requirement text "processing function I" is selected, the terminal device determines "processing function I" as the target requirement. Afterwards, in a possible implementation method, the terminal device can directly perform subsequent steps based on the above-determined target requirement and generate a reply message using a language model. In another possible implementation method, the terminal device can further interact with the user for the target requirement to further determine the implementation method of the inference rule represented by the target requirement (such as processing function I). Exemplarily, in the second window, at least one implementation text corresponding to the selected target requirement is further displayed, and the implementation text is used to represent the implementation method of the inference rule corresponding to the target requirement. As shown in the figure, the target requirement "processing function I" corresponds to three implementation texts. In the second window, the implementation texts 1, 2 and 3 corresponding to "processing function I" are displayed, which respectively represent the implementation methods of the three target requirements. Specifically, for example, the content of processing function I is "find the three most valuable books", and the corresponding implementation text 1 includes: "measure the value of books by the sales volume of books"; implementation text 2 includes: "measure the value of books by the number of books read"; implementation text 3 includes: "measure the value of books by the ratings of books". After that, the user clicks on implementation text 2, determines it as the target requirement, and executes subsequent steps based on the target requirement generated by the target requirement, and generates a reply message using the language model. Among them, illustratively, the content of implementation text 2 is, for example, "help me analyze the books that are ranked in the top ten in terms of reading volume, but not in the top ten in terms of sales volume". In the steps of this embodiment, a more detailed target requirement is further determined through a multi-level interactive method, thereby improving the accuracy of the inference rules indicated by the user, so that the final push flow theoretical data can better meet the user's needs.
[0062] Optionally, before step S102, the method further includes:
[0063] Step S100C: Displaying capability description information of the dialog component window in the dialog component window.
[0064] Exemplarily, the capability description information of the dialog component window is the data processing capability that can be realized by the dialog component window input, that is, the data processing capability of the language model that realizes the dialog component window. Specifically, for example, data classification processing, data insight, data prediction, data visualization, etc. By displaying the capability description information of the dialog component window in the dialog component window, the data processing capability it has is demonstrated to guide the user to perform correct operations and improve interaction efficiency.
[0065] Optionally, in a possible implementation, after step S103, the method further includes:
[0066] In response to the second message received through the dialogue component window, the conclusion content is inserted into the table data to generate the modified table data. Exemplarily, after the reply message is generated and displayed, the user can further input the second message into the dialogue component window, so that the terminal device responds to the second message and inserts the generated conclusion content into the initial table data to obtain the updated table data, thereby updating the table data. The conclusion content includes one or more of text, table, and chart, that is, the text, table, and chart generated in the dialogue component window are inserted into the table data.
[0067] Optionally, in a possible implementation, after step S103, the method further includes:
[0068] Step S104: display at least one second prompt information, where the second prompt information is generated based on the reply message, and the second prompt information is used to characterize a generation rule of target advanced statistical information in the reply message.
[0069] Exemplarily, after or while generating a reply message and displaying the reply message in the dialog component window, the terminal device may further display at least one second prompt information. Figure 5 A schematic diagram of displaying a second prompt message provided by an embodiment of the present disclosure, such as Figure 5As shown, the conclusion content is displayed in the second window located in the dialogue component window in the interactive interface, and its content is, for example: "The three books with the highest book ratings are: 1. "XX Autobiography"; 2. "XX Adventures"; 3. "XX Sports"". Afterwards, upon receiving the instruction text "Please explain the scoring rules for book ratings in the conclusion content" entered by the user through an input component (such as an editable text box, edit_text shown in the figure), the terminal device calls the language model based on the instruction text to generate a second prompt information for "book rating", that is, the second prompt information. The second prompt information is used to describe how the "book rating" (target advanced statistical information) in the conclusion content is generated based on the primary statistical information, that is, the generation rules for advanced statistical information in the conclusion content. For example, as shown in the figure, the content of the second prompt information displayed in the second window includes:
[0070] "Book ratings are determined using the following formula:
[0071] Value=0.3*sale+0.3*read+0.4*conm
[0072] Among them, Value is the book rating, sale is the book sales volume in a week, read is the book reading volume in a week, and conm is the book rating in a week. "
[0073] Of course, in another possible implementation, the terminal device can automatically generate the above-mentioned second prompt information without receiving the instruction text entered by the user, and display it or not display it in the interactive interface. The specific implementation method can be set based on specific needs and will not be repeated here.
[0074] Furthermore, in a possible implementation, the reply message includes target advanced statistical information, and after step S103, the following is further included:
[0075] Step S105: display at least one extended text; in response to a selection instruction for the extended text, obtain an updated target requirement, and generate an updated reply message based on the updated target requirement; display the updated reply message in the dialog component window; wherein the extended text is generated based on the reply message, and the extended text is used to represent the inference rules for inferring the tabular data based on the target high-level statistical information.
[0076] Exemplarily, after or at the same time as generating a reply message and displaying the reply message in a dialog component window (e.g., a second window), the terminal device may further display at least one extended text. The role of the extended text is the same as the role type of the alternative requirement text in the previous embodiment step, which is used to prompt the user with other possible reasoning rules, thereby helping the user to adjust the target requirement to obtain a more optimized reply message. However, the difference is that the extended text is obtained after processing the reply message obtained in the previous step, so the extended text can realize the reasoning rule that represents the reasoning of the table data based on the target advanced statistical information. For example, the reply message includes the target advanced statistical information "weekly average fluctuation value of reading volume". For example, the extended text represents a corresponding reasoning rule based on the target advanced statistical information "weekly average fluctuation value of reading volume", such as "monthly average fluctuation value of reading volume", or "the change of the weekly average fluctuation value of reading volume relative to the previous week". Afterwards, in response to the selection instruction for the extended text, the selected extended text is used as the updated target requirement, and the above data processing steps are repeated to obtain an updated reply message and display it in the dialog component window. The specific process is not repeated.
[0077] Figure 6 A schematic diagram of a process of displaying extended text provided by an embodiment of the present disclosure, such as Figure 6 As shown, the conclusion content is displayed in the dialogue component window in the interactive interface, and the conclusion content includes the following text content:
[0078] "The three books with the largest average weekly fluctuation in reading volume are: 1. "XX Autobiography"; 2. "XX Adventures"; 3. "XX Sports"." After that, the extended text is displayed in the second window automatically or by triggering the corresponding control. For example, as shown in the figure, the following extended text is displayed in the second window:
[0079] “You could also say:
[0080] Question 1: Which are the three books with the largest average monthly fluctuation in reading volume?
[0081] Question 2: What are the three books with the largest weekly average fluctuation in reading volume compared to the previous week?
[0082] Furthermore, the user enters the text "What are the three books with the largest monthly average fluctuation in reading volume?" in the input component (shown as edit_text in the figure), which is "Question 1" in the above extended text. Afterwards, the terminal device uses the "What are the three books with the largest monthly average fluctuation in reading volume?" in the above extended text as the target requirement, and repeats the above step S103, that is, regenerates the conclusion content according to the target requirement, so as to update the reply message in the dialogue component window. For example, as shown in the figure, the updated conclusion content is:
[0083] “The three books with the largest average weekly fluctuations in reading volume are: 1. The Adventures of XXX; 2. XX Animation; 3. XX Game.”
[0084] Furthermore, in a possible implementation, after step S103, the following steps are further included:
[0085] Step S106: displaying first prompt information, where the first prompt information is used to indicate form data and / or question data in the reply message.
[0086] Wherein, exemplarily, the problem data includes at least one of the following: a data object whose object identifier is missing or exceeds a threshold; and advanced statistical information whose statistical value is missing or exceeds a threshold.
[0087] Exemplarily, the first prompt information is an error prompt information, which is used to prompt the problem data in the table data displayed in the main window, and / or the problem in the reply message. For example, the data object is used to represent the name of the material data. More specifically, in the scenario of book data management, the data object represents the name of the book. After the reply message is generated and displayed, if the target data object or non-target data object involved in the reply message is missing or abnormal, for example, the name of the book is empty, there are unrecognizable garbled characters, etc., then the first prompt information is used for prompting, or, in the process of generating the reply message, it is found that a certain basic statistical information is empty, there are unrecognizable garbled characters, or it exceeds the threshold, then it is marked as problem data and displayed through the first prompt information, thereby realizing automatic detection of the original table data and improving the efficiency of data correction.
[0088] Furthermore, after step S103, the method further includes:
[0089] Step S107: Generate chart information corresponding to the reply message through the language model, and display the chart information in the dialog component window. The chart information is used to visualize the reply message.
[0090] Furthermore, after receiving the reply message, the terminal device may further generate chart information according to the reply message, and the chart information is used to visualize the reply message. Optionally, a corresponding data report may be further generated based on the chart information. In one possible implementation, the chart information is used to characterize the proportional relationship between the advanced statistical information corresponding to at least two target data objects. Specifically, after receiving the reply message, the terminal device may extract one or more statistical information from the corresponding advanced statistical information or multiple basic statistical information according to the target data object represented by the reply message, generate chart information directly or after calculation, and generate corresponding pictures for display. Furthermore, with respect to the display process of the chart information, after generating the reply message, the terminal device may pop up a third window in the main window or the first window displaying the table data, and display the chart information corresponding to the reply message in the third window, or display the chart information corresponding to the second window corresponding to the dialog component window.
[0091] Figure 7 A schematic diagram showing conclusion content and chart information provided by an embodiment of the present disclosure, such as Figure 7 As shown, the table data is displayed in the first window of the terminal device, and after responding to the trigger instruction (triggered by clicking the interactive component #1), the table data is processed based on the language model to obtain the conclusion content and chart information, and displayed in the second window. Specifically, refer to Figure 7 As shown in , the text content corresponding to the conclusion content includes: "1. The top three books in terms of average sales in the past week are "XX Autobiography", "XXX Adventures", and "X Story". Correspondingly, based on the conclusion content, the terminal device generates chart information. Specifically, the terminal device obtains the average sales in the past week corresponding to the target objects: "XX Autobiography", "XXX Adventures", and "X Story", and the sum of the average sales in the past week corresponding to all data objects (i.e., the total sales of all books), and obtains the proportion of the average sales in the past week corresponding to "XX Autobiography", "XXX Adventures", and "X Story", i.e., the chart information, and then displays the chart information in the form of a picture. For example, as shown in the figure, the average sales in the past week of "XX Autobiography" accounts for 20%; the average sales in the past week of "XXX Adventures" accounts for 12%; the average sales in the past week of "X Story" accounts for 9%, and the sum of the average sales in the past week of other data objects accounts for 59%.
[0092] In this embodiment, by further generating and displaying chart information corresponding to the conclusion content after generating the conclusion content, the information display dimension for the table data is improved, and the information display efficiency and display effect after data analysis are improved.
[0093] It should be noted that the above steps S104-S107 executed after step S103, and step S100 (including S100A and S100B) executed before step S102, can be executed separately as needed, for example, step S100 and steps S101-S103 of the above embodiment are executed separately, or steps S101-S103 and step S106 are executed separately. Thereby, the corresponding technical purpose and the corresponding technical effect are achieved. Of course, the above steps can also be executed simultaneously, for example, step S100, steps S101-S103, steps S104-105 are executed in sequence, or steps S101-S107 are executed, etc., so as to achieve the corresponding technical purpose. When the above steps are executed simultaneously, the execution order of steps S104-S107 can be adjusted as needed, and no further examples are given here.
[0094] refer to Figure 8 , Figure 8 Schematic diagram of the data processing method provided in the embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the illustrated embodiment, step S103 is further refined, and the data processing method includes:
[0095] Step S201: displaying table data, where the table data includes at least one data object and at least one basic statistical information corresponding to the data object.
[0096] Step S202: In response to a triggering operation on a preset control, a dialog component window is presented on a page of table data.
[0097] Step S203: In response to receiving a first message containing a target requirement through the dialog component window, a target prompt word is obtained, where the target prompt word is used to guide the language model to generate a reply message based on an inference rule.
[0098] Exemplarily, after obtaining the target demand input by the user, the terminal device obtains the corresponding prompt word template by running a preset function program or accessing a preset service, and then obtains the target prompt word, which is used to guide the language model to generate a reply message based on the inference rule. The target prompt word can be recognized by the language model used subsequently, and guides the output content of the language model. Among them, the conversion process between the target demand and the target prompt word, as well as the specific content and form of the target prompt word, are determined by the prompt word template. The specific implementation method of obtaining the target prompt word based on the prompt word template is not specifically limited here.
[0099] Step S204: Process the target prompt word through the preset table data service to generate a data inference request. The table data service is used to obtain table data and generate a data inference request based on the table data and the target prompt word.
[0100] Exemplarily, thereafter, the target prompt word is processed by accessing a preset table data service, the table data service is used to respond to the above-mentioned intention to generate a reply message, identify and convert the table data required to generate the reply message, and combine with the target prompt word to generate a data inference request that can be processed by the language model.
[0101] For example, Fig. 9 As shown, the specific implementation of step S204 includes:
[0102] Step S2041: identifying the table data structure of the table data through the table data service;
[0103] Step S2042: Based on the table data structure, load the table data, and convert the table data into parsed data that can be used to input the execution plug-in;
[0104] Step S2043: Generate a data inference request based on the parsed data and the target prompt word.
[0105] Exemplarily, the terminal device sends the target prompt word to the table data service in the form of intention distribution. The table data service can be deployed as a server of an online spreadsheet function or locally on the terminal device. After receiving the target prompt word, the table data service identifies the table data structure of the table data, the number of rows and columns of the table data, and the position of the data labels in the table data (for example, the first column is the data label), etc., through the table data service, so as to load the table data into the memory and convert it into data with a specific data format that can be processed by the subsequent execution plug-in, that is, the parsed data. Afterwards, the parsed data and the prompt word information are packaged into a data reasoning request. Among them, the prompt word information is generated based on the target prompt word, which can be the target prompt word itself, or it can be the text, logo or other information generated after the target prompt word is processed.
[0106] Step S205: Based on the data reasoning request, call the execution plug-in implemented based on the language model to obtain a reply message corresponding to the table data. The execution plug-in is used to call the external knowledge base to process the table data to generate a reply message.
[0107] Exemplarily, after a data inference request is generated through a table data service, the inference request is processed by calling an execution plug-in to generate a reply message. In one possible implementation, the execution plug-in is a functional plug-in implemented based on a language model, that is, the execution plug-in contains a language model, or can implement the function of the language model by accessing and calling an external model. After the data inference request is input into the execution plug-in, the prompt word information and parsed data included or indicated in the data inference request are processed by the execution plug-in, and the purpose of generating a reply message is achieved by using the capabilities of the language model.
[0108] Fig.10 A schematic diagram of a system structure for implementing the method of the present embodiment is provided in the embodiment of the present disclosure, referring to Fig.10 As shown, first. After receiving the target prompt word or the intention information containing the target prompt word, the table data service processes it, obtains the table data and parses it, and generates a data reasoning request; then, the table data service sends the data reasoning request to the execution plug-in, and the execution plug-in containing the large language model or the ability to implement the language model processes the data reasoning request to generate a reply message, which is shown as reasoning information Info_1 in the figure, and returns it to the table data service, wherein, specifically, the execution plug-in contains a first intelligent agent based on the large language model, and the first intelligent agent obtains the reply message output by the external knowledge base by calling the external knowledge base, and sends it to the table data service. After that, the table data service formats the reply message returned by the execution plug-in, generates a reply message in a specific target data format that can be used for display in the interactive interface of the terminal device, which is shown as reasoning information Info_2 in the figure, and returns it to the terminal device, which is displayed in the interactive interface by the terminal device.
[0109] In the steps of this embodiment, by decoupling the table data service and the execution plug-in, the process of processing the table data to generate a reply message is decomposed into two independent steps of data processing and language model processing, thereby achieving the decoupling of the business data processing flow. Subsequently, the table data service and the execution plug-in can be easily adjusted independently to improve the scalability and maintainability of the program.
[0110] Exemplarily, a first agent based on a reason-action (ReAct) model is deployed in the execution plug-in, such as Fig.11 As shown, the specific implementation of step S205 includes:
[0111] Step S2051: Processing a data reasoning request through a first agent to obtain a first result, wherein the first agent is used to call a first external interface of an external knowledge base to obtain a first result returned by the external knowledge base.
[0112] First, a brief introduction to the reason-action model is given: The ReAct (reason, act) model integrates reasoning and action capabilities and is a language model that uses natural language reasoning to solve complex tasks. The ReAct model is designed to be used for tasks that allow language models to perform certain operations. For example, in the MRKL system, the language model can interact with an external knowledge base to retrieve information by calling an external interface. When a question is asked, the language model can choose to perform operations to retrieve information and then answer the question based on the retrieved information. The agent (also called the agent) based on the ReAct model can receive data reasoning requests and retrieve the content of the external knowledge base by calling the functional interface of the external knowledge base, or use the capabilities provided by the external knowledge base to obtain the first result returned by the external knowledge base.
[0113] For example, Fig.12 As shown, a possible implementation of step S2051 includes:
[0114] Step S2051A: Process the data reasoning request through the first agent and generate the reasoning target.
[0115] Step S2051B: Generate a first action instruction based on the inference target.
[0116] Step S2051C: by executing the first action instruction, calling the first module interface of the code processing module to generate a first program code corresponding to the first action instruction and applied to the external knowledge base.
[0117] Step S2051D: By executing the first program code, the first external interface of the external knowledge base is called to obtain the first result returned by the external knowledge base.
[0118] For example, Fig.13 A schematic diagram of the structure of a first agent provided in an embodiment of the present disclosure is shown below in conjunction with Fig.13The above steps are introduced in detail. As shown in the figure, a language model (LLM in the figure) is included in the first agent. First, after the data reasoning request is input into the first agent, the system prompt word (target prompt word) is obtained based on the data reasoning request, and the language model (LLM+system prompt word in the figure) is input. The language model generates the reasoning target. Then, the first action instruction is generated based on the reasoning target, and the first module interface (i.e., action) of the code processing module is called by executing the first action instruction to generate the first program code, wherein the code processing module is a functional module for generating a program code matching the external knowledge base. By calling the first module interface of the code processing module, the program code corresponding to the first action instruction, i.e., the first program code, can be obtained. The external knowledge base can be accessed through the first program code; then, by executing the first program code, the first external interface of the external knowledge base is called to obtain the first result output by the external knowledge base, and the first result is returned to the language model as an observation result. Optionally, the code processing module can also have a second code module, and the specific role of the second code module is introduced in the subsequent embodiment steps.
[0119] Furthermore, in a possible implementation, in combination with the above example, after obtaining the first result, the language model can directly use the first result as a reply message. In another possible implementation, the reply message can also be generated by repeating the above reason-action cycle multiple times. That is, based on the obtained first result, a new first action instruction is generated, and the above steps are repeated. After multiple cycles of reasoning, the final, multiple-updated first result is obtained, and then a reply message is generated based on the first result. Specifically, after step S2051D, it also includes:
[0120] Step S2051E: If the preset condition is not met, the first result is processed by the first agent to generate an updated reasoning target, and the process returns to step S2051B; if the preset condition is met, the first result is output.
[0121] Specifically, after returning to step S2051B, the execution steps include:
[0122] Based on the updated reasoning target, a second action instruction is generated; by executing the second action instruction, the first module interface of the code processing module is called to generate a second program code corresponding to the second action instruction and applied to the external knowledge base; by executing the second program code, the second external interface of the external knowledge base is called to obtain the second result (i.e., the updated first result) returned by the external knowledge base. Afterwards, a reply message can be generated based on the second result, or, based on the second result, an updated reasoning target is obtained, and the above steps are further repeated based on the updated reasoning target again until the reasoning target or the obtained reasoning result (such as the third result, the fourth result, etc.) meets the requirements. Afterwards, a reply message is generated based on the reasoning result (such as the second result) to realize chain processing of multiple steps of table data.
[0123] Step S2052: Generate a reply message based on the first result.
[0124] For example, Fig.14 As shown, the specific implementation of step S2052 includes:
[0125] Step S2052A: Send the first result to the table data service.
[0126] Step S2052B: Process the first result through the form data service and generate a reply message in the target data format.
[0127] Exemplarily, the first result may be the first result obtained in the first reason-action cycle in the above-mentioned embodiment, or may be an updated first result obtained after multiple reason-action cycles. The first result generated by the first agent is sent to the table data service, and the table data service is used to process the first result to generate a reply message with a target data format, so that the reply message can be displayed in the interactive interface.
[0128] Optionally, before step S2051, the method further includes:
[0129] Step S2050: Acquire historical request information received before the trigger instruction.
[0130] Correspondingly, the specific implementation method of step S2051 includes: processing the data reasoning request and the historical request information through the first intelligent agent to obtain the first result.
[0131] Exemplarily, on the other hand, the terminal device can record the historical request information input by the user, so as to realize data analysis based on multiple conversations. Specifically, before the user inputs the trigger instruction, the user also inputs other instructions to the terminal device. For example, the user inputs the text instruction "Count the book sales in the last week" to the terminal device through the intelligent assistant. The terminal device will save the text instruction as historical request information. In a possible implementation, a new memory (Memory) module for caching the above historical requests is set in the execution plug-in. After that, before the terminal device processes the data reasoning request through the first agent (that is, before executing step S2051), it loads at least one historical request information through the memory module, and then processes the historical request information and the data reasoning request through the language model (that is, the historical request information and the data reasoning request are simultaneously used as the input of the first agent), and executes the reason-action cycle introduced in the above embodiment to obtain the first result. In the steps of this embodiment, by combining the historical request information, the language model can be combined with the context information, so that in the deep questioning scenario, a more accurate data analysis result (reply message) that meets the needs of the user can be obtained.
[0132] Optionally, after step S2051, the method further includes:
[0133] Step S2053: Through the first intelligent agent, the second module interface of the code processing module is called to generate a correction code corresponding to the first program code, and by executing the correction code, the first external interface of the external knowledge base is called to regain the first result returned by the external knowledge base.
[0134] Exemplarily, since the first result is generated by executing the first program code, when the first program code is abnormal or wrong, it will cause an error in calling the external knowledge base, and then cause the generated first result to be wrong. Therefore, in this embodiment, the first result can be detected, and when the detection result is abnormal, the first agent calls the second module interface of the code processing module to repair the generated first program code and obtain the corresponding correction code. After that, the first external interface of the external knowledge base is called by executing the correction code to re-obtain the first result returned by the external knowledge base. Optionally, after re-obtaining the first result returned by the external knowledge base, the first result can be further detected. If the detection result of the first result is normal, the subsequent steps are executed, that is, based on the first result, a reply message is generated; and if the first result is still abnormal, the above-mentioned code correction steps can be repeated to try to correct the program code (correction code) again, and the first result returned by the external knowledge base is re-obtained again, until the detection result of the first result is normal, or a preset condition is reached, such as reaching the target number of cycles.
[0135] In this embodiment, the first intelligent agent calls the second module interface of the code processing module to generate the modification code corresponding to the first program code, thereby realizing automatic detection and repair of the external call code created in the process of generating the reply message without human intervention, thereby improving the stability of program operation and the efficiency of data analysis.
[0136] Step S206: Display the reply message in the dialog component window.
[0137] In this embodiment, the implementation of step S201, step S202 and step S206 is the same as that of the present disclosure. Figure 2 The implementation methods of steps S101, S102 and some solutions in step S103 in the embodiment shown are the same, and will not be repeated here. It can be understood that in this embodiment, it can also be further combined with Figure 2 In the illustrated embodiment, step S100, and any one or more steps of S104-S107 can be configured as needed to achieve the corresponding technical effects and solve the corresponding technical problems, and will not be described one by one here.
[0138] Corresponding to the data processing method of the above embodiment, Fig.15 This is a structural block diagram of a data processing device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown.
[0139] Reference Fig.15 , the data processing device 3 comprises:
[0140] A display unit 31 is used to display table data, where the table data includes at least one data object and at least one basic statistical information corresponding to the data object;
[0141] The receiving unit 32 is used to present a dialog component window on the page of the table data in response to a triggering operation on a preset control;
[0142] The processing unit 33 is used to display a reply message in the dialogue component window in response to receiving a first message containing a target requirement through the dialogue component window, wherein the reply message includes conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart.
[0143] In one embodiment of the present disclosure, after the dialog component window is presented on the page of tabular data, the processing unit 33 is further used to: display at least one alternative requirement text in the dialog component window, the alternative requirement text representing a requirement template for the target requirement; and / or, display capability description information of the dialog component window in the dialog component window.
[0144] In one embodiment of the present disclosure, the first message includes an indication mark and a first requirement text, wherein the first requirement text is used to indicate target data in the table data: the processing unit 33 is specifically used to: in response to the indication mark received through the dialogue component window, obtain the target data indicated by the first requirement text, and display a reply message in the dialogue component window based on the target data.
[0145] In one embodiment of the present disclosure, after the reply message is displayed in the dialogue component window, the processing unit 33 is further used to: in response to a second message received through the dialogue component window, insert the conclusion content into the table data to generate modified table data.
[0146] In one embodiment of the present disclosure, the reply message includes target high-level statistical information. After the reply message is generated, the display unit 31 is also used to: display at least one extended text, the extended text is generated based on the reply message, and the extended text is used to characterize the inference rules for inferring the tabular data based on the target high-level statistical information; the processing unit 33 is also used to: respond to the selection instruction for the extended text, obtain the updated target requirement, and generate an updated reply message according to the updated target requirement; the display unit 31 is also used to: display the updated reply message in the dialog component window.
[0147] In one embodiment of the present disclosure, the display unit 31 is further used to: display at least one implementation text corresponding to the target requirement, and the implementation text is used to characterize the implementation method of the inference rule corresponding to the target requirement; the receiving unit 32 is further used to: obtain the target requirement in response to a selection instruction for the implementation text.
[0148] In one embodiment of the present disclosure, after generating a reply message, the display unit 31 is further used to: display a first prompt information, the first prompt information is used to indicate problem data in the table data and / or the reply message, wherein the problem data includes at least one of the following: a data object whose object identifier is missing or exceeds a threshold; advanced statistical information whose statistical value is missing or exceeds a threshold.
[0149] In one embodiment of the present disclosure, the reply message includes target advanced statistical information; after the reply message is displayed in the dialog component window, the display unit 31 is also used to: display second prompt information corresponding to the target advanced statistical information, and the second prompt information is used to characterize the generation rule of the target advanced statistical information.
[0150] In one embodiment of the present disclosure, the processing unit 33 is further used to: generate chart information corresponding to the reply message through the language model, and the chart information is used to visualize the reply message; the display unit 31 is further used to: display the chart information in the dialogue component window.
[0151] In one embodiment of the present disclosure, the target requirement is used to characterize the inference rules for inferring tabular data based on advanced statistical information, and the advanced statistical information is generated based on basic statistical information. The processing unit 33 is also used to: generate a reply message according to the target requirement, wherein the reply message is generated based on the language model, and the reply message includes a target data object obtained based on the inference rule.
[0152] In one embodiment of the present disclosure, when the processing unit 33 generates a reply message according to the target demand, it is specifically used to: obtain the target prompt word according to the target demand, and the target prompt word is used to guide the language model to generate a reply message based on the inference rule; process the target prompt word through the preset table data service to generate a data inference request, and the table data service is used to obtain the table data, and generate the data inference request based on the table data and the target prompt word; based on the data inference request, call the execution plug-in implemented based on the language model to obtain the reply message corresponding to the table data, and the execution plug-in is used to call the external knowledge base to process the table data to generate a reply message.
[0153] In one embodiment of the present disclosure, when the processing unit 33 processes the target prompt word through a preset table data service and generates a data inference request, it is specifically used to: identify the table data structure of the table data through the table data service; load the table data based on the table data structure, and convert the table data into parsed data that can be used to input the execution plug-in; generate a data inference request based on the parsed data and the target prompt word.
[0154] In one embodiment of the present disclosure, a first agent based on a reason-action model is deployed in the execution plug-in. When the processing unit 33 calls the execution plug-in implemented based on the language model based on the data reasoning request and obtains a reply message corresponding to the table data, it is specifically used to: process the data reasoning request through the first agent to obtain a first result, wherein the first agent is used to call a first external interface of an external knowledge base to obtain a first result returned by the external knowledge base; and generate a reply message based on the first result.
[0155] In one embodiment of the present disclosure, when the processing unit 33 processes a data reasoning request through a first intelligent agent and obtains a first result, it is specifically used to: process the data reasoning request through the first intelligent agent to generate an reasoning target; generate a first action instruction based on the reasoning target; call the first module interface of the code processing module by executing the first action instruction to generate a first program code corresponding to the first action instruction and applied to an external knowledge base; call the first external interface of the external knowledge base by executing the first program code to obtain the first result returned by the external knowledge base.
[0156] In one embodiment of the present disclosure, after obtaining the first result returned by the external knowledge base, the processing unit 33 is also used to: process the first result through the first agent to generate an updated reasoning target; when the processing unit 33 generates a reply message based on the first result, it is specifically used to: generate a second action instruction based on the updated reasoning target; by executing the second action instruction, call the first module interface of the code processing module to generate a second program code corresponding to the second action instruction and applied to the external knowledge base; by executing the second program code, call the second external interface of the external knowledge base to obtain the second result returned by the external knowledge base; and generate a reply message based on the second result.
[0157] In one embodiment of the present disclosure, after obtaining the first result returned by the external knowledge base, the processing unit 33 is also used to: call the second module interface of the code processing module through the first intelligent agent to generate a correction code corresponding to the first program code; and call the first external interface of the external knowledge base by executing the correction code to regain the first result returned by the external knowledge base.
[0158] In one embodiment of the present disclosure, when generating a reply message based on the first result, the processing unit 33 is specifically used to: send the first result to the table data service; process the first result through the table data service to generate a reply message with a target data format.
[0159] In one embodiment of the present disclosure, the processing unit 33 is also used to: obtain historical target requirements received before the target requirements; when the processing unit 33 processes the data reasoning request through the first intelligent agent to obtain the first result, it is specifically used to: process the data reasoning request and the historical target requirements through the first intelligent agent to obtain the first result.
[0160] The display unit 31, the receiving unit 32 and the processing unit 33 are connected in sequence. The data processing device 3 provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0161] Fig.16 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.16 As shown, the electronic device 4 includes:
[0162] A processor 41, and a memory 42 communicatively connected to the processor 41;
[0163] The memory 42 stores computer executable instructions;
[0164] The processor 41 executes the computer execution instructions stored in the memory 42 to implement the following Figure 2-Figure 14 The data processing method in the illustrated embodiment.
[0165] Optionally, the processor 41 and the memory 42 are connected via a bus 43 .
[0166] For related instructions, please refer to Figure 2-Figure 14 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.
[0167] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 14 The data processing method provided in any one of the corresponding embodiments.
[0168] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.
[0169] refer to Fig.17 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.17 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0170] like Fig.17 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0171] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.17 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0172] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0173] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer 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. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-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 computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0174] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0175] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0176] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0177] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0178] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses".
[0179] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0180] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer 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 foregoing.
[0181] In a first aspect, according to one or more embodiments of the present disclosure, a data processing method is provided, comprising:
[0182] Displaying tabular data, wherein the tabular data includes at least one data object and at least one basic statistical information corresponding to the data object; in response to a triggering operation on a preset control, presenting a dialog component window on the page of the tabular data; in response to receiving a first message including a target demand through the dialog component window, displaying a reply message in the dialog component window, wherein the reply message includes conclusion content and / or a recommended demand template for the target demand; wherein the conclusion content includes at least one of text, a table and a chart.
[0183] According to one or more embodiments of the present disclosure, after the dialog component window is presented on the page of the tabular data, it also includes: displaying at least one alternative requirement text in the dialog component window, wherein the alternative requirement text represents a requirement template for the target requirement; and / or displaying capability description information of the dialog component window in the dialog component window.
[0184] According to one or more embodiments of the present disclosure, the first message includes an indicator and a first requirement text, wherein the first requirement text is used to indicate target data in the table data: in response to receiving the first message containing the target requirement through the dialogue component window, displaying a reply message in the dialogue component window comprises: in response to the indicator received through the dialogue component window, obtaining the target data indicated by the first requirement text, and displaying the reply message in the dialogue component window based on the target data.
[0185] According to one or more embodiments of the present disclosure, after the dialog component window displays the reply message, the method further includes: in response to a second message received through the dialog component window, inserting the conclusion content into the table data to generate modified table data.
[0186] According to one or more embodiments of the present disclosure, the reply message includes target high-level statistical information, and after the reply message is displayed in the dialog component window, it also includes: displaying at least one extended text, wherein the extended text is generated based on the reply message, and the extended text is used to represent an inference rule for inferring the tabular data based on the target high-level statistical information; obtaining an updated target requirement in response to a selection instruction for the extended text, and generating an updated reply message based on the updated target requirement; and displaying the updated reply message in the dialog component window.
[0187] According to one or more embodiments of the present disclosure, after the reply message is displayed in the dialog component window, it also includes: displaying at least one implementation text corresponding to the target requirement, wherein the implementation text is used to characterize the implementation method of the inference rule corresponding to the target requirement; and obtaining the target requirement in response to a selection instruction for the implementation text.
[0188] According to one or more embodiments of the present disclosure, after the reply message is displayed in the dialog component window, it also includes: displaying first prompt information, wherein the first prompt information is used to indicate problem data in the table data and / or the reply message, wherein the problem data includes at least one of the following: a data object whose object identifier is missing or exceeds a threshold; advanced statistical information whose statistical value is missing or exceeds a threshold.
[0189] According to one or more embodiments of the present disclosure, the reply message includes target high-level statistical information; after the reply message is displayed in the dialog component window, it also includes: displaying second prompt information corresponding to the target high-level statistical information, and the second prompt information is used to characterize the generation rule of the target high-level statistical information.
[0190] According to one or more embodiments of the present disclosure, the method further includes: generating chart information corresponding to the reply message through the language model, the chart information being used to visually display the reply message; and displaying the chart information in the dialog component window.
[0191] According to one or more embodiments of the present disclosure, the target requirement is used to characterize the inference rules for inferring the tabular data based on advanced statistical information, and the advanced statistical information is generated based on the basic statistical information; the method also includes: generating the reply message according to the target requirement, wherein the reply message is generated based on a language model, and the reply message includes a target data object obtained based on the inference rule.
[0192] According to one or more embodiments of the present disclosure, generating the reply message according to the target demand includes: obtaining a target prompt word according to the target demand, the target prompt word being used to guide the language model to generate a reply message based on the inference rule; processing the target prompt word through a preset table data service to generate a data inference request, the table data service being used to obtain the table data, and generating the data inference request based on the table data and the target prompt word; based on the data inference request, calling an execution plug-in implemented based on the language model to obtain a reply message corresponding to the table data, the execution plug-in being used to call an external knowledge base to process the table data to generate the reply message.
[0193] According to one or more embodiments of the present disclosure, the target prompt word is processed through a preset table data service to generate a data inference request, including: identifying the table data structure of the table data through the table data service; loading the table data based on the table data structure, and converting the table data into parsed data that can be used to input the execution plug-in; generating the data inference request based on the parsed data and the target prompt word.
[0194] According to one or more embodiments of the present disclosure, a first agent based on a reason-action model is deployed in the execution plug-in, and based on the data reasoning request, the execution plug-in implemented based on the language model is called to obtain a reply message corresponding to the table data, including: processing the data reasoning request through the first agent to obtain a first result, wherein the first agent is used to call the first external interface of the external knowledge base to obtain the first result returned by the external knowledge base; and generating the reply message based on the first result.
[0195] According to one or more embodiments of the present disclosure, the first agent is used to process the data reasoning request to obtain a first result, including: processing the data reasoning request through the first agent to generate a reasoning target; generating a first action instruction based on the reasoning target; calling a first module interface of a code processing module by executing the first action instruction to generate a first program code corresponding to the first action instruction and applied to the external knowledge base; calling a first external interface of the external knowledge base by executing the first program code to obtain a first result returned by the external knowledge base.
[0196] According to one or more embodiments of the present disclosure, after obtaining the first result returned by the external knowledge base, it also includes: processing the first result through the first agent to generate an updated reasoning target; generating the reply message based on the first result includes: generating a second action instruction based on the updated reasoning target; calling the first module interface of the code processing module by executing the second action instruction to generate a second program code corresponding to the second action instruction and applied to the external knowledge base; calling the second external interface of the external knowledge base by executing the second program code to obtain the second result returned by the external knowledge base; generating the reply message according to the second result.
[0197] According to one or more embodiments of the present disclosure, after obtaining the first result returned by the external knowledge base, it also includes: calling the second module interface of the code processing module through the first agent to generate a correction code corresponding to the first program code; calling the first external interface of the external knowledge base by executing the correction code to regain the first result returned by the external knowledge base.
[0198] According to one or more embodiments of the present disclosure, generating the reply message based on the first result includes: sending the first result to the table data service; and processing the first result through the table data service to generate a reply message having a target data format.
[0199] According to one or more embodiments of the present disclosure, the method further includes: obtaining historical target requirements received before the target requirement; and processing the data reasoning request through the first intelligent agent to obtain a first result, including: processing the data reasoning request and the historical target requirements through the first intelligent agent to obtain the first result.
[0200] In a second aspect, according to one or more embodiments of the present disclosure, there is provided a data processing device, comprising:
[0201] A display unit, used for displaying table data, wherein the table data includes at least one data object and at least one basic statistical information corresponding to the data object;
[0202] A receiving unit, configured to present a dialog component window on the page of the table data in response to a triggering operation on a preset control;
[0203] A processing unit is used to display a reply message in the dialogue component window in response to receiving a first message containing a target requirement through the dialogue component window, wherein the reply message includes conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart.
[0204] In one embodiment of the present disclosure, after the dialog component window is presented on the page of the table data, the processing unit is further used to: display at least one alternative requirement text in the dialog component window, wherein the alternative requirement text represents a requirement template for the target requirement; and / or display capability description information of the dialog component window in the dialog component window.
[0205] In one embodiment of the present disclosure, the first message includes an indication mark and a first requirement text, wherein the first requirement text is used to indicate target data in the table data: the processing unit 33 is specifically used to: in response to the indication mark received through the dialogue component window, obtain the target data indicated by the first requirement text, and display a reply message in the dialogue component window based on the target data.
[0206] In one embodiment of the present disclosure, after the dialogue component window displays a reply message, the processing unit is further used to: in response to a second message received through the dialogue component window, insert the conclusion content into the table data to generate modified table data.
[0207] According to one or more embodiments of the present disclosure, the reply message includes target high-level statistical information. After the reply message is generated, the display unit 31 is further used to: display at least one extended text, the extended text is generated based on the reply message, and the extended text is used to characterize the inference rules for inferring the tabular data based on the target high-level statistical information; the processing unit is further used to: obtain updated target requirements in response to a selection instruction for the extended text, and generate an updated reply message based on the updated target requirements; the display unit is further used to: display the updated reply message in the dialog component window.
[0208] According to one or more embodiments of the present disclosure, the display unit is further used to: display at least one implementation text corresponding to the target requirement, the implementation text is used to characterize the implementation method of the reasoning rule corresponding to the target requirement; the receiving unit is further used to: obtain the target requirement in response to a selection instruction for the implementation text.
[0209] According to one or more embodiments of the present disclosure, after generating a reply message, the display unit is further used to: display a first prompt information, the first prompt information is used to indicate problem data in the table data and / or the reply message, wherein the problem data includes at least one of the following: a data object whose object identifier is missing or exceeds a threshold; advanced statistical information whose statistical value is missing or exceeds a threshold.
[0210] According to one or more embodiments of the present disclosure, the reply message includes target advanced statistical information; after the reply message is displayed in the dialog component window, the display unit is further used to: display second prompt information corresponding to the target advanced statistical information, and the second prompt information is used to characterize the generation rule of the target advanced statistical information.
[0211] In one embodiment of the present disclosure, the processing unit is further used to: generate chart information corresponding to the reply message through the language model, and the chart information is used to visually display the reply message; the display unit is further used to: display the chart information in the dialogue component window.
[0212] According to one or more embodiments of the present disclosure, the target requirement is used to characterize the inference rules for inferring the tabular data based on advanced statistical information, and the advanced statistical information is generated based on the basic statistical information. The processing unit 33 is also used to: generate the reply message according to the target requirement, wherein the reply message is generated based on a language model, and the reply message includes a target data object obtained based on the inference rule.
[0213] According to one or more embodiments of the present disclosure, when the processing unit generates the reply message according to the target demand, it is specifically used to: obtain the target prompt word according to the target demand, the target prompt word is used to guide the language model to generate the reply message based on the inference rule; process the target prompt word through the preset table data service to generate a data inference request, the table data service is used to obtain table data, and generate a data inference request based on the table data and the target prompt word; based on the data inference request, call the execution plug-in implemented based on the language model to obtain the reply message corresponding to the table data, and the execution plug-in is used to call the external knowledge base to process the table data to generate a reply message.
[0214] According to one or more embodiments of the present disclosure, when the processing unit processes the target prompt word through a preset table data service and generates a data inference request, it is specifically used to: identify the table data structure of the table data through the table data service; load the table data based on the table data structure, and convert the table data into parsed data that can be used to input the execution plug-in; generate the data inference request based on the parsed data and the target prompt word.
[0215] According to one or more embodiments of the present disclosure, a first agent based on a reason-action model is deployed in the execution plug-in, and when the processing unit calls the execution plug-in implemented based on the language model based on the data reasoning request and obtains a reply message corresponding to the table data, it is specifically used to: process the data reasoning request through the first agent to obtain a first result, wherein the first agent is used to call the first external interface of the external knowledge base to obtain the first result returned by the external knowledge base; and generate the reply message based on the first result.
[0216] According to one or more embodiments of the present disclosure, when the processing unit processes the data reasoning request through the first agent and obtains the first result, it is specifically used to: process the data reasoning request through the first agent to generate an reasoning target; generate a first action instruction based on the reasoning target; call the first module interface of the code processing module by executing the first action instruction to generate a first program code corresponding to the first action instruction and applied to the external knowledge base; call the first external interface of the external knowledge base by executing the first program code to obtain the first result returned by the external knowledge base.
[0217] According to one or more embodiments of the present disclosure, after obtaining the first result returned by the external knowledge base, the processing unit is further used to: process the first result through the first agent to generate an updated reasoning target; when the processing unit generates the reply message based on the first result, it is specifically used to: generate a second action instruction based on the updated reasoning target; by executing the second action instruction, call the first module interface of the code processing module to generate a second program code corresponding to the second action instruction and applied to the external knowledge base; by executing the second program code, call the second external interface of the external knowledge base to obtain the second result returned by the external knowledge base; and generate the reply message according to the second result.
[0218] According to one or more embodiments of the present disclosure, after obtaining the first result returned by the external knowledge base, the processing unit is also used to: call the second module interface of the code processing module through the first agent to generate a correction code corresponding to the first program code; and call the first external interface of the external knowledge base by executing the correction code to regain the first result returned by the external knowledge base.
[0219] According to one or more embodiments of the present disclosure, when the processing unit generates the reply message based on the first result, it is specifically used to: send the first result to the table data service; process the first result through the table data service to generate a reply message with a target data format.
[0220] According to one or more embodiments of the present disclosure, the processing unit is further used to: obtain historical target requirements received before the target requirement; when the processing unit processes the data reasoning request through the first intelligent agent to obtain the first result, it is specifically used to: process the data reasoning request and the historical target requirements through the first intelligent agent to obtain the first result.
[0221] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0222] The memory stores computer-executable instructions;
[0223] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the data processing method described in the first aspect and various possible designs of the first aspect.
[0224] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the data processing method described in the first aspect and various possible designs of the first aspect is implemented.
[0225] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the data processing method described in the first aspect and various possible designs of the first aspect.
[0226] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0227] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0228] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A data processing method, characterized in that: include: Displaying table data, wherein the table data includes at least one data object and at least one basic statistical information corresponding to the data object; In response to a triggering operation on a preset control, presenting a dialog component window on the page of the table data; In response to receiving a first message containing a target requirement through the dialogue component window, a reply message is displayed in the dialogue component window, the reply message including conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart.
2. The method according to claim 1, characterized in that After the page of the table data presents the dialog component window, it also includes: In the dialog component window, displaying at least one candidate requirement text, wherein the candidate requirement text represents a requirement template for the target requirement; and / or, In the dialog component window, capability description information of the dialog component window is displayed.
3. The method according to claim 1, characterized in that The first message includes an indication mark and a first requirement text, wherein the first requirement text is used to indicate the target data in the table data: In response to receiving a first message containing a target requirement through the dialogue component window, displaying a reply message in the dialogue component window includes: in response to an indication identifier received through the dialogue component window, obtaining target data indicated by the first requirement text, and displaying the reply message in the dialogue component window based on the target data.
4. The method according to claim 1, characterized in that After the dialog component window displays the reply message, the method further includes: In response to a second message received through the dialog component window, the conclusion content is inserted into the table data to generate modified table data.
5. The method according to claim 1, characterized in that The reply message includes target advanced statistical information, and after the reply message is displayed in the dialog component window, further includes: displaying at least one extended text, the extended text being generated based on the reply message, the extended text being used to represent an inference rule for inferring the table data based on the target high-level statistical information; In response to the selection instruction for the extended text, an updated target requirement is obtained, and an updated reply message is generated according to the updated target requirement; The updated reply message is displayed in the dialog component window.
6. The method according to claim 1, characterized in that After the dialog component window displays the reply message, the method further includes: Displaying at least one implementation text corresponding to the target requirement, where the implementation text is used to represent the implementation method of the inference rule corresponding to the target requirement; In response to a selection instruction for the implementation text, the target requirement is obtained.
7. The method according to claim 1, characterized in that After the dialog component window displays the reply message, the method further includes: Displaying first prompt information, where the first prompt information is used to indicate the form data and / or question data in the reply message, wherein the question data includes at least one of the following: Object identification of data objects that are missing or exceed the threshold; Advanced statistics where the statistic value is missing or exceeds the threshold.
8. The method according to claim 1, characterized in that The reply message includes target advanced statistical information; After the dialog component window displays the reply message, the method further includes: Second prompt information corresponding to the target advanced statistical information is displayed, where the second prompt information is used to represent a generation rule of the target advanced statistical information.
9. The method according to claim 1, characterized in that: The method further comprises: Generate chart information corresponding to the reply message through the language model, where the chart information is used to visually display the reply message; The chart information is displayed in the dialog component window.
10. The method according to claim 1, characterized in that The target requirement is used to characterize an inference rule for inferring the table data based on advanced statistical information, where the advanced statistical information is generated based on the basic statistical information; the method further includes: The reply message is generated according to the target requirement, wherein the reply message is generated based on a language model and includes a target data object obtained based on the inference rule.
11. The method according to claim 10, characterized in that The step of generating the reply message according to the target requirement includes: According to the target requirement, a target prompt word is obtained, wherein the target prompt word is used to guide the language model to generate a reply message based on the inference rule; Processing the target prompt word through a preset table data service to generate a data inference request, wherein the table data service is used to obtain the table data and generate the data inference request based on the table data and the target prompt word; Based on the data inference request, an execution plug-in implemented based on the language model is called to obtain a reply message corresponding to the table data. The execution plug-in is used to call an external knowledge base to process the table data to generate the reply message.
12. The method according to claim 11, characterized in that The process of processing the target prompt word through a preset table data service to generate a data inference request includes: identifying, by the table data service, a table data structure of the table data; Based on the table data structure, loading the table data and converting the table data into parsed data that can be used to input the execution plug-in; The data inference request is generated based on the parsed data and the target prompt word.
13. The method according to claim 11, characterized in that The execution plug-in has a first agent based on a reason-action model deployed therein, and based on the data reasoning request, the execution plug-in implemented based on the language model is called to obtain a reply message corresponding to the table data, including: Processing the data reasoning request through the first agent to obtain a first result, wherein the first agent is used to call a first external interface of the external knowledge base to obtain the first result returned by the external knowledge base; The reply message is generated based on the first result.
14. The method according to claim 13, characterized in that The step of processing the data reasoning request through the first agent to obtain a first result includes: Processing the data reasoning request through the first agent to generate a reasoning target; Based on the inference target, generating a first action instruction; By executing the first action instruction, a first module interface of a code processing module is called to generate a first program code corresponding to the first action instruction and applied to the external knowledge base; By executing the first program code, the first external interface of the external knowledge base is called to obtain the first result returned by the external knowledge base.
15. The method according to claim 14, characterized in that After obtaining the first result returned by the external knowledge base, the method further includes: Processing the first result through the first agent to generate an updated reasoning target; The generating the reply message based on the first result includes: Based on the updated reasoning target, generating a second action instruction; By executing the second action instruction, the first module interface of the code processing module is called to generate a second program code corresponding to the second action instruction and applied to the external knowledge base; By executing the second program code, a second external interface of the external knowledge base is called to obtain a second result returned by the external knowledge base; The reply message is generated according to the second result.
16. The method according to claim 14, characterized in that After obtaining the first result returned by the external knowledge base, the method further includes: Calling, through the first agent, a second module interface of a code processing module to generate a correction code corresponding to the first program code; By executing the correction code, the first external interface of the external knowledge base is called to retrieve the first result returned by the external knowledge base.
17. The method according to claim 13, characterized in that The generating the reply message based on the first result includes: sending the first result to the table data service; The first result is processed through the form data service to generate a reply message having a target data format.
18. The method according to claim 13, characterized in that The method further comprises: Acquire historical target demands received before the target demand; The step of processing the data reasoning request through the first agent to obtain a first result includes: The first intelligent agent processes the data reasoning request and the historical target requirement to obtain the first result.
19. A data processing device, characterized in that: include: A display unit, configured to display table data, wherein the table data includes at least one data object and at least one basic statistical information corresponding to the data object; A receiving unit, configured to present a dialog component window on the page of the table data in response to a triggering operation on a preset control; A processing unit is used to display a reply message in the dialogue component window in response to receiving a first message containing a target requirement through the dialogue component window, wherein the reply message includes conclusion content and / or a recommended requirement template for the target requirement; wherein the conclusion content includes at least one of text, table and chart.
20. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the data processing method according to any one of claims 1 to 18.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the data processing method according to any one of claims 1 to 18 is implemented.
22. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the data processing method according to any one of claims 1 to 18 is implemented.
Citation Information
Patent Citations
Method and device for generating reply information, equipment and medium
CN116521841A
Conversation method and device
CN116561286A
Question and answer interaction method and device, computer equipment and storage medium
CN117076643A
Business data processing method and device and computer equipment
CN117076881A
Cited By
Flood disaster prediction method and device, equipment and storage medium
CN118886331A
Information display method and apparatus, and electronic device and storage medium
WO2025107871A1
Data processing method and apparatus, electronic device and storage medium
WO2025108189A1
