Interactive question and answer task processing method based on multi-agent cooperation and related device
Through the interactive Q&A task processing method based on multi-agent collaboration, tasks are decomposed and distributed to the corresponding sub-agents, solving the problem of handling complex problems raised by users, and achieving efficient task resolution and user needs satisfaction.
Patent Information
- Application Number
- CN202411613560.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-12
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-12
AI Technical Summary
It is difficult for the prior art to effectively use agents to solve complex problems raised by users, especially in interactive question-and-answer tasks that require users to answer subjectively and verify the effect based on answer results.
The interactive Q&A task processing method based on multi-agent collaboration is adopted, and the main agent understands the user's task needs, decomposes the overall task into multiple sub-target tasks, and distributes each sub-target task to the corresponding sub-agent. The interactive question-and-answer agent presents an interactive graphical user interface to the user. The user generates feedback answers through interactive action answers. The associated sub-target agent generates association processing results based on the answer results, and the main agent finally determines the target processing results.
Through the coordination between the main agent and multiple sub-agents, complex tasks can be handled efficiently and task resolution can be improved. Especially in interactive Q&A tasks that require users to answer subjectively, users' task needs can be met faster through interactive answers.
Smart Images

Figure CN119537542A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, specifically to the field of artificial intelligence technology such as generative large language models and intelligent agents, and especially to a method, device, electronic device, computer-readable storage medium and computer program product for processing interactive question-answering tasks based on multi-agent collaboration. Background Art
[0002] With the rapid development and iteration of generative large language models, they have a better understanding of user input requirements and the ability to give corresponding results.
[0003] In order to make the output of the generative large language model more in line with specific needs, an intelligent agent was constructed by using the generative large language model as the base model and combining it with pre-set role parameters.
[0004] How to use intelligent agents to solve complex problems raised by users is still a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention
[0005] The embodiments of the present disclosure propose a method, device, electronic device, computer-readable storage medium and computer program product for processing interactive question-answering tasks based on multi-agent collaboration.
[0006] In a first aspect, an embodiment of the present disclosure proposes a method for processing interactive question-and-answer tasks based on multi-agent collaboration, comprising: determining a target task to be solved based on a user's natural language input; decomposing the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task, and issuing each sub-target task to each sub-target agent including at least an interactive question-and-answer agent; wherein different sub-agents are used to process different types of sub-tasks; controlling the interactive question-and-answer agent to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and presenting an answer result corresponding to the received feedback answer; wherein the interactive graphical user interface includes question and interactive answer areas; controlling associated sub-target agents among the plurality of sub-target agents to generate corresponding associated processing results based on the answer results output by the interactive question-and-answer agent; wherein the associated sub-target agent is a sub-target agent that relies on the answer result as part of the task input information; and determining a target processing result corresponding to the target task based on the associated processing result.
[0007] In a second aspect, an embodiment of the present disclosure proposes an interactive question-and-answer task processing device based on multi-agent collaboration, comprising: a target task determination unit, configured to determine the target task to be solved according to the natural language input of the user; a task decomposition and corresponding distribution unit, configured to decompose the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task, and distribute each sub-target task to each sub-target agent including at least an interactive question-and-answer agent; wherein different sub-agents are used to process different types of sub-tasks; an interactive interface control presentation unit, configured to control the interactive question-and-answer agent to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and present an answer result corresponding to the received feedback answer; wherein the interactive graphical user interface includes a question and an interactive answer area; an associated processing result control generation unit, configured to control an associated sub-target agent among the plurality of sub-target agents to generate a corresponding associated processing result based on the answer result output by the interactive question-and-answer agent; wherein the associated sub-target agent is a sub-target agent that relies on the answer result as part of the task input information; a target processing result determination unit, configured to determine a target processing result corresponding to the target task based on the associated processing result.
[0008] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that when executed, the at least one processor can implement the interactive question-and-answer task processing method based on multi-agent collaboration as described in the first aspect.
[0009] In a fourth aspect, an embodiment of the present disclosure provides a non-transitory computer-readable storage medium storing computer instructions, which are used to enable a computer to implement the interactive question-and-answer task processing method based on multi-agent collaboration as described in the first aspect when executed.
[0010] In a fifth aspect, an embodiment of the present disclosure provides a computer program product comprising a computer program, which, when executed by a processor, can implement the steps of the interactive question-and-answer task processing method based on multi-agent collaboration as described in the first aspect.
[0011] The interactive question-and-answer task processing solution based on multi-agent collaboration provided by the present disclosure is that the main agent determines the target task to be solved according to the user's natural language input, and then decomposes the target task into multiple sub-target tasks including at least an interactive question-and-answer task, and then sends each sub-target task to each sub-target agent including at least an interactive question-and-answer agent. Then, the interactive question-and-answer agent will present an interactive graphical user interface corresponding to the interactive question-and-answer task under the control of the main agent, and present an answer result corresponding to the received feedback answer. The associated sub-target agent that depends on the answer result will also generate a corresponding associated processing result based on the answer result under the control of the main agent. Finally, the main agent will obtain the target processing result corresponding to the target task based on the associated processing result.
[0012] That is, the present disclosure adopts an agent cluster formed by a pre-built main agent and multiple sub-agents to handle the task requirements proposed by users, wherein the main agent is responsible for understanding the user's task requirements and decomposing the overall task requirements into multiple sub-target tasks that can be executed by different sub-agents, and each sub-agent processes the sub-task that matches itself according to the mobilization of the main agent. That is, through the collaboration between the main agent and each sub-agent, different components of complex tasks can be handled in their respective roles, and because different sub-agents are pre-built to be dedicated to handling different types of tasks, the scheme of the main agent and multiple sub-agents used in the present disclosure to collaboratively handle task requirements has better processing effects on a single type of task than using a single, all-powerful agent, and the relatively small-scale sub-agents are also convenient for flexible addition and modification of corresponding functions. This scheme can bring better comprehensive task processing effects at a lower overall cost.
[0013] Especially for interactive question-and-answer tasks that require users to give subjective answers to questions and verify the effectiveness based on the answer results, the interactive question-and-answer agent provides users with an interactive graphical interface that includes questions and interactive answer areas, which will enable users' task requirements to be met more quickly through interactive answering, thereby improving the task solving effect.
[0014] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Other features, objects and advantages of the present disclosure will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0016] Figure 1is an exemplary system architecture in which the present disclosure may be applied;
[0017] Figure 2 A flowchart of a method for processing an interactive question-and-answer task based on multi-agent collaboration provided in an embodiment of the present disclosure;
[0018] Figure 3 A flowchart of a method for determining a target task according to natural language input provided by an embodiment of the present disclosure;
[0019] Figure 4 A flowchart of a method for decomposing a target task into multiple sub-target tasks including an instant information inquiry task according to task elements provided in an embodiment of the present disclosure;
[0020] Figure 5 A flowchart of a method for creating a sub-agent provided in an embodiment of the present disclosure;
[0021] Figure 6 A flow chart of a method for controlling an interactive question-and-answer agent to output an answer result provided by an embodiment of the present disclosure;
[0022] Figure 7 A flowchart of a method for controlling an interactive question-and-answer agent and an associated sub-target agent to generate an associated processing result and obtain a target processing result provided by an embodiment of the present disclosure;
[0023] Figure 8 A two-branch schematic diagram of controlling a sub-target agent to output a corresponding sub-processing result provided by an embodiment of the present disclosure;
[0024] Figure 9-1 to Figure 9-14 All of them are example diagrams of an interactive question-and-answer task processing method based on multi-agent collaboration in an application scenario provided by an embodiment of the present disclosure;
[0025] Fig.10 A structural block diagram of an interactive question-answering task processing device based on multi-agent collaboration provided by an embodiment of the present disclosure;
[0026] Fig.11 A schematic diagram of the structure of an electronic device suitable for executing an interactive question-and-answer task processing method based on multi-agent collaboration provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0027] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.
[0028] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0029] Figure 1 An exemplary system architecture 100 is shown to which an embodiment of the method, apparatus, electronic device and computer-readable storage medium for processing interactive question-answering tasks based on multi-agent collaboration of the present disclosure can be applied.
[0030] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0031] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 and server 105 can be installed with various applications for realizing information communication between the two, such as complex task processing applications, browser applications, instant messaging applications, etc.
[0032] Terminal devices 101, 102, 103 and server 105 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with display screens, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, etc.; when terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above, which can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here. When server 105 is hardware, it can be implemented as a distributed server cluster composed of multiple servers, or as a single server; when the server is software, it can be implemented as multiple software or software modules, or as a single software or software module, and no specific limitation is made here.
[0033] The server 105 can provide various services through various built-in applications. For example, a complex task processing application that can provide a one-click processing service for complex tasks can be used as an example. When the server 105 runs the complex task processing application, it can achieve the following effects: first, the natural language input transmitted by the user through the terminal devices 101, 102, and 103 is received through the network 104, and then the target task to be solved is determined according to the natural language input; then, the target task is decomposed into a plurality of sub-target tasks including at least an interactive question-and-answer task, and each sub-target task is correspondingly issued to each sub-target agent including at least an interactive question-and-answer agent, and different sub-target agents are assigned to each sub-target agent. The agent is used to process different types of sub-tasks; next, the interactive question-and-answer agent is controlled to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and present an answer result corresponding to the received feedback answer, wherein the interactive graphical user interface includes question and interactive answer areas; and, an associated sub-target agent among multiple sub-target agents is controlled to generate a corresponding associated processing result based on the answer result output by the interactive question-and-answer agent, wherein the associated sub-target agent is a sub-target agent that relies on the answer result as part of the task input information; finally, a target processing result corresponding to the target task is determined based on the associated processing result.
[0034] Furthermore, the server 105 may also transmit the target processing result back to the terminal devices 101 , 102 , 103 via the network 104 , so that the terminal devices 101 , 102 , 103 display the received target processing result to the user.
[0035] It should be noted that, in addition to being obtained from the terminal devices 101, 102, 103 through the network 104, the natural language input can also be pre-stored in the server 105 in various ways. Therefore, when the server 105 detects that the data has been stored locally (for example, starting to process the tasks to be processed before), it can choose to directly obtain the data locally. In this case, the exemplary system architecture 100 may also not include the terminal devices 101, 102, 103 and the network 104.
[0036] Since processing complex tasks requires more computing resources and stronger computing power, the interactive question-answering task processing method based on multi-agent collaboration provided in the subsequent embodiments of the present disclosure is generally executed by the server 105 with stronger computing power and more computing resources, and accordingly, the interactive question-answering task processing device based on multi-agent collaboration is generally also set in the server 105. However, it should also be pointed out that when the terminal devices 101, 102, and 103 also have computing power and computing resources that meet the requirements, the terminal devices 101, 102, and 103 can also complete the various operations assigned to the server 105 through the complex task processing applications installed thereon, and then output the same results as the server 105. Especially when there are multiple terminal devices with different computing capabilities, but when the terminal device where the complex task processing application is located has strong computing capabilities and more remaining computing resources, the terminal device can be allowed to perform the above-mentioned operations, thereby appropriately reducing the computing pressure of the server 105. Accordingly, the interactive question-answering task processing device based on multi-agent collaboration can also be set in the terminal devices 101, 102, and 103. In this case, the exemplary system architecture 100 may also not include the server 105 and the network 104.
[0037] It should be noted that the main agent and each sub-target agent can be installed on the server 105 at the same time, and each sub-target agent called and controlled by the main agent can also be installed on other servers or terminal devices different from the server 105, which is not specifically limited here.
[0038] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0039] Please refer to Figure 2 , Figure 2 A flowchart of a method for processing an interactive question-and-answer task based on multi-agent collaboration provided by an embodiment of the present disclosure, wherein process 200 includes the following steps:
[0040] Step 201: Determine a target task to be solved according to a natural language input of a user;
[0041] This step is intended to be performed by the execution subject (e.g. Figure 1 The server 105 carrying the main agent shown in the figure fully understands and analyzes the received natural language input of the user (for example, through Figure 1The network 104 shown receives the natural language input by the user through the terminal devices 101, 102, 103 used, and then determines the target task that the user wants to solve, that is, the target task corresponds to a task requirement.
[0042] Specifically, this step is usually a comprehensive process involving multiple steps, involving complex intelligent reasoning links such as language understanding, context analysis, and task modeling. For example, receiving input, preprocessing and normalization, semantic understanding and intent recognition, task modeling, and reasoning.
[0043] Among them, the main intelligent agent as the execution subject first receives the user's natural language input, then preprocesses and normalizes the received natural language input to ensure that it can be effectively understood and processed, and then understands the user's intention reflected by the input information obtained after preprocessing and normalization based on the context, thereby determining the target task.
[0044] Among them, the input form of natural language may be voice, text, image, video or other forms of language data. For the convenience of processing, conversion technology can also be used to convert non-text natural language input into natural language text that is easy to identify and process; considering that natural language input has multiple forms of request information (such as direct requests, indirect requests and multi-step requests), in order to effectively understand the user's actual task requirements, pre-processing and normalization processing including word segmentation and annotation, noise removal, spelling correction and synonym processing can also be used; in the intent recognition stage, keyword extraction, entity recognition and contextual information can be used to accurately identify the intention that the user wants to express through natural language input; in order to convert the identified intention into a specific task, task modeling operations including task abstraction (mapping the user's needs to a task framework that the system can recognize) and target task definition can also be used to finally obtain the target task corresponding to the natural language input.
[0045] Step 202: decompose the target task into multiple sub-target tasks including at least an interactive question-answering task, and issue each sub-target task to each sub-target agent including at least an interactive question-answering agent;
[0046] Based on step 201, this step aims to decompose the target task into multiple sub-target tasks by the execution subject, and distribute each sub-target task to each sub-target agent. Among them, the multiple sub-target tasks decomposed in this step at least include interactive question-and-answer tasks, and correspondingly, each sub-target agent should at least include an interactive question-and-answer agent dedicated to processing interactive question-and-answer tasks.
[0047] Among them, different sub-agents are used to process different types of sub-tasks, that is, sub-agents dedicated to a single type of task are created in advance according to different task types. There are various ways to divide task types, such as according to task processing steps, task processing methods, task complexity, data types involved in the task, etc., which are not specifically limited here, that is, different sub-agents are used to process different atomic tasks (that is, the smallest unit of task, the "smallest" here is a relative concept, not an absolute concept, and it is the smallest task unit that can be decomposed at present).
[0048] Among them, interactive question-and-answer tasks are interactive tasks that require users to answer questions subjectively and test the results of the answers, such as knowledge point learning and mastering tasks (especially digital knowledge points, such as the chicken-rabbit-in-the-same-cage problem), question-and-answer game tasks, etc. Taking the task of "wanting to learn the chicken-rabbit-in-the-same-cage problem" as an example, it can be seen that: this task not only requires learning the definition of the problem, but also requires learning and mastering the knowledge point as much as possible by answering exercises and test questions after knowing the definition. Therefore, the execution focus of this type of task is to provide interactive problem solutions in the form of interactive questions, so that users can solve task requirements in the interactive process.
[0049] It should be noted that this embodiment requires that in this step, the multiple sub-target tasks decomposed from the target task should include at least an interactive question-and-answer task. Apart from this, there is no limitation on the task types of other decomposed sub-target tasks, which can be any type of task. Correspondingly, it is also necessary to use a corresponding sub-target intelligent agent with the corresponding type of task processing capability.
[0050] Step 203: Control the interactive question and answer system to present an interactive graphical user interface corresponding to the interactive question and answer task to the user, and present an answer result corresponding to the received feedback answer;
[0051] On the basis of step 202, this step aims to present the interactive GUI corresponding to the interactive quiz task to the user by the interactive quiz execution subject, and present the answer result corresponding to the received feedback answer. The interactive GUI includes a question and interactive answer area, and the user's feedback answer should be input in the interactive answer area. There are many input methods, such as clicking on the options, inputting the answer or a specific graphic in the blank filling area, etc. The answer result corresponding to the feedback answer is the judgment conclusion of whether the feedback answer is correct, for example, it may include: wrong answer and correct answer.
[0052] Step 204: controlling the associated sub-goal agent among the multiple sub-goal agents to generate corresponding associated processing results based on the answer results output by the interactive question-and-answer agent;
[0053] On the basis of step 203, this step aims to control the associated sub-goal agents among the multiple sub-goal agents by the above-mentioned execution subject to generate corresponding associated processing results based on the answer results output by the interactive question and answer agent. The associated sub-goal agents are sub-goal agents that rely on the answer results as part of the task input information. Therefore, the execution of the corresponding sub-goal tasks by the associated sub-goal agents is actually arranged after the interactive question and answer agent outputs the answer results.
[0054] It should be understood that each sub-goal agent, including the interactive question-and-answer agent and the associated sub-goal agent, should actually output the sub-processing results corresponding to the issued sub-goal tasks under the call or arrangement of the main agent. Specifically, the main agent can simultaneously inform the execution order or execution trigger signal when issuing each sub-goal task to each sub-goal agent, so that each sub-goal agent executes the corresponding sub-goal task according to the informed execution order or executes the corresponding sub-goal task when judging that the current state meets the requirements of the execution trigger signal, that is, each sub-goal agent actively executes the corresponding sub-goal task at the appropriate time; the main agent can also actively call each sub-goal agent to execute the corresponding sub-goal task as required when determining that different sub-goal agents meet the execution time, that is, each sub-goal agent only passively executes the corresponding sub-goal task according to the call instruction.
[0055] Both the active execution mechanism and the passive execution mechanism mentioned above belong to different collaborative forms of the main intelligent agent and multiple sub-intelligent agents to jointly process tasks. The specific choice can be based on the actual needs of the actual application scenario, and no specific limitation is made here.
[0056] In addition, in the process of each sub-goal agent executing the corresponding sub-goal task to obtain the corresponding sub-processing result, the user's personalized preferences can also be combined. Among them, the multiple sub-processing results at least include the answer result corresponding to the interactive question-and-answer task output by the interactive question-and-answer agent and the associated processing result output by the associated sub-goal agent. The remaining sub-processing results can also be the results obtained by other agents when processing tasks of the corresponding type. The sub-processing result can be obtained by relying on other sub-processing results, or it can be determined by itself according to the task description information of the sub-goal task without relying on other sub-processing results.
[0057] Step 205: Determine a target processing result corresponding to the target task based on the associated processing result.
[0058] On the basis of step 203, this step aims to determine the target processing result corresponding to the target task based on the associated processing result.
[0059] Specifically, in the process of processing associated processing results to obtain target processing results, we can fully refer to the decomposition method of decomposing multiple sub-target tasks from the target task, and adopt a variety of processing methods including deduplication, adjustment of expressions, adjustment of sentence patterns and enrichment of expressions, so that the final target processing results can not only meet the user's task requirements, but also highlight the key requirement result information as much as possible and improve information recognition.
[0060] The interactive question-answering task processing method based on multi-agent collaboration provided by the embodiment of the present disclosure adopts an agent cluster formed by a pre-built main agent and multiple sub-agents to process the task requirements proposed by the user, wherein the main agent is responsible for understanding the user's task requirements and decomposing the overall task requirements into multiple sub-target tasks that can be executed by different sub-agents, and each sub-agent processes the sub-tasks that match itself according to the mobilization of the main agent. That is, through the collaboration between the main agent and each sub-agent, different components of the complex task can be processed in their respective roles, and because different sub-agents are pre-built to be dedicated to processing different types of tasks, the scheme of the main agent and multiple sub-agents used in the present disclosure to collaboratively process task requirements has better processing effects on a single type of task than using a single, all-powerful agent, and the relatively small-scale sub-agents are also convenient for flexibly adding and changing corresponding functions. This scheme can bring better comprehensive task processing effects at a lower comprehensive cost.
[0061] Especially for interactive question-and-answer tasks that require users to give subjective answers to questions and verify the effectiveness based on the answer results, the interactive question-and-answer agent provides users with an interactive graphical interface that includes questions and interactive answer areas, which will enable users' task requirements to be met more quickly through interactive answering, thereby improving the task solving effect.
[0062] To deepen your understanding of how to determine the target tasks, please refer to Figure 3 , Figure 3 A flowchart of a method for determining a target task according to a natural language input provided by an embodiment of the present disclosure, wherein process 300 includes the following steps:
[0063] Step 301: Convert the user's natural language input into natural language text;
[0064] This step aims to convert the natural language input in various forms into natural language text that is easy to recognize and output by the above-mentioned execution subject, that is, to uniformly convert various forms into text form. For example, speech-to-text technology can be used to convert natural speech signals in speech form into natural language text.
[0065] Step 302: performing intent recognition on the natural language text to obtain an intent recognition result including the intent of learning and mastering the knowledge point;
[0066] On the basis of step 301, this step aims to perform intent recognition on the natural language text by the above-mentioned execution subject to obtain an intent recognition result including the intent of learning and mastering knowledge points. That is, the intent recognition result at least includes the intent of learning and mastering knowledge points, and may also include other intents, which are not specifically limited here.
[0067] An implementation method including but not limited to may include the following specific steps:
[0068] First, the execution subject performs semantic understanding on the natural language text to obtain a semantic understanding result; then, the execution subject determines a preliminary intention (or suspected intention) based on the semantic understanding result. In order to improve the accuracy of intention determination, the execution subject may also use the personalized preferences of the user to perform personalized corrections on the preliminary intention to obtain an intention recognition result including the intention to verify the needs combined with instant information.
[0069] That is, this implementation method first determines the preliminary intention that directly corresponds to the natural language text by using semantic understanding, and then uses the user's personalized preferences to personalize the preliminary intention, such as screening, excluding, and supplementing implicit or missing information, so that the final intention recognition result is more in line with the user's actual expectations.
[0070] In addition to this implementation method, you can also use the various technologies involved in the multiple processing links mentioned in step 201 to combine them with actual application scenarios to construct other implementation methods to obtain a determined intent recognition result, which will not be listed here one by one.
[0071] Step 303: Determine the target task to be solved according to the intention recognition result.
[0072] Based on step 302, this step aims to determine the target task to be solved by the execution subject according to the intention recognition result. The target task includes tasks for learning and mastering knowledge points.
[0073] Specifically, in order to convert the identified intent into a specific task, task modeling operations including task abstraction (mapping the user's needs into a task framework recognizable by the system) and target task definition can also be used to ultimately obtain the target task corresponding to the natural language input.
[0074] This embodiment provides a more specific implementation method for determining the target task based on natural language input through steps 301 to 303, which includes the key processing steps of conversion of expression form, intent recognition, and determination of the target task based on the intent recognition result, so as to provide an implementation plan with high feasibility and more accurate determination of the target task as much as possible.
[0075] To deepen your understanding of how to decompose the target task into multiple sub-target tasks, see Figure 4 , Figure 4 A flowchart of a method for decomposing a target task into multiple sub-target tasks including a clear result acquisition task according to task elements is provided in an embodiment of the present disclosure, wherein the process 400 includes the following steps:
[0076] Step 401: determining a plurality of task elements constituting a target task;
[0077] This step aims to enable the above-mentioned execution subject to determine multiple task elements that constitute the target task, and different task elements correspond to different types of tasks.
[0078] Among them, task elements refer to the basic units or components that constitute the target task. Each target task may be composed of several independent elements, which are the key steps, subtasks or resources necessary to achieve the target task. Each task element may correspond to an independent task, and they work together to promote the completion of the target task.
[0079] Assuming the target task is "develop a new software product", the target task can be decomposed into multiple task elements, each of which corresponds to a different type of task:
[0080] 1) Demand analysis (management tasks): determine user needs and market needs;
[0081] 2) System design (technical tasks): architecture design, database design, interface design;
[0082] 3) Coding development (technical tasks): programmers write codes and implement functions;
[0083] 4) Testing and quality control (technical and management tasks): unit testing, integration testing, quality assurance;
[0084] 5) Marketing and promotion (management and communication tasks): formulate marketing plans and promote products.
[0085] Step 402: according to a single task element that specifically requires the user to answer the question subjectively and checks whether the knowledge point to which the question belongs has been learned and mastered according to the answer result, an interactive question-and-answer task for learning and mastering the knowledge point is decomposed from the target task;
[0086] This step aims to decompose the interactive question-and-answer tasks from the target tasks by the above-mentioned execution subject. Specifically, it relies on a single task element that requires users to give subjective answers to the questions raised and to verify whether the knowledge points to which the questions belong have been learned and mastered based on the answer results.
[0087] Specifically, in order to fully master a certain knowledge point, the interactive question-answering agent can be designed into two, one is the knowledge point practice answering agent corresponding to the knowledge point practice stage, and the other is the knowledge point mastery test agent corresponding to the practice result verification stage. The difference is that one provides multiple practice questions and the other only provides a small number of test questions.
[0088] Step 403: Decompose the target task into multiple sub-target tasks each containing only a single task element.
[0089] This step aims to decompose the target task into multiple sub-target tasks containing only a single task element, namely, the sub-target task at least includes the interactive question-and-answer task, by referring to the method of decomposing the interactive question-and-answer task by task elements in step 402 by the above-mentioned execution subject.
[0090] This embodiment provides a task decomposition method through steps 401 to 403, which is based on the task elements that constitute the target task and decomposes each task element into sub-target tasks. Combined with the pre-definition of the task elements (for example, according to the method of constructing different sub-agents), the task decomposition can be flexibly completed according to actual conditions.
[0091] Furthermore, considering that even the same task element may be attached with additional conditions, it is necessary to decompose it into sub-target tasks carrying the additional conditions when decomposing the task, so that when the sub-target tasks are subsequently issued to the sub-target agents, the appropriate sub-agent can be selected as the sub-target agent based on the additional conditions.
[0092] One implementation method including but not limited to may be: in response to the existence of additional conditions corresponding to the task elements, decompose the target task into multiple sub-target tasks containing only a single task element and the corresponding additional conditions, and the additional conditions may include: a specified task processing method and / or a specified result presentation form. Among them, different task processing methods are abstracted from different processing logics for the same type of tasks (for example, the same type of tasks may have multiple different processing logics, but they can all get the correct answer in the end); the result presentation form may include: at least one of text, table, image, video, and interactive card.
[0093] For a deeper understanding of how to pre-create different sub-agents, see Figure 5 , Figure 5 A flowchart of a method for creating a sub-agent provided by an embodiment of the present disclosure, wherein the process 500 includes the following steps:
[0094] Step 501: Determine a set of task types for creating a sub-agent;
[0095] Step 502: For each type of task in the task type set, a sub-agent having the task processing capability of the corresponding type of task is constructed.
[0096] This embodiment provides a solution for building a sub-agent with task processing capabilities of the corresponding type of task for each type of task determined through steps 501 and 502. Further, the number of sub-agents corresponding to each type of task may be only one or multiple, and the multiple sub-agents may be different or completely the same. Whether the distinction is needed depends on whether the type of task usually contains further additional conditions.
[0097] Specifically, for a first target type task with at least two task processing methods, a sub-agent corresponding to each task processing method can be constructed; for a second target type task with at least two result presentation forms, a sub-agent corresponding to each result presentation form can be constructed.
[0098] To deepen your understanding of how interactive question-answering agents output answers, see Figure 6 , Figure 6 A flowchart of a method for controlling an interactive question-and-answer agent to output an answer result provided by an embodiment of the present disclosure, wherein the process 600 includes the following steps:
[0099] Step 601: Control the interactive question-answering agent to determine questions and interactive answering areas based on the received task input information;
[0100] The above-mentioned execution subject controls the interactive question-and-answer intelligent agent to determine the question and the interactive answer area based on the received task input information, wherein the received task input information is determined based on the task description information related to the interactive question-and-answer task decomposed from the target task. Furthermore, the received task input information can also be determined based on the task description information related to the interactive question-and-answer task decomposed from the target task and the personalized preferences of the user, that is, by additionally introducing the personalized preferences of the user, the matching degree between the determined task input information and the actual task requirements of the user can be improved as much as possible.
[0101] Specifically, the personalized preference may include at least one of the following:
[0102] Age, education level, areas of interest, historical consumption preferences.
[0103] Taking age in personalized preferences as an example, when the above-mentioned execution subject controls the interactive question-and-answer agent to determine the question based on the received task input information, it will be specifically manifested as the above-mentioned execution subject controlling the interactive question-and-answer agent to determine the question matching the cognitive level corresponding to the age based on the received task input information, so that the generated question matches the cognitive level of the user's current age.
[0104] Step 602: Control the interactive question-answering agent to present an interactive graphical user interface including questions and interactive answering areas to the user;
[0105] Based on step 601, this step aims to control the interactive question-answering agent to present an interactive graphical user interface including questions and interactive answering areas to the user by the above-mentioned execution subject, so as to enable the user to answer in the interactive answering area by presenting an interactive graphical user interface including questions and interactive answering areas, thereby facilitating the receipt of feedback answers.
[0106] Step 603: Control the interactive question-answering agent to present an answer result determined according to the degree of difference between the feedback answer received from the interactive answering area and the standard answer to the question;
[0107] This step is intended to control the interactive question-answering agent to present an answer result determined by the difference between the feedback answer received from the interactive answering area and the standard answer to the question. That is, the greater the difference between the feedback answer and the standard answer, the more likely the answer result is to be an incorrect answer, and vice versa, the closer the answer result is to the correct answer.
[0108] This step provides a specific implementation method for controlling the interactive question-answering agent to present an interactive graphical user interface, receive feedback answers, and analyze the feedback answers to obtain answer results through steps 601-603.
[0109] To further deepen the understanding of how the associated sub-goal agent generates the associated processing results based on the answer results and how to obtain the target processing results based on the associated processing results, please refer to Figure 7 , Figure 7 A flowchart of a method for controlling an interactive question-answering agent and an associated sub-target agent to generate an associated processing result and obtain a target processing result provided by an embodiment of the present disclosure, wherein the process 700 includes the following steps:
[0110] Step 701: In response to the feedback answer being an incorrect answer different from the standard answer, controlling the interactive question-answering agent to regenerate an interactive graphical user interface including a new question different from the question corresponding to the last incorrect answer and an interactive answering area matching the new question;
[0111] This step is aimed at the situation where the interactive question-and-answer intelligent agent determines that the current feedback answer is a wrong answer. On this basis, the above-mentioned execution subject will also control the interactive question-and-answer intelligent agent to regenerate an interactive graphical user interface containing a new question different from the question corresponding to the last wrong answer and an interactive answering area matching the new question. In order to increase the accuracy of answers to new questions, the new question is also controlled here to be generated based on the question corresponding to the last time the user answered correctly, that is, by making the new question as close as possible to the last question answered correctly, but with certain differences, the learning and mastery of the knowledge points to which the question belongs can be further consolidated.
[0112] Step 702: in response to obtaining a preset number of answer results, controlling the interactive question-and-answer agent to output a prompt message indicating that the interactive question-and-answer is completed;
[0113] This step is aimed at requiring the interactive question agent to continuously initiate a preset number of questions and require the user to answer them, and then obtain a preset number of answer results. The above-mentioned execution subject also controls the interactive question and answer agent to output a prompt message that the interactive question and answer is completed, that is, the prompt message represents that the preset number of questions have been answered.
[0114] Step 703: in response to receiving the prompt information, controlling the accuracy calculation agent to determine the answer accuracy according to a preset number of answer results;
[0115] On the basis of step 702, this step aims to control the accuracy calculation agent to determine the accuracy of the answer based on a preset number of answer results when the above-mentioned execution subject receives the prompt information, that is, the accuracy calculation agent in this step is a specific associated sub-target agent.
[0116] Step 704: controlling the learning suggestion agent among the plurality of sub-goal agents to output matching learning suggestions according to the answer accuracy rate;
[0117] Based on step 703, this step aims to control the learning suggestion agent to output matching learning suggestions according to the correctness of the responses by the above-mentioned execution subject.
[0118] Step 705: Summarize the number of answer results, answer accuracy and learning suggestions to obtain the target processing result corresponding to the target task.
[0119] Based on step 704, this step aims to have the above-mentioned execution subject summarize the number of answer results, answer accuracy and learning suggestions, and obtain the target processing result corresponding to the target task, which is used to comprehensively describe the mastery of this knowledge point.
[0120] Based on any of the above embodiments, considering that the user may modify the content of part of the output sub-processing results or issue new restriction information at any time during the entire process of each sub-target agent performing the corresponding sub-target task and outputting the sub-processing results, please refer to Figure 8 , Figure 8 A two-branch schematic diagram of controlling a sub-target agent to output a corresponding sub-processing result provided by an embodiment of the present disclosure, wherein the process 800 includes the following steps:
[0121] Step 801: In response to the instruction input box being in the selected state, controlling the currently executed sub-goal agent to pause outputting the corresponding sub-processing result;
[0122] The instruction input box is used for the user to input instructions, and the instruction input box is in an unselected state during the process of the sub-target agent outputting the corresponding sub-processing result. That is, in the schemes of the embodiments provided in the disclosure, once the instruction input box is in a selected state, it may represent that the user needs to input some new instructions and needs to interrupt the original sub-processing result output process.
[0123] Step 802: In response to no new instruction being generated in the process of the instruction input box being restored from the selected state to the unselected state, controlling the currently executed sub-goal agent to continue outputting the corresponding sub-processing result;
[0124] This step corresponds to a branch situation in which no new instruction is generated during the process of the instruction input box being restored from the selected state to the unselected state, that is, the user does not enter a new instruction, so the sub-processing result output result originally interrupted by the selection of the instruction input box will continue.
[0125] Step 803: in response to a new instruction being generated in the process of the instruction input box being restored from a selected state to an unselected state, extracting correction information from the new instruction;
[0126] This step corresponds to another branch situation in which a new instruction is generated during the process of the instruction input box being restored from a selected state to an unselected state. In this case, the above-mentioned execution subject is required to extract correction information from the new instruction, and the correction information includes corrections to the original information and additions of new information.
[0127] Step 804: Determine the sub-target agent affected by the correction information;
[0128] Step 805: Control the affected sub-target agent to re-output the corresponding sub-processing result in combination with the correction information.
[0129] Steps 804 and 805 are that the execution subject first determines the sub-target agent affected by the correction information, and then controls the affected sub-target agent to re-output the corresponding sub-processing result in combination with the correction information. Specifically, if all sub-target agents are affected, the execution can also be restarted from the process of outputting the sub-processing result of the first executed sub-target agent based on the correction information.
[0130] To deepen understanding, the present disclosure also provides a specific implementation scheme that attempts to eliminate the defects of the prior art and overcome the problems of the prior art in combination with the actual defects of the prior art in specific application scenarios:
[0131] The existing way to meet needs is mainly through search engines, using multi-layer system funnels to recall, sort, and mix heterogeneous results of relevant web pages. Each strategy funnel sorts web pages based on basic relevance, user feedback behavior, authority and other information and truncates the output to the next layer. The disadvantage of this system is that it can only match relevance from the content level through relevance, and cannot understand and solve problems for users from the task level. In addition, web pages can only use fixed content to meet user needs. When users express personalized needs and need to be further satisfied through multiple rounds, high-quality and coherent satisfaction effects cannot be achieved. Again, the entire matching process is not explainable to users, and users can only perform the final information screening.
[0132] Related assistant products based on big models usually try to solve this problem through an all-round assistant based on big models. However, it is difficult for a single big model to achieve high-quality satisfaction in different open fields and tasks. In professional fields and special scenarios, it is difficult for a single assistant to establish trust among users and achieve the expected satisfaction.
[0133] That is, the relevant technologies have the following difficulties in completing tasks in open fields:
[0134] 1) How to efficiently understand and decompose the needs expressed by users into key steps;
[0135] 2) How to find the best way to meet each key step;
[0136] 3) How to output the execution process and integration results in a user-friendly and complete manner.
[0137] To solve the above difficulties, this embodiment proposes a solution for user demand interactive end-to-end task completion based on multi-agent collaboration. The characteristics of this solution are as follows:
[0138] Before, searches were all single-point, with one query (query word, query statement, search word, search statement) completing one requirement. Each requirement required the user to think and define it by themselves, which was too costly for the user. For a complex task, the user often did not know how to break down the task and conceive multiple queries for searching. The paradigm proposed in this embodiment is intended to help users complete tasks thoroughly. The task completion paradigm can help users complete the problems that need to be solved or the tasks to be completed in one step. Compared with the single query satisfaction of the search, the task satisfaction paradigm deeply understands the user's complete task and breaks it down to complete it, which is more in line with the user's needs.
[0139] This embodiment is based on the collaboration between multiple agents to achieve the decomposition and multi-step satisfaction of user needs, and finally automatically integrates them into a complete solution that can meet the entire task. This solution can complete the following functions:
[0140] 1) Understand the key steps of the requirements, build a main agent, understand the intention of the user's expressed requirements and break them down into key steps that can be completed by multiple sub-task agents;
[0141] 2) Subtask agent generation: Based on the understanding of key steps and agent capabilities, the main agent is responsible for generating multiple subtask agent candidates required to complete the current task;
[0142] 3) Interactive task completion: multiple subtask agents generate personalized interactive steps and user interaction interfaces based on tasks, key steps, and user personalized preference information input, allowing users to complete the entire task through interaction with multiple agents;
[0143] 4) Integrated output of the complete solution: the main agent integrates the task decomposition process and interacts with multiple agents to generate results, and completes the interactive presentation of the entire solution through conversational choreography.
[0144] That is, this embodiment constructs a main agent to schedule multiple subtask agents to collaborate, and completes the entire task through collaboration between the main agent and multiple subtask agents, and collaboration between multiple subtask agents. Compared with search or intelligent assistant products, it can be completed using agents with better effects in subdivided fields, and the effect of satisfaction is better;
[0145] By providing a scheduling and distribution mechanism based on an end-to-end generative large model, the large model has stronger expressive power, can overcome the problems of insufficient effect consistency and global optimality of the traditional multi-layer sorting mechanism, and can achieve task-oriented global optimal combination scheduling optimization. From the perspective of model capability, it can achieve end-to-end alignment training of the model from the perspective of agent understanding and task understanding.
[0146] It also provides conversational choreography to complete tasks. Through conversational choreography, complex tasks are presented through sub-tasks of multiple steps in a logical order under the application scenario. The user experience will be very smooth in this process, rather than arbitrary combination or giving all the content at once, which makes the information too complex for users to digest. And because the generative completion of the entire task is personalized, everything from task decomposition to sub-task completion is generated based on user input and user preferences, and different solution decompositions, sub-task agent completion solutions and presentation effects are generated for different users, thereby improving user satisfaction.
[0147] The implementation block diagram of this solution is as follows Figure 9-1 As shown in the figure, the input of the system includes: user input requirements and a set of distributable agents (including the basic settings of these agents, mounted plug-ins, workflows, etc.), and the output is multi-level generated content to complete the task. The entire system is built based on multi-agent collaboration, and mainly includes two types of agents: 1) Main Agent: It understands the overall task, decomposes and connects the tasks, and gives the final result. 2) Task Agent: The main agent calls the summoning agent to collaborate to complete the task issued by the main agent.
[0148] The solution provided in this embodiment can be widely applied to various information-satisfying applications or independent products. The following takes the scenario where the BaiX application is used as an example to illustrate the specific application form of this embodiment:
[0149] While performing traditional searches, users can switch to the functional usage mode provided by this embodiment with one click (such as the "AI button" on the bottom bar in the figure below). A primary school student inputs "chickens and rabbits in the same cage" and displays the results of web search and intelligent answer (corresponding to Figure 9-2 ), use the AI button to switch to the interactive multi-agent satisfaction page of the "chicken and rabbit in the same cage problem", as shown below Figure 9-3 The displayed page generates a graphical teaching method that is suitable for primary school students.
[0150] On the task completion page, multiple task agents are displayed through interactive interfaces automatically generated. Users can complete the entire process of teaching, practicing, and testing the chicken-rabbit-in-the-same-cage problem through interaction. The agent "Primary School Math Teacher Zhang" is responsible for decomposing the entire problem and breaking it down into various subtasks, including summoning the "Problem Solving Method Teacher" agent to complete the teaching task, the "Socratic Assistant" agent to complete the practice task, and the "Chicken-Rabbit-in-the-Same-Cage Test" agent to complete the test task. The results of each task completion agent are completed through a user-friendly generative interactive UI, such as Figure 9-4 to Figure 9-7 The process of completing the interactive teaching task of the "Problem-solving Teacher" intelligent agent is presented in sequence.
[0151] When the user completes an interactive task of an agent, the host agent "Primary School Mathematics Teacher Zhang" guides the user to the next step of the practice session. Similarly, the chicken and rabbit in the same cage problem is completed through the interaction of the automatically generated UI. Figure 9-8 to Figure 9-9 Then the main agent schedules the subtask agent "chicken and rabbit in the same cage test" to complete the test of this knowledge point, such as Figure 9-10 to Figure 9-12 .
[0152] Generate personalized results for different users. For example, if the user is a 12-14 year old junior high school student, the same "chicken and rabbit in the same cage" problem generates the following results: Figure 9-13 to Figure 9-14 As shown in the comparison, it can be seen Figure 9-14 A matching solution is provided for solving equations by using junior high school knowledge points.
[0153] It can be more specifically seen from the above examples that this embodiment has the following improvements and technical effects compared to the prior art:
[0154] 1) Task satisfaction paradigm: the user's request is no longer regarded as an information retrieval, but upgraded to a complete multi-agent task completion satisfaction model
[0155] The current search engines can retrieve information by matching requests with relevance, and the intelligent assistants can decompose a task into multiple steps and search for them step by step. However, decomposing tasks and satisfying users' complete needs through multi-agent collaboration is a new user needs satisfaction model. The decomposition and multi-agent capability alignment training is proposed, which can achieve high consistency between task decomposition and task completion, greatly improving the task completion effect.
[0156] 2) Multi-agent candidate generation based on multi-agent collaboration
[0157] Based on the results of task decomposition, the target collaborative agent set is generated end-to-end through the large model. This is a brand-new approach that is different from the traditional method of sorting agents through a retrieval recall sorting system. The task of multi-agent collaboration meets the need to combine multiple agents when the task is not completed. The large model is required to have a deep understanding of the task decomposition and the ability of each agent to carefully depict the boundary of the problem, and finally obtain the optimal agent set under the current goal through combinatorial optimization. The difficulties here include:
[0158] Difficulty 1: In-depth understanding of the capabilities of intelligent agents, understanding the boundaries of the capabilities of intelligent agents and the tasks that intelligent agents are good at, and carefully depicting the subtle differences between capabilities, such as the different creative styles of painting agents and the subtle differences in capabilities in photo editing.
[0159] Difficulty 2: Understanding the matching relationship between tasks and intelligent agent capabilities is not a semantic similarity match, but a deep match in task completion capabilities. It requires a deep characterization and understanding of the tasks, task types and task boundaries. Matching the open set of intelligent agent capabilities and task requirements is a great challenge.
[0160] Difficulty 3: Given a multi-agent collaborative task, obtaining the optimal combination is a combinatorial optimization problem that requires combinatorial optimization.
[0161] 3) The task completion process and results are satisfied through the interaction of end-to-end generation and automated orchestration of intelligent agents. Currently, it is difficult for search engines to display the retrieval process to users, while intelligent assistants display thinking results and single-step execution results, and the display UI is basically a pre-set style. Thanks to the task decomposition, combination and multi-subtask completion mode of multi-agent collaboration, the present invention can display the results in an end-to-end generated manner, including the steps, style and results of each step of the display content. Moreover, the results of each step and the subtasks completed by each agent are based on the user's personalized preferences, and the results can be further interacted with. This end-to-end generated experience is a comprehensive innovation. Specifically, the end-to-end generative experience includes several parts:
[0162] ① End-to-end generation of models: The construction of the main task model is completed by a unified model from task decomposition to the generation of intelligent agent sets to the tasks of the intelligent agents;
[0163] ② End-to-end generation of interactions: The generation result of the intelligent agent is not a single round of content, but through the generation of content and UI interfaces that can be interacted with in multiple rounds. Compared with the traditional form of generating single content, generating preset graphical user interfaces (GUI), and natural language user interfaces (LUI), the automatic generation and planning of combined interactive interfaces can greatly improve the ceiling of the satisfaction ability of a single intelligent agent. To achieve this ability, the intelligent agent needs to have the planning ability, in addition to the basic logic planning, to complete the interaction planning ability (UI planning). This planning ability is a major innovation in the intelligent agent, which enables the intelligent agent to plan not only in thinking tasks, but also in external interaction presentation, greatly improving the satisfaction ability and interaction friendliness of the intelligent agent.
[0164] ③ Interactively choreographed interactive satisfaction: The automated choreographed interactive display from task decomposition to task satisfaction can greatly improve the effect of task completion. It is equivalent to the automated generation of the planning for task completion, the content for task step completion, and the interactive design for step completion, which greatly improves the task scenarios that can be satisfied by multiple intelligent bodies. Especially for complex tasks, tasks that require multiple steps to be completed through complex interactions. For example, the learning of knowledge points in primary and secondary school textbooks requires a complete process of teaching, practice, and testing for students to truly master them. Traditional educational applications can only solidify the content, and it is impossible to use different forms of teaching for different knowledge. It is also difficult to achieve hierarchical coordination of learning, practicing, and testing on specific knowledge points. The method of the present invention can be fully generated end-to-end from planning, interactive design to content generation, with a revolutionary experience improvement (see application examples for details).
[0165] ④ Adding personalization to the entire end-to-end generation process can further greatly improve the satisfaction effect. For different users, the same task has significant differences in solutions, satisfaction methods, interaction design, and result planning. End-to-end generation that incorporates personalized information can make the entire effect completely tailored to the user, greatly improving the effect ceiling.
[0166] Further references Fig.10 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an interactive question-answering task processing device based on multi-agent collaboration. Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0167] like Fig.10As shown, the interactive question-and-answer task processing device 1000 based on multi-agent collaboration of this embodiment may include: a target task determination unit 1001, a task decomposition and corresponding issuance unit 1002, an interactive interface control presentation unit 1003, an associated processing result control generation unit 1004, and a target processing result determination unit 1005. Among them, the target task determination unit 1001 is configured to determine the target task to be solved according to the natural language input of the user; the task decomposition and corresponding distribution unit 1002 is configured to decompose the target task into multiple sub-target tasks including at least an interactive question-and-answer task, and distribute each sub-target task to each sub-target agent including at least an interactive question-and-answer agent; wherein different sub-agents are used to process different types of sub-tasks; the interactive interface control presentation unit 1003 is configured to control the interactive question-and-answer agent to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and present the answer result corresponding to the received feedback answer; wherein the interactive graphical user interface includes question and interactive answer area; the associated processing result control generation unit 1004 is configured to control the associated sub-target agent among the multiple sub-target agents to generate corresponding associated processing results based on the answer result output by the interactive question-and-answer agent; wherein the associated sub-target agent is a sub-target agent that relies on the answer result as part of the task input information; the target processing result determination unit 1005 is configured to determine the target processing result corresponding to the target task based on the associated processing result.
[0168] In this embodiment, in the interactive question-answering task processing device 1000 based on multi-agent collaboration: the specific processing of the target task determination unit 1001, the task decomposition and corresponding distribution unit 1002, the interactive interface control presentation unit 1003, the associated processing result control generation unit 1004, and the target processing result determination unit 1005 and the technical effects thereof can be referred to respectively. Figure 2 The relevant descriptions of steps 201 - 205 in the corresponding embodiment are not repeated here.
[0169] In some optional implementations of this embodiment, the target task determination unit 1001 may include:
[0170] a conversion subunit configured to convert a user's natural language input into a natural language text;
[0171] The intention recognition subunit is configured to perform intention recognition on the natural language text and obtain an intention recognition result including the intention of learning and mastering the knowledge point;
[0172] The target task determination subunit is configured to determine the target task to be solved according to the intention recognition result; wherein the target task includes a task for learning and mastering knowledge points.
[0173] In some optional implementations of this embodiment, the intention identification subunit may be further configured to:
[0174] Perform semantic understanding on natural language text to obtain semantic understanding results;
[0175] The preliminary intention is determined based on the semantic understanding results, and the preliminary intention is personalized and modified using the user's personalized preferences to obtain the intention recognition result including the intention to learn and master the knowledge points.
[0176] In some optional implementations of this embodiment, the task decomposition and corresponding issuing unit 1002 may include a task decomposition subunit configured to decompose the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task, and the task decomposition subunit may include:
[0177] A task element determination module is configured to determine a plurality of task elements constituting a target task; wherein different task elements correspond to different types of tasks;
[0178] The interactive question-and-answer task decomposition module is configured to decompose the interactive question-and-answer tasks for learning and mastering knowledge points from the target task according to the individual task elements that specifically require the user to give subjective answers to the questions raised and verify whether the knowledge points to which the questions belong have been learned and mastered according to the answer results;
[0179] The sub-goal task decomposition module is configured to decompose the target task into multiple sub-goal tasks each containing only a single task element; wherein the sub-goal tasks at least include interactive question-and-answer tasks.
[0180] In some optional implementations of this embodiment, the interactive question-and-answer agent includes a knowledge point practice answering agent corresponding to the knowledge point practice phase and a knowledge point mastery testing agent corresponding to the practice achievement verification phase.
[0181] In some optional implementations of this embodiment, the sub-goal task decomposition module may be further configured as follows:
[0182] In response to the existence of additional conditions corresponding to the task elements, the target task is decomposed into multiple sub-target tasks containing only a single task element and the corresponding additional conditions; wherein the additional conditions include: a specified task processing method and / or a specified result presentation form.
[0183] In some optional implementations of this embodiment, the interactive question-answering task processing device 1000 based on multi-agent collaboration may further include: a sub-agent construction unit configured to construct different sub-agents, and the sub-agent construction unit may include:
[0184] A task type set determination subunit configured to determine a task type set for creating a sub-agent;
[0185] A sub-unit is created, which is configured to construct a sub-agent with task processing capability of the corresponding type of task for each type of task in the task type set.
[0186] In some optional implementations of this embodiment, the creation subunit may be further configured to:
[0187] In response to the first target type task having at least two task processing methods, a sub-agent corresponding to each task processing method is constructed for the first target type task; wherein the different task processing methods are abstracted from different processing logics for the same type of tasks.
[0188] In some optional implementations of this embodiment, the creation subunit may be further configured to:
[0189] In response to the second target type task having at least two result presentation forms, a sub-agent corresponding to each result presentation form is constructed for the second target type task; wherein the result presentation form includes: at least one of: text, table, image, video, and interactive card.
[0190] In some optional implementations of this embodiment, the interactive interface control presentation unit 1003 may include:
[0191] The first control subunit is configured to control the interactive question-answering agent to determine the question and the interactive answering area based on the received task input information; wherein the received task input information is determined based on the task description information related to the interactive question-answering task decomposed from the target task;
[0192] A second control subunit is configured to control the interactive question-answering agent to present an interactive graphical user interface including questions and interactive answering areas to the user;
[0193] The third control subunit is configured to control the interactive question-answering agent to present an answer result determined according to the degree of difference between the feedback answer received from the interactive answering area and the standard answer to the question.
[0194] In some optional implementations of this embodiment, the interactive question-answering task processing device 1000 based on multi-agent collaboration may further include:
[0195] A regeneration control unit is configured to control the interactive question-and-answer agent to regenerate an interactive graphical user interface including a new question different from the question corresponding to the last wrong answer and an interactive answer area matching the new question in response to a feedback answer being an incorrect answer different from the standard answer; wherein the new question is generated based on the question corresponding to the last correct answer.
[0196] In some optional implementations of this embodiment, the interactive question-answering task processing device 1000 based on multi-agent collaboration may further include:
[0197] A prompt information output control unit is configured to control the interactive question-and-answer agent to output prompt information indicating that the interactive question-and-answer is completed in response to obtaining a preset number of answer results;
[0198] Correspondingly, the association processing result control generation unit 1004 is further configured to:
[0199] In response to receiving the prompt information, the accuracy calculation agent is controlled to determine the answer accuracy according to a preset number of answer results.
[0200] In some optional implementations of this embodiment, the target processing result determination unit 1005 may be further configured to:
[0201] Controlling the learning suggestion agent among multiple sub-goal agents to output matching learning suggestions according to the correct rate of answers;
[0202] The number of answer results, answer accuracy and learning suggestions are summarized to obtain the target processing results corresponding to the target task.
[0203] In some optional implementations of this embodiment, the received task input information is determined based on task description information related to the interactive question-and-answer task decomposed from the target task and the user's personalized preferences.
[0204] In some optional implementations of this embodiment, the personalized preference includes at least one of the following:
[0205] Age, education level, areas of interest, historical consumption preferences.
[0206] In some optional implementations of this embodiment, the first control subunit may include a question determination control module configured to control the interactive question-answering agent to determine a question based on the received task input information, and the question determination control module may be further configured to:
[0207] In response to the personalized preferences including age, the interactive question-answering agent is controlled to determine questions that match the cognitive level corresponding to the age based on the received task input information.
[0208] In some optional implementations of this embodiment, the interactive question-answering task processing device 1000 based on multi-agent collaboration may further include:
[0209] The pause output control unit is configured to control the currently executed sub-agent to pause outputting the corresponding sub-processing result in response to the instruction input box being in a selected state; wherein the instruction input box is used for the user to input instructions, and the instruction input box is in an unselected state during the process of the sub-agent outputting the corresponding sub-processing result;
[0210] a correction information extraction unit, configured to extract correction information from a new instruction in response to a new instruction being generated in the process of the instruction input box being restored from a selected state to an unselected state;
[0211] An affected sub-goal agent determination unit, configured to determine the sub-goal agent affected by the correction information;
[0212] The re-output control unit is configured to control the affected sub-target agent to re-output the corresponding sub-processing result in combination with the correction information.
[0213] This embodiment exists as a device embodiment corresponding to the above method embodiment. The interactive question-answering task processing device based on multi-agent collaboration provided by this embodiment adopts an agent cluster formed by a pre-built main agent and multiple sub-agents to process the task requirements proposed by the user, wherein the main agent is responsible for understanding the user's task requirements and decomposing the overall task requirements into multiple sub-target tasks that can be executed by different sub-agents, and each sub-agent processes the sub-tasks that match itself according to the mobilization of the main agent. That is, through the collaboration between the main agent and each sub-agent, different components of a complex task can be processed in their respective roles, and since different sub-agents are pre-built to be dedicated to processing different types of tasks, the scheme of the main agent and multiple sub-agents used in the present disclosure to collaboratively process task requirements has better processing effects on a single type of task than using a single, all-powerful agent, and the relatively small-scale sub-agents are also convenient for flexibly adding and changing corresponding functions. This scheme can bring better comprehensive task processing effects at a lower comprehensive cost.
[0214] Especially for interactive question-and-answer tasks that require users to give subjective answers to questions and verify the effectiveness based on the answer results, the interactive question-and-answer agent provides users with an interactive graphical interface that includes questions and interactive answer areas, which will enable users' task requirements to be met more quickly through interactive answering, thereby improving the task solving effect.
[0215] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can implement the interactive question-and-answer task processing method based on multi-agent collaboration described in any of the above embodiments when executing.
[0216] According to an embodiment of the present disclosure, the present disclosure also provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the interactive question-and-answer task processing method based on multi-agent collaboration described in any of the above embodiments when executed.
[0217] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which, when executed by a processor, can implement the interactive question-and-answer task processing method based on multi-agent collaboration described in any of the above embodiments.
[0218] Fig.11 A schematic block diagram of an example electronic device 1100 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0219] like Fig.11 As shown, the device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1102 or a computer program loaded from a storage unit 1108 into a random access memory (RAM) 1103. In the RAM 1103, various programs and data required for the operation of the device 1100 can also be stored. The computing unit 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0220] A number of components in the device 1100 are connected to the I / O interface 1105, including: an input unit 1106, such as a keyboard, a mouse, etc.; an output unit 1107, such as various types of displays, speakers, etc.; a storage unit 1108, such as a disk, an optical disk, etc.; and a communication unit 1109, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1109 allows the device 1100 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0221] The computing unit 1101 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1101 performs the various methods and processes described above, such as an interactive question-and-answer task processing method based on multi-agent collaboration. For example, in some embodiments, the interactive question-and-answer task processing method based on multi-agent collaboration may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 1108. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1100 via ROM 1102 and / or the communication unit 1109. When the computer program is loaded into RAM 1103 and executed by the computing unit 1101, one or more steps of the interactive question-and-answer task processing method based on multi-agent collaboration described above may be executed. Alternatively, in other embodiments, the computing unit 1101 may be configured in any other appropriate manner (e.g., by means of firmware) to execute an interactive question-and-answer task processing method based on multi-agent collaboration.
[0222] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0223] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0224] 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.
[0225] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0226] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0227] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
[0228] The technical solution of the disclosed embodiment adopts an agent cluster formed by a pre-built main agent and multiple sub-agents to process the task requirements proposed by the user, wherein the main agent is responsible for understanding the user's task requirements and decomposing the overall task requirements into multiple sub-target tasks that can be executed by different sub-agents, and each sub-agent processes the sub-tasks that match itself according to the mobilization of the main agent. That is, through the collaboration between the main agent and each sub-agent, different components of complex tasks can be processed in their respective roles, and because different sub-agents are pre-built to be dedicated to processing different types of tasks, the scheme of the main agent and multiple sub-agents used in the present disclosure to collaboratively process task requirements has better processing effects on a single type of task than using a single, all-powerful agent, and the relatively small-scale sub-agents are also convenient for flexibly adding and changing corresponding functions. This scheme can bring better comprehensive task processing effects at a lower overall cost.
[0229] Especially for interactive question-and-answer tasks that require users to give subjective answers to questions and verify the effectiveness based on the answer results, the interactive question-and-answer agent provides users with an interactive graphical interface that includes questions and interactive answer areas, which will enable users' task requirements to be met more quickly through interactive answering, thereby improving the task solving effect.
[0230] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0231] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for processing interactive question-answering tasks based on multi-agent collaboration, applied to a main agent, comprising: Determine the target task to be solved based on the user's natural language input; Decomposing the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task, and issuing each of the sub-target tasks to each sub-target agent including at least an interactive question-and-answer agent; wherein different sub-agents are used to process different types of sub-tasks; Controlling the interactive question-and-answer agent to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and presenting an answer result corresponding to the received feedback answer; wherein the interactive graphical user interface includes a question and interactive answer area; Controlling an associated sub-goal agent among the plurality of sub-goal agents to generate a corresponding associated processing result based on the answer result output by the interactive question-and-answer agent; wherein the associated sub-goal agent is a sub-goal agent that depends on the answer result as part of the task input information; A target processing result corresponding to the target task is determined based on the associated processing result.
2. The method according to claim 1, wherein: The step of determining the target task to be solved according to the user's natural language input includes: Converting the user's natural language input into natural language text; Performing intent recognition on the natural language text to obtain an intent recognition result including the intent to learn and master the knowledge point; Determine the target task to be solved according to the intention recognition result; wherein the target task includes a task for learning and mastering knowledge points.
3. The method according to claim 2, wherein: The performing of intent recognition on the natural language text to obtain an intent recognition result including the knowledge point learning and mastering intent includes: Performing semantic understanding on the natural language text to obtain a semantic understanding result; A preliminary intention is determined according to the semantic understanding result, and the preliminary intention is personalized modified using the personalized preference of the user to obtain an intention recognition result including the intention of learning and mastering the knowledge point.
4. The method according to claim 2, wherein: Decomposing the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task comprises: Determine a plurality of task elements constituting the target task; wherein different task elements correspond to different types of tasks; According to a single task element that specifically requires the user to answer the questions subjectively and checks whether the knowledge points to which the questions belong have been learned and mastered according to the answer results, an interactive question-and-answer task for learning and mastering the knowledge points is decomposed from the target task; The target task is decomposed into a plurality of sub-target tasks each including only a single task element; wherein the sub-target tasks at least include the interactive question-and-answer task.
5. The method according to claim 4, wherein: The interactive question-answering agent includes a knowledge point practice answering agent corresponding to the knowledge point practice stage and a knowledge point mastery test agent corresponding to the practice result verification stage.
6. The method according to claim 4, wherein: Decomposing the target task into a plurality of sub-target tasks each containing only a single task element comprises: In response to the existence of additional conditions corresponding to the task elements, the target task is decomposed into multiple sub-target tasks each containing only a single task element and the corresponding additional conditions; wherein the additional conditions include: a specified task processing method and / or a specified result presentation form.
7. The method according to claim 1, wherein: The process of constructing different sub-agents includes: Determining a set of task types for creating sub-agents; For each type of task in the task type set, a sub-agent having the task processing capability of the corresponding type of task is constructed.
8. The method according to claim 7, wherein: For each type of task in the task type set, a sub-agent having the task processing capability of the corresponding type of task is constructed, including: In response to the first target type task having at least two task processing methods, a sub-agent corresponding to each task processing method is constructed for the first target type task; wherein different task processing methods are abstracted from different processing logics for the same type of tasks.
9. The method according to claim 7, wherein: For each type of task in the task type set, a sub-agent having the task processing capability of the corresponding type of task is constructed, including: In response to the second target type task having at least two result presentation forms, a sub-agent corresponding to each result presentation form is constructed for the second target type task; wherein the result presentation form includes: at least one of: text type, table type, image type, video type, and interactive card type.
10. The method according to claim 1, wherein: The controlling the interactive question-and-answer agent to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and presenting an answer result corresponding to the received feedback answer, comprises: Controlling the interactive question-and-answer agent to determine the question and the interactive answer area based on the received task input information; wherein the received task input information is determined based on the task description information related to the interactive question-and-answer task decomposed from the target task; Controlling the interactive question-answering agent to present an interactive graphical user interface including the question and the interactive answering area to the user; The interactive question-and-answer agent is controlled to present an answer result determined according to the degree of difference between the feedback answer received from the interactive answering area and the standard answer to the question.
11. The method according to claim 1, further comprising: In response to the feedback answer being an incorrect answer different from the standard answer, the interactive question-and-answer agent is controlled to regenerate an interactive graphical user interface including a new question different from the question corresponding to the last incorrect answer and an interactive answering area matching the new question; wherein the new question is generated based on the question corresponding to the last correct answer.
12. The method according to claim 11, further comprising: In response to obtaining a preset number of answer results, controlling the interactive question-and-answer agent to output prompt information indicating that the interactive question-and-answer is completed; Correspondingly, the controlling of the associated sub-goal agent among the plurality of sub-goal agents to generate corresponding associated processing results based on the answer results output by the interactive question-and-answer agent includes: In response to receiving the prompt information, the accuracy calculation agent is controlled to determine the answer accuracy according to the preset number of answer results.
13. The method according to claim 12, wherein: The determining the target processing result corresponding to the target task based on the association processing result includes: Controlling a learning suggestion agent among the plurality of sub-goal agents to output matching learning suggestions according to the answer accuracy rate; The number of answer results, the answer accuracy rate and the learning suggestions are summarized to obtain a target processing result corresponding to the target task.
14. The method according to claim 10, wherein: The received task input information is determined based on task description information related to the interactive question-and-answer task decomposed from the target task and the personalized preference of the user.
15. The method according to claim 14, wherein: The personalized preference includes at least one of the following: Age, education level, areas of interest, historical consumption preferences.
16. The method according to 15, wherein: Controlling the interactive question-answering agent to determine the question based on the received task input information comprises: In response to the personalized preference including the age, the interactive question-and-answer agent is controlled to determine questions that match the cognitive level corresponding to the age based on the received task input information.
17. The method according to any one of claims 1 to 16, further comprising: In response to the instruction input box being in a selected state, controlling the currently executed sub-agent to pause outputting the corresponding sub-processing result; wherein the instruction input box is used for the user to input instructions, and the instruction input box is in an unselected state during the process of the sub-agent outputting the corresponding sub-processing result; In response to a new instruction being generated in the process of the instruction input box being restored from the selected state to the unselected state, extracting correction information from the new instruction; Determining the sub-target agent affected by the correction information; Control the affected sub-target agent to re-output the corresponding sub-processing result in combination with the correction information.
18. An interactive question-answering task processing device based on multi-agent collaboration, applied to a main agent, comprising: A target task determination unit, configured to determine a target task to be solved according to a natural language input of a user; The task decomposition and corresponding distribution unit is configured to decompose the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task, and distribute each of the sub-target tasks to each sub-target agent including at least an interactive question-and-answer agent; wherein different sub-agents are used to process different types of sub-tasks; An interactive interface control and presentation unit is configured to control the interactive question-and-answer agent to present an interactive graphical user interface corresponding to the interactive question-and-answer task to the user, and present an answer result corresponding to the received feedback answer; wherein the interactive graphical user interface includes a question and interactive answer area; The associated processing result control generating unit is configured to control the associated sub-goal agent among the plurality of sub-goal agents to generate a corresponding associated processing result based on the answer result output by the interactive question-answering agent; wherein the associated sub-goal agent is a sub-goal agent that depends on the answer result as part of the task input information; The target processing result determining unit is configured to determine the target processing result corresponding to the target task based on the associated processing result.
19. The device according to claim 18, wherein: The target task determination unit comprises: a conversion subunit, configured to convert the user's natural language input into a natural language text; An intention recognition subunit is configured to perform intention recognition on the natural language text to obtain an intention recognition result including the intention of learning and mastering the knowledge point; The target task determination subunit is configured to determine the target task to be solved according to the intention recognition result; wherein the target task includes a task for learning and mastering knowledge points.
20. The device according to claim 19, wherein The intention recognition subunit is further configured to: Performing semantic understanding on the natural language text to obtain a semantic understanding result; A preliminary intention is determined according to the semantic understanding result, and the preliminary intention is personalized modified using the personalized preference of the user to obtain an intention recognition result including the intention of learning and mastering the knowledge point.
21. The device according to claim 19, wherein The task decomposition and corresponding issuing unit includes a task decomposition subunit configured to decompose the target task into a plurality of sub-target tasks including at least an interactive question-and-answer task, and the task decomposition subunit includes: A task element determination module is configured to determine a plurality of task elements constituting the target task; wherein different task elements correspond to different types of tasks; The interactive question-and-answer task decomposition module is configured to decompose the interactive question-and-answer task for learning and mastering the knowledge point from the target task according to a single task element that specifically requires the user to give a subjective answer to the question and to check whether the knowledge point to which the question belongs has been learned and mastered according to the answer result; The sub-goal task decomposition module is configured to decompose the target task into multiple sub-goal tasks that only contain a single task element; wherein the sub-goal tasks at least include the interactive question-and-answer task.
22. The device according to claim 21, wherein The interactive question-answering agent includes a knowledge point practice answering agent corresponding to the knowledge point practice stage and a knowledge point mastery test agent corresponding to the practice result verification stage.
23. The device according to claim 21, wherein The sub-goal task decomposition module is further configured as follows: In response to the existence of additional conditions corresponding to the task elements, the target task is decomposed into multiple sub-target tasks each containing only a single task element and the corresponding additional conditions; wherein the additional conditions include: a specified task processing method and / or a specified result presentation form.
24. The apparatus of claim 18, further comprising: A sub-agent construction unit configured to construct different sub-agents, the sub-agent construction unit comprising: A task type set determination subunit configured to determine a task type set for creating a sub-agent; A sub-unit is created, and is configured to construct a sub-agent with task processing capability of the corresponding type of task for each type of task in the task type set.
25. The device according to claim 24, wherein: The creation subunit is further configured to: In response to the first target type task having at least two task processing methods, a sub-agent corresponding to each task processing method is constructed for the first target type task; wherein different task processing methods are abstracted from different processing logics for the same type of tasks.
26. The device according to claim 24, wherein: The creation subunit is further configured to: In response to the second target type task having at least two result presentation forms, a sub-agent corresponding to each result presentation form is constructed for the second target type task; wherein the result presentation form includes: at least one of: text type, table type, image type, video type, and interactive card type.
27. The device according to claim 18, wherein The interactive interface control presentation unit comprises: A first control subunit is configured to control the interactive question-and-answer agent to determine the question and the interactive answer area based on the received task input information; wherein the received task input information is determined based on the task description information related to the interactive question-and-answer task decomposed from the target task; A second control subunit is configured to control the interactive question-answering agent to present an interactive graphical user interface including the question and the interactive answering area to the user; The third control subunit is configured to control the interactive question-and-answer agent to present an answer result determined according to the degree of difference between the feedback answer received from the interactive answering area and the standard answer to the question.
28. The apparatus of claim 18, further comprising: A regeneration control unit is configured to control the interactive question-and-answer agent to regenerate an interactive graphical user interface including a new question different from the question corresponding to the last wrong answer and an interactive answer area matching the new question in response to the feedback answer being an incorrect answer different from the standard answer; wherein the new question is generated based on the question corresponding to the last correct answer.
29. The apparatus according to claim 28, further comprising: A prompt information output control unit, configured to control the interactive question-and-answer agent to output prompt information indicating that the interactive question-and-answer is completed in response to obtaining a preset number of answer results; Correspondingly, the association processing result control generation unit is further configured to: In response to receiving the prompt information, the accuracy calculation agent is controlled to determine the answer accuracy according to the preset number of answer results.
30. The device according to claim 29, wherein: The target processing result determination unit is further configured to: Controlling a learning suggestion agent among the plurality of sub-goal agents to output matching learning suggestions according to the answer accuracy rate; The number of answer results, the answer accuracy rate and the learning suggestions are summarized to obtain a target processing result corresponding to the target task.
31. The apparatus of claim 27, wherein: The received task input information is determined based on task description information related to the interactive question-and-answer task decomposed from the target task and the personalized preference of the user.
32. The device according to claim 31, wherein The personalized preference includes at least one of the following: Age, education level, areas of interest, historical consumption preferences.
33. The device according to 32, wherein: The first control subunit includes a question determination control module configured to control the interactive question-answering agent to determine the question based on the received task input information, and the question determination control module is further configured to: In response to the personalized preference including the age, the interactive question-and-answer agent is controlled to determine questions that match the cognitive level corresponding to the age based on the received task input information.
34. The apparatus according to any one of claims 18 to 33, further comprising: A pause output control unit is configured to control the currently executed sub-agent to pause outputting the corresponding sub-processing result in response to the instruction input box being in a selected state; wherein the instruction input box is used for the user to input instructions, and the instruction input box is in an unselected state during the process of the sub-agent outputting the corresponding sub-processing result; a correction information extraction unit, configured to extract correction information from a new instruction in response to the instruction input box generating a new instruction in the process of restoring from the selected state to the unselected state; An affected sub-target agent determining unit, configured to determine the sub-target agent affected by the correction information; The re-output control unit is configured to control the affected sub-target agent to re-output the corresponding sub-processing result in combination with the correction information.
35. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the interactive question-and-answer task processing method based on multi-agent collaboration as described in any one of claims 1-17.
36. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the interactive question-answering task processing method based on multi-agent collaboration as described in any one of claims 1-17.
37. A computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the interactive question-and-answer task processing method based on multi-agent collaboration according to any one of claims 1 to 17.
Citation Information
Patent Citations
Text prediction model training method and device and storage medium
CN117574920A
Agent-based autonomous learning method and system
CN118132741A
Multi-target task question and answer enhancement method based on large language model agent
CN118152515A
Dialectical knowledge transfer learning method and device, electronic equipment and storage medium
CN118246535A
Problem processing method and device based on multiple agents and product
CN118672782A
Cited By
Multi-agent-driven multi-mode cognitive method and device, electronic equipment and medium
CN119961683A
Knowledge question and answer game content generation method and device and electronic equipment
CN120258149A
A knowledge quiz game content generation method, device and electronic equipment
CN120258149B
Intelligent agent question and answer method and device fusing different large models, medium and product
CN120353909A
Multi-agent arrangement method and device based on service grid and storage medium
CN120653405A