Interactive data agent collaborative computing system and method

Through the interactive data agent collaborative computing system, the central control model module is used to decompose and plan subtasks, and combined with the collaborative work of the code model and execution module, the problem of inaccurate understanding of user intentions by data agents is solved, and a higher level of performance is achieved. Flexibility and self-optimization capabilities significantly improve the accuracy and user experience of natural language data question answering.

CN118689983APending Publication Date: 2024-09-24汤文巍

Patent Information

Application Number
CN202410781648.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Current data agents have inaccurate understanding of user intentions in the field of natural language data question and answer and lack contextual connections, resulting in incorrect answers or failure to provide answers, especially in vertical field applications.

Method used

Using an interactive data agent collaborative computing system, including a central control model module, a code model module and a code execution module, the user's query intention is decomposed into sub-tasks through the context learning capability of the large language model, and task planning is performed through few-sample prompts and execution, dynamically adjusting subtasks to match user needs, providing answers, and requesting supplementary information from the user when necessary.

Benefits of technology

It improves the data agent's understanding of users' complex intentions and data processing capabilities, improves task success rate and accuracy, and enables users to obtain more reliable and accurate services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118689983A
    Figure CN118689983A
Patent Text Reader

Abstract

The invention relates to an interactive data agent collaborative computing system and method, and the system comprises a central control model module, a code model module and a code execution module. The central control model module is used for dividing a query intention of a user into a plurality of sub-tasks, planning a sub-task execution path and providing answers to the user according to result information fed back by the code execution module; the code model module is used for generating a code task from the plurality of subtasks; and the code execution module is used for executing the code task and generating the result information. According to the invention, the understanding of complex intentions of users and the data processing capability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an interactive data agent collaborative computing system and method. Background Art

[0002] With the continuous advancement of big model technology, the application prospects of agents in the field of big models are becoming increasingly broad. These agents can perform a series of complex tasks, including but not limited to natural language processing (NLP), decision making, problem solving, etc. They use large language models (LLMs) to simulate the human decision-making process, realize autonomous planning and execution of tasks, and show a high degree of autonomy and adaptability, which greatly broadens the application scenarios of big model technology.

[0003] However, in the field of natural language data question answering involving tables and databases, current data agents still have certain limitations. The main problems include inaccurate understanding of user intent and lack of context, which may lead to wrong answers or even no answers in some cases. These problems are particularly prominent when natural language question answering is combined with vertical field data. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an interactive data agent collaborative computing system and method, which can improve the understanding of user's complex intentions and data processing capabilities.

[0005] The technical solution adopted by the present invention to solve its technical problems is: to provide an interactive data intelligent collaborative computing system, including a central control model module, a code model module and a code execution module; the central control model module is used to divide the user's query intention into several subtasks and plan the subtask execution path, and provide answers to the user according to the result information fed back by the code execution module; the code model module is used to generate a code task from the several subtasks; the code execution module is used to execute the code task and generate the result information.

[0006] When the central control model module divides the user's query intention into several subtasks, it adopts the context learning ability of the large language model, and guides the large language model to perform task decomposition and planning on the user's query intention by using a few sample prompts, thereby obtaining several subtasks and subtask execution paths.

[0007] When the central control model provides an answer to the user based on the result information fed back by the code execution module, it determines whether the result information matches the subtask based on the result information. If the result information matches the subtask, it determines whether the subtask is the final subtask. If the subtask is not the final subtask, the next subtask is dynamically adjusted based on the subtask execution path and the result information, and the adjusted next subtask is sent to the code model module; if the subtask is the final subtask, the result information is provided to the user as an answer.

[0008] If the result information does not match the subtask, determine whether the user's query intention lacks key information. If the user's query intention lacks key information, seek additional information from the user; if the user's query intention does not lack key information, adjust the subtask according to the key information.

[0009] The technical solution adopted by the present invention to solve the technical problem is: to provide a method for using an interactive data agent collaborative computing system, comprising the following steps:

[0010] Receive the user's query intent;

[0011] The central control model module is used to divide the user's query intention into several subtasks and plan the subtask execution path;

[0012] Sending the i-th subtask to the code model module, and the code model module generates the i-th code task from the i-th subtask;

[0013] The code execution module is used to execute the i-th code task and generate the i-th result information, and the i-th result information is fed back to the central control model module;

[0014] The central control model module provides answers to users based on the i-th result information fed back.

[0015] The central control model module adopts the context learning ability of the large language model, and guides the large language model to perform task decomposition and planning on the user's query intention by using a small number of sample prompts, thereby obtaining a number of subtasks and subtask execution paths.

[0016] The central control model module provides an answer to the user according to the i-th result information fed back, specifically including:

[0017] Determining whether the i-th result information matches the i-th subtask according to the i-th result information;

[0018] If the i-th result information matches the i-th subtask, determining whether the i-th subtask is the final subtask;

[0019] If the i-th subtask is not the final subtask, dynamically adjusting the next subtask according to the i-th result information based on the subtask execution path, and sending the adjusted next subtask to the code model module;

[0020] If the i-th subtask is the final subtask, the i-th result information is provided to the user as an answer.

[0021] If the i-th result information does not match the i-th subtask, determining whether the user's query intention lacks key information;

[0022] If key information is missing from the user's query intent, then additional information is sought from the user;

[0023] If the user's query intention does not lack key information, the i-th subtask is adjusted according to the key information, and the adjusted i-th subtask is sent to the code model module.

[0024] Beneficial Effects

[0025] Due to the adoption of the above-mentioned technical solution, the present invention has the following advantages and positive effects compared with the prior art: the present invention introduces interactive collaborative work and a loop feedback mechanism into the traditional linear workflow, thereby transforming the original single-direction workflow into a closed-loop system, so that the data agent has higher flexibility and self-optimization ability when processing queries. This improvement not only greatly improves the success rate of the data agent in processing data mining tasks, but also significantly improves the accuracy, providing users with more reliable and accurate services. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is an overall framework diagram of the interactive data agent collaborative computing system according to an embodiment of the present invention;

[0027] Figure 2 is an implementation flow chart of the interactive data agent collaborative computing system according to an embodiment of the present invention;

[0028] Figure 3 is a result diagram obtained by completing the fourth subtask in an embodiment of the present invention;

[0029] Figure 4 This is a result diagram obtained by completing the newly added fifth subtask in the embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the appended claims of the application equally.

[0031] The embodiments of the present invention relate to an interactive data agent collaborative computing system, which aims to improve the problems existing in the natural language data question answering system, especially the problems of inaccurate understanding of user intent and low task completion rate when processing complex user queries. Figure 1 As shown, the system includes a central control model module, a code model module and a code execution module. The central control model module is used to divide the user's query intention into several subtasks and plan the subtask execution path, and provide answers to the user according to the result information fed back by the code execution module; the code model module is used to generate code tasks from the several subtasks; and the code execution module is used to execute the code tasks and generate the result information.

[0032] The central control model module in this embodiment plays a core role in the entire system and is responsible for the life cycle of the question-answering process. It is not only responsible for semantic understanding and task planning, but also for dynamic management of the question-answering process based on the results. When the central control model module in this embodiment divides the user's query intent into several subtasks, it uses the context learning ability of the large language model and guides the large language model to perform task decomposition and planning on the user's query intent by using a few sample prompts, and obtains several subtasks and subtask execution paths.

[0033] The central control model module in this embodiment assigns subtasks to the code model module, which is responsible for the code generation of subtasks. The code model module generates code tasks according to the subtask content. The code execution module executes the code tasks, that is, performs specific data processing and calculations, and returns the processing results to the central control model module, which then determines whether the task results meet user requirements.

[0034] During the judgment, the central control model module determines whether the result information matches the subtask according to the result information. If the result information matches the subtask, it determines whether the subtask is the final subtask. If the subtask is not the final subtask, the next subtask is dynamically adjusted according to the result information based on the subtask execution path, and the adjusted next subtask is sent to the code model module; if the subtask is the final subtask, the result information is provided to the user as an answer. For example, when the subtask is to obtain the current date, if the result returned after the subtask is executed is "2024-05-1010:20:23", the central control model can obtain the date information "2024-05-10", and the task plan will proceed normally; if the result returned after the subtask is completed is "10:20:23", the central control model module does not obtain the date information of the year, month and day, and needs to further clarify the subtask content, requiring the return of the current date instead of the specific time information, and reallocating the subtask.

[0035] If the result information does not match the subtask, that is, the result information cannot advance the answer, then it is determined whether the user's query intention lacks key information. If the user's query intention lacks key information, then additional information is sought from the user; if the user's query intention does not lack key information, then the subtask is adjusted according to the key information. For example, the user's intention is "to see the total sales", and it can be found that the key information - "time period" is missing in the intention. At this time, the central control model module can send a request for additional information to the user, such as outputting "Which time period do you want to see?" After receiving the reply, the user gives a specific time period. After the central control model module obtains the key information, it can adjust the subtask according to the key information.

[0036] The specific use process of the interactive data agent collaborative computing system of this embodiment is as follows: Figure 2 As shown, the following steps are included:

[0037] Step 1, receiving the user's query intention;

[0038] Step 2: using a central control model module to divide the user's query intention into several subtasks and plan the subtask execution path;

[0039] Step 3: Send the first subtask to the code model module according to the subtask execution path, and the code model module generates the first code task from the first subtask;

[0040] Step 4, using the code execution module to execute the first code task and generate the first result information, and feeding back the first result information to the central control model module;

[0041] Step 5, the central control model module determines whether the first result information matches the first subtask according to the first result fed back; if they match, it determines whether the first subtask is the final subtask. If it is not the final subtask, it dynamically adjusts the next subtask (i.e., the second subtask) according to the first result information based on the subtask execution path, and sends the adjusted subtask to the code model module, and returns to step 3; if the first subtask is the final subtask, it provides the first result information to the user as an answer. When the first result information does not match the first subtask, it determines whether the user's query intention lacks key information; if the user's query intention lacks key information, it seeks additional information from the user; if the user's query intention does not lack key information, it adjusts the first subtask according to the key information, and sends the adjusted first subtask to the code model module, and returns to step 3.

[0042] It is not difficult to find that this implementation method transforms the original one-way workflow into a closed-loop system by introducing interactive collaborative work and a loop feedback mechanism into the traditional linear workflow, so that the data agent has higher flexibility and self-optimization ability when processing queries. This improvement not only greatly improves the success rate of the data agent in processing data mining tasks, but also significantly improves the accuracy, providing users with more reliable and accurate services.

[0043] The present invention is further illustrated by a specific embodiment below.

[0044] In this embodiment, the query content entered by the user is "Please help me check the sales trend in the past five years." The central control model module performs semantic understanding on the query content entered by the user, extracts key information such as "the past five years", "sales" and "trend", and begins to decompose the user task, and finally decomposes it into the following four subtasks:

[0045] (1) I need to verify the table structure in the database to ensure that it contains the "Sales" and "Date" related fields.

[0046] (2) I need to determine the current year so that I can calculate the five-year time frame that the user is referring to.

[0047] (3) Extract the corresponding sales data based on the determined date range.

[0048] (4) Use appropriate charts to present the extracted data.

[0049] After the central control model module disassembles the subtasks, it sends the first subtask "Verify database table structure" to the code model module. The code model module generates the corresponding code task and sends it to the code execution module for execution, obtaining the results shown in Table 1:

[0050] Table 1

[0051] Name Sales Amount Product Categories Sales Area Customer Type date Zhang San 2000 electronic Beijing personal 2020-01-05 Li Si 1500 food Shanghai Merchants 2020-02-10 Zhang San 2500 clothing Guangzhou personal 2021-03-01

[0052] The central control model module determines the result: the above data table contains fields related to date and sales amount. The first subtask is completed and the next subtask is executed - determine the current year and calculate the time range. The central control model module sends the second subtask to the code model module, which generates the corresponding code task and sends it to the code execution module for execution. The result is "Current Year: 2024"

[0053] The central control model module determines the result and dynamically adjusts the task: if the current year is 2024, the time range of the past five years refers to 2020 to 2024; the central control model module adjusts the third subtask to "extract annual sales data from 2020 to 2024" and sends it to the code model module. The code model module generates the corresponding code task and sends it to the code execution module for execution. The results are shown in Table 2.

[0054] Table 2

[0055] years Sales Amount 2020 3500 2021 2500 2022 3000 2023 2200 2024 2800

[0056] The central control model module determines the result and dynamically adjusts the task: the date and sales amount have been taken out and counted. Next, a line chart will be drawn to show the trend of sales amount. Therefore, the central control model module adjusts the fourth subtask to "use a line chart to show the trend of sales amount" and sends it to the code model module. The code model module generates the corresponding code task and sends it to the code execution module for execution. The result is as follows: Figure 3 shown.

[0057] The central control model module outputs a chart and actively asks: The chart of the sales data change trend from 2020 to 2024 in annual units is successfully drawn. Do you need to display the sales change trend from 2020 to 2024 in monthly or daily units? ", the user replies "No, please switch to a bar chart display."

[0058] The central control model module will add a fifth subtask based on the user's reply, which is to use a bar chart to show the sales trend, and send the subtask to the code model module. The code model module generates the corresponding code task and sends it to the code execution module for execution. Figure 4 The central control model receives the result and outputs it to the user.

[0059] It can be seen that the present invention can effectively identify and capture the user's query intention, and then continuously optimize the task execution process through dynamic task allocation and the constructed loop feedback mechanism, thereby improving the completion rate and accuracy of the task. In order to improve the accuracy of the data agent in the question-answering system, the present invention particularly emphasizes its interactive characteristics. When encountering complex queries or requiring more precise information to ensure accurate completion of the task, the data agent will actively interact with the user and request the user to provide necessary supplementary information. This significantly improves the quality and relevance of the answer.

Claims

1. An interactive data agent collaborative computing system, characterized in that: It includes a central control model module, a code model module and a code execution module; the central control model module is used to divide the user's query intention into several subtasks and plan the subtask execution path, and provide answers to the user according to the result information fed back by the code execution module; The code model module is used to generate code tasks from the plurality of subtasks; The code execution module is used to execute the code task and generate the result information.

2. The interactive data agent collaborative computing system according to claim 1, characterized in that: When the central control model module divides the user's query intention into several subtasks, it adopts the context learning ability of the large language model, and guides the large language model to perform task decomposition and planning on the user's query intention by using a few sample prompts, thereby obtaining several subtasks and subtask execution paths.

3. The interactive data agent collaborative computing system according to claim 1, characterized in that: When the central control model provides an answer to the user according to the result information fed back by the code execution module, it determines whether the result information matches the subtask according to the result information. If the result information matches the subtask, it determines whether the subtask is the final subtask. If the subtask is not the final subtask, it dynamically adjusts the next subtask according to the result information based on the subtask execution path, and sends the adjusted next subtask to the code model module; If the subtask is the final subtask, the result information is provided to the user as an answer.

4. The interactive data agent collaborative computing system according to claim 3, characterized in that: If the result information does not match the subtask, determine whether the user's query intention lacks key information. If the user's query intention lacks key information, seek additional information from the user; if the user's query intention does not lack key information, adjust the subtask according to the key information.

5. A method for using the interactive data agent collaborative computing system as claimed in claim 1, characterized in that: The following steps are involved: Receive the user's query intent; A central control model module is used to divide the user's query intention into several subtasks and plan the subtask execution path; Sending the i-th subtask to the code model module, and the code model module generates the i-th code task from the i-th subtask; The code execution module is used to execute the i-th code task and generate the i-th result information, and the i-th result information is fed back to the central control model module; The central control model module provides answers to users based on the i-th result information fed back.

6. The method for using the interactive data agent collaborative computing system according to claim 5, characterized in that: The central control model module adopts the context learning ability of the large language model, and guides the large language model to perform task decomposition and planning on the user's query intention by using a small number of sample prompts, thereby obtaining a number of subtasks and subtask execution paths.

7. The method for using the interactive data agent collaborative computing system according to claim 5, characterized in that: The central control model module provides an answer to the user according to the i-th result information fed back, specifically including: Determining whether the i-th result information matches the i-th subtask according to the i-th result information; If the i-th result information matches the i-th subtask, determining whether the i-th subtask is the final subtask; If the i-th subtask is not the final subtask, then based on the subtask execution path, the next subtask is dynamically adjusted according to the i-th result information, and the adjusted next subtask is sent to the code model module; if the i-th subtask is the final subtask, then the i-th result information is provided to the user as an answer.

8. The method for using the interactive data agent collaborative computing system according to claim 5, characterized in that: If the i-th result information does not match the i-th subtask, determining whether the user's query intention lacks key information; If key information is missing from the user's query intent, then additional information is sought from the user; If the user's query intention does not lack key information, the i-th subtask is adjusted according to the key information, and the adjusted i-th subtask is sent to the code model module.

Citation Information

Patent Citations

  • Intelligent robot integrating chat, knowledge and task questions and answers

    CN113515613A

  • Interaction method and device based on large language model, medium and computing equipment

    CN117556008A

  • Multi-agent cooperation system and strategy method suitable for industrial digitization

    CN117649129A

Cited By

  • Method for using large language model, electronic device including large language model, and large language model-based system

    WO2026116897A1