Method and device for correcting large-model man-machine conversation system, equipment and medium
By correcting the output results of the Agent module in real time in the large model human-computer dialogue system, the problem of uncontrollable output of large language model application services is solved, the correction efficiency and accuracy are improved, and the correction process is optimized.
Patent Information
- Application Number
- CN202410886498.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-22
AI Technical Summary
The output of application services based on large language models is uncontrollable, requiring frequent annotation updates and retraining, making the optimization process laborious and laborious.
Design a correction method for a large-model human-computer dialogue system. By sending the output results of each Agent module to the preset interface for correction, and using the administrator's correction results to update the memory module, real-time correction and training can be achieved to avoid the end of the entire system. After outputting the error, re-label and train.
It improves the correction efficiency and accuracy of the human-machine dialogue system, reduces laborious operations during the optimization process, enables timely discovery and correction of output errors during operation, and optimizes the correction process.
Smart Images

Figure CN118819931A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of deep learning technology, and more specifically, to a correction method, device, equipment and medium for a large-model human-computer dialogue system. Background Art
[0002] Generally, the output of application services based on large language models (LLM) is uncontrollable. If the output of the application service is not ideal, the annotator needs to check the offline data, update the annotations, and retrain and test the large language model, which is time-consuming and laborious. Therefore, how to optimize the correction process of application services based on large language models is a technical problem that needs to be solved in this field. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a correction method, device, equipment and medium for a large model human-computer dialogue system, so as to achieve the technical effect of optimizing the application service correction process based on a large language model.
[0004] In a first aspect, an embodiment of the present application provides a method for correcting a large-model human-computer dialogue system, wherein the human-computer dialogue system includes a plurality of agent modules; each of the agent modules is used to perform a corresponding dialogue task; the method includes:
[0005] For each target Agent module among the plurality of Agent modules, the output result after the target Agent module executes the target task of this round is sent to a preset interface; wherein the output result is stored in a preset memory module;
[0006] Acquire a correction result of the output result from the preset interface;
[0007] The output result in the memory module is updated to the revised result, so that the human-computer dialogue system uses the revised result to perform subsequent tasks.
[0008] In the above implementation process, the output errors of each Agent module can be discovered and corrected in time during the operation of the human-computer dialogue system. There is no need to re-label and re-train and test after the final output error of the entire system is discovered. Therefore, the correction efficiency of the human-computer dialogue system is greatly improved and the correction process is optimized.
[0009] Furthermore, the preset interface includes a communication interface between the management terminal and the human-computer dialogue system; the step of obtaining the correction result of the output result from the preset interface includes:
[0010] The administrator obtains the correction result of the output result at the management end from the preset interface.
[0011] In the above implementation process, the output data of each target Agent module is sent to the management end through a preset interface, so that the erroneous output data can be corrected by the administrator in a timely manner, thereby eliminating the need to re-mark and re-train and test after the final output error of the entire system is discovered. This greatly improves the correction efficiency of the human-computer dialogue system and optimizes the correction process.
[0012] Furthermore, the method further comprises:
[0013] The output result of each Agent module and the response data output by the human-computer dialogue system are sent to the management end through the preset interface.
[0014] In the above implementation process, by sending the output results of each Agent module together with the response data to the preset interface for display to the administrator, the administrator can intuitively find out which Agent module's output results of the human-computer dialogue system have problems. At the same time, the administrator is allowed to modify the output results of the target Agent module in real time, so that the administrator can intervene in the problematic output results in time.
[0015] Furthermore, the human-computer dialogue system uses the correction result to perform a subsequent task, including:
[0016] The target Agent module uses the correction result to execute the next round of the target task.
[0017] In the above implementation process, after the output result of the current round of target tasks of the target Agent module is corrected, the corrected result is used as memory data for one of the bases of the next round of target tasks of the same target Agent module, ensuring the accuracy of the output result of the previous round of target tasks, thereby ensuring that the next round of target tasks are executed based on correct data, so as to improve the accuracy of the human-computer dialogue system.
[0018] Furthermore, the input data of some of the Agent modules are output results of other Agent modules; the human-computer dialogue system uses the correction results to perform subsequent tasks, including:
[0019] The subsequent Agent module of the target Agent module uses the correction result to perform the corresponding dialogue task.
[0020] In the above implementation process, after the output result of the current round of target task of the target Agent module is corrected, the corrected result is used as one of the bases for the memory data of the dialogue task of the subsequent Agent module, ensuring the accuracy of the output result of the previous Agent module, thereby ensuring that the subsequent Agent module is executed based on correct data, so as to improve the accuracy of the human-computer dialogue system.
[0021] Further, for each of the Agent modules, the input data of the Agent module is obtained;
[0022] Acquire memory data of the Agent module from the memory module;
[0023] The Agent module is trained using the input data and the memory data.
[0024] In the above implementation process, the input data and memory data of each Agent module in the test phase are used as training samples to train the Agent module in turn. On the one hand, the Agent module can learn the characteristics of a large number of correct samples and improve the accuracy of the Agent module; on the other hand, the wrong output results can be directly corrected in the system test phase, which can improve the system iteration efficiency.
[0025] Furthermore, the method is applied to a sales scenario, and the human-computer dialogue system is a sales system.
[0026] In the above implementation process, each Agent module is corrected before the sales system goes online. There is no need to re-label, re-train and re-test after the final output error of the entire system is found. Therefore, the correction efficiency of the sales system is greatly improved and the correction process is optimized.
[0027] The second aspect of the embodiment of the present application provides a correction device for a large model human-computer dialogue system, wherein the human-computer dialogue system includes a plurality of agent modules; each of the agent modules is used to perform a corresponding dialogue task; the device includes:
[0028] A sending module, for sending, for each target Agent module among the plurality of Agent modules, an output result after the target Agent module executes the target task of this round to a preset interface; wherein the output result is stored in a preset memory module;
[0029] An acquisition module, used for acquiring a correction result of the output result from the preset interface;
[0030] An updating module is used to update the output result in the memory module to the correction result, so that the human-computer dialogue system uses the correction result to perform subsequent tasks.
[0031] According to a third aspect of the present application, an electronic device is provided, the electronic device comprising:
[0032] processor;
[0033] a memory for storing processor-executable instructions;
[0034] Wherein, when the processor calls the executable instruction, it implements the operation of any method described in the first aspect.
[0035] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implement the steps of any method described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A flowchart of a method for correcting a large-model human-computer dialogue system provided in an embodiment of the present application;
[0038] Figure 2 A flowchart of another method for correcting a large-model human-computer dialogue system provided in an embodiment of the present application;
[0039] Figure 3 A structural block diagram of a correction device for a large model human-computer dialogue system provided in an embodiment of the present application;
[0040] Figure 4 A hardware structure diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0041] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
[0042] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0043] A large language model is a deep learning model trained on massive amounts of text data. Compared to ordinary models, large language models have a very large number of parameters, usually in the millions or even hundreds of millions, while ordinary models have only a few thousand or tens of thousands of parameters. This means that large language models can process more complex and comprehensive data and learn more patterns and rules from it.
[0044] With the rapid development of big language models, many application services implement corresponding functions based on big language models. For example, human-computer dialogue systems can understand, respond to, and propose solutions to users' questions and explanations based on big language models.
[0045] However, the output of application services based on large language models is often uncontrollable. During the testing phase, if the output of the application service is not ideal, the labeler needs to re-label the output and then return to train and test the large language model. In this way, the three stages of training-testing-labeling are constantly cycled, making the entire optimization process of application services based on large language models time-consuming and laborious.
[0046] To this end, the present application provides a correction method for a large model human-computer dialogue system. The human-computer dialogue system is one of the above-mentioned application services based on a large language model. The correction method is applied to the testing phase of the human-computer dialogue system. The testing phase is the testing process performed after the human-computer dialogue system completes training and before it is put into use.
[0047] The human-computer dialogue system includes a plurality of Agent modules, and each Agent module is used to perform a corresponding dialogue task, and different Agent modules perform different dialogue tasks.
[0048] At present, there is no unified and clear definition of Agent in the industry. For example, in the MetaGPT framework, Agent can be understood as a combination of a large language model, observation, thinking, action, and memory. The large language model is one of the "brains" of the Agent; observation is the perception mechanism of the Agent, which enables it to perceive the environment; thinking involves the Agent analyzing the observation results, drawing on memory, and considering possible actions; action is the Agent's visible response to its thinking and observation; memory is the Agent's storage of past experience. For another example, in other frameworks, Agent can be understood as a combination of a large language model, tool use, planning, action, and memory.
[0049] As an example, the human-computer dialogue system may include a question extraction agent module, an information extraction agent module, a solution agent module, an inference agent module, and a speech generation agent module. Among them, the dialogue task corresponding to the question extraction agent module includes collecting user questions from user dialogues; the dialogue task corresponding to the information extraction agent module includes collecting user information; the dialogue task corresponding to the solution agent module includes generating solutions based on user questions and user information; the dialogue task corresponding to the inference agent module includes inferring whether the user needs other services or user information that needs to be collected; the dialogue task corresponding to the speech generation agent module includes generating corresponding speech as response data and outputting it to the user based on the output results of the previous agent modules.
[0050] Of course, the human-computer dialogue system may also include an Agent module for performing other dialogue tasks. The human-computer dialogue system including multiple Agent modules described in this application is not limited to the examples listed above. The above examples do not limit the types of Agent modules, and this application does not limit the types of Agent modules in the human-computer dialogue system.
[0051] Based on this, the present application provides a method for correcting a large model human-computer dialogue system, including: Figure 1 Steps 110 to 130 are shown.
[0052] Step 110: For each target Agent module among the plurality of Agent modules, the output result after the target Agent module executes the target task of this round is sent to a preset interface.
[0053] Wherein, the output result is stored in a preset memory module.
[0054] The human-computer dialogue system includes a plurality of Agent modules, each of which can be used as the target Agent module described in step 110. The output result of each target Agent module is modified by executing steps 110 to 130.
[0055] After executing the corresponding dialogue task, i.e., the target task, the target Agent module can obtain an output result. As an example, if the target Agent module is the above-mentioned question extraction Agent module, the output result can be the extracted user question. If the target Agent module is the above-mentioned information extraction Agent module, the output result can be the extracted user information, and so on.
[0056] The output result of the target Agent module can be stored in the memory module as memory data. Exemplarily, the memory module can be a storage space divided for storing memory data, such as a memory, a disk, etc. Each Agent module can correspond to a different memory module. That is, the memory data generated by each Agent module can be stored in its own memory module. Alternatively, multiple Agent modules can correspond to the same memory module. And the memory data generated by each Agent module carries an identity that represents the Agent module. The memory data of multiple Agent modules are stored in the same memory module, and their sources are distinguished by the identity.
[0057] Optionally, after the target Agent module outputs the output result, the output result may be stored in a memory module. When executing this step 110, the output result is obtained from the memory module and sent to a preset interface.
[0058] Optionally, when executing step 110, the output result output by the target Agent module may be directly obtained, and then the output result may be copied into two paths, one path being stored in the memory module and the other being sent to a preset interface.
[0059] Step 120: Obtain a correction result of the output result from the preset interface.
[0060] After the output result of the target Agent module is sent to the preset interface, the interface can return a correction result after correcting the output result. The output result can be modified by artificial or machine learning methods to obtain the correction result.
[0061] Taking the target agent module as the above-mentioned information extraction agent module as an example, if the input dialogue is "I plan to buy 3,000 yuan of insurance this year", the information extraction agent module extracts the user information "the user's annual expenditure is 3,000 yuan" from the input dialogue as the output result, then the output result can be corrected to "the user's budget for purchasing insurance is 3,000 yuan" to obtain the corrected result.
[0062] Step 130: Update the output result in the memory module to the modified result, so that the human-computer dialogue system uses the modified result to perform subsequent tasks.
[0063] After obtaining the correction result, the output result in the memory module can be updated to the correction result. That is, the correction result overwrites the original output result. At this time, the correction result is stored in the memory module as memory data. In this way, when the human-computer dialogue system needs to use the memory data to perform subsequent tasks, the correct correction result is read from the memory module.
[0064] Exemplarily, the memory data may be input to the Agent module using a prompt template. For example, the prompt template may record the memory data, or the prompt template may indicate the storage location of the memory data, so that the Agent module reads the memory data from the storage location.
[0065] In addition, the Agent module can also actively update the memory data in the memory module. Continuing with the example of the information extraction Agent module in the above text, the information extraction Agent may need to complete the complete information extraction from multiple rounds of dialogue. For example, in the first round of dialogue, the input dialogue is "I need to buy pension insurance", then the information extraction Agent module extracts the user information of "the user needs to buy pension insurance" from the input dialogue of the first round, and stores it in the memory module as memory data. In the second round of dialogue, the input dialogue is "I'm sorry, what I need to buy should be medical insurance." Then the information extraction Agent module extracts the user information of "the user needs to buy medical insurance" from the input dialogue of the second round, and overwrites the original memory data of "the user needs to buy pension insurance" in the memory module to form new memory data. It can be seen that the memory data in the memory module can be actively updated by the Agent module, and can also be corrected and updated by the correction method provided in this embodiment.
[0066] In addition, the above steps 120 to 130 are performed when the output result is wrong and needs to be corrected. If the output result is correct and does not need to be corrected, the output data can be used as memory data for the execution of subsequent tasks.
[0067] It can be seen that the correction method of a large-model human-computer dialogue system provided by the present application, since the output results of each target Agent module in the human-computer dialogue system are sent to the preset interface for correction, the correct correction results obtained overwrite the original erroneous output results in the memory module, so that the human-computer dialogue system subsequently uses the correct correction results to execute subsequent tasks. In this way, by correcting the output results of each target Agent module in real time, the correctness of the subsequent tasks of the human-computer dialogue system can be ensured without waiting for the final output of the entire system. In other words, this embodiment can timely discover the output errors of each Agent module and correct them in time during the operation of the human-computer dialogue system, without the need to re-mark and re-train and test after discovering the final output error of the entire system, thereby greatly improving the correction efficiency of the human-computer dialogue system and optimizing the correction process.
[0068] Regarding the preset interface, in some embodiments, the preset interface includes a communication interface between the management terminal and the human-computer dialogue system, wherein the management terminal is operated by an administrator, and the administrator can receive the output result in the management terminal and modify it.
[0069] Specifically, in order to adapt to the business, it is necessary to support a variety of interface methods. Generally speaking, the management end can have a web page form, an application form, a mini program form, an enterprise WeChat form, etc., so that the management end supports multiple ways to connect to the human-computer dialogue system. Exemplarily, the preset interface can include but is not limited to the form of a socket client, an API (Application Programming Interface), etc.
[0070] Based on this, the step 120 of obtaining the correction result of the output result from the preset interface may include the following steps:
[0071] The administrator obtains the correction result of the output result at the management end from the preset interface.
[0072] After receiving the output result of the target Agent module on the management side through the preset interface, the administrator can manually verify whether the output result is correct. If there is an error in the output result, the output result is corrected and the corrected result is returned to the human-computer dialogue system through the preset interface.
[0073] In addition, if the administrator determines that the output result is correct and does not need to be corrected, a prompt message indicating that no correction has been made can be returned to the human-computer dialogue system through a preset interface.
[0074] It can be seen that this embodiment sends the output data of each target Agent module to the management end through a preset interface, so that the erroneous output data can be corrected by the administrator in a timely manner, thereby eliminating the need to re-mark and re-train and test after the final output error of the entire system is discovered. Therefore, the correction efficiency of the human-computer dialogue system is greatly improved and the correction process is optimized.
[0075] Based on the above embodiments, in some embodiments, the correction method may further include the steps of:
[0076] The output result of each Agent module and the response data output by the human-computer dialogue system are sent to the management end through the preset interface.
[0077] In addition to modifying the output results of target Agent module errors on the management side, the administrator can also view the output results of each Agent module in the human-computer dialogue system and the response data finally output by the human-computer dialogue system on the management side.
[0078] It is understandable that the response data finally output by the human-computer dialogue system is affected by the output results of multiple Agent modules. In the related art, the administrator can often only view the response data finally output by the human-computer dialogue system, but cannot directly observe the output results of each Agent module, thereby limiting the administrator's ability to intervene and optimize the human-computer dialogue system. However, in this embodiment, by sending the output results of each Agent module together with the response data to the preset interface to display to the administrator, the administrator can intuitively find out which Agent module of the human-computer dialogue system has a problem with the output result. At the same time, the administrator is allowed to modify the output results of the target Agent module in real time, so that the administrator can intervene in the problematic output results in time.
[0079] In addition, when the human-computer dialogue system uses the correction result to execute the subsequent task, the output result of the human-computer dialogue system executing the subsequent task using the correction result can also be sent to the management end through the preset interface. The output result of the human-computer dialogue system executing the subsequent task using the correction result includes the output result of at least one Agent module executing the corresponding dialogue task using the correction result, and the response data finally output by the human-computer dialogue system based on the correction result. In this way, the administrator can also intuitively check whether the output results of the subsequent Agent modules and the final output of the system are optimized accordingly after the output results of the target Agent module are corrected, thereby giving full play to the administrator's intervention and optimization capabilities of the human-computer dialogue system and improving the accuracy of the human-computer dialogue system.
[0080] Regarding the human-computer dialogue system using the correction result to perform the subsequent task in step 130, in some embodiments, the steps include:
[0081] The target Agent module uses the correction result to execute the next round of the target task.
[0082] In some scenarios, users have multiple rounds of dialogue with the human-computer dialogue system. There are semantic associations between the multiple rounds of dialogue. For the same target Agent module, the output result obtained by executing the target task in the previous round of dialogue is corrected, and the corrected result is stored in the memory module as memory data. In the next round of dialogue, the target Agent module may need to use the memory data to complete the next round of target task.
[0083] Continuing with the example of the information extraction agent module in the above text, if for the input dialogue of the previous round "I plan to buy 3,000 yuan of insurance this year", the output result of the information extraction agent module is "the user's annual expenditure is 3,000 yuan", and the output result is corrected to "the user's budget for purchasing insurance is 3,000 yuan". The correction result is stored in the memory module as memory data. Then for the next round of user input dialogue "specifically need medical insurance and pension insurance", the information extraction agent module can combine the memory data "the user's budget for purchasing insurance is 3,000 yuan" to perform the information extraction task of this round, and obtain the output result "the user's budget for purchasing medical insurance and pension insurance is 3,000 yuan".
[0084] It can be seen that, since there may be correlation between multiple rounds of target tasks of the Agent module, the correctness of the output result of the previous round of target tasks may affect the execution of the next round of target tasks. However, in this embodiment, after correcting the output result of the current round of target tasks of the target Agent module, the corrected result is used as one of the basis for the next round of target tasks of the same target Agent module, ensuring the accuracy of the output result of the previous round of target tasks, thereby ensuring that the next round of target tasks are executed based on correct data, so as to improve the accuracy of the human-computer dialogue system.
[0085] In addition, in some embodiments, the input data of some Agent modules are the output results of other Agent modules. As in the above example, both the solution Agent module and the speculation Agent module rely on at least the output results of the problem extraction Agent module and the information extraction Agent module; and the speech generation Agent module relies on the output results of the solution Agent module and the speculation Agent module. Therefore, there is a sequential connection relationship between multiple Agent modules in the human-computer dialogue system. The output results of the previous Agent module will affect the execution of the dialogue task by the subsequent Agent module. Based on this, regarding the human-computer dialogue system using the correction result to execute the subsequent task in step 130, it can specifically include the following steps:
[0086] The subsequent Agent module of the target Agent module uses the correction result to perform the corresponding dialogue task.
[0087] For example, in the above example, if the output result of the information extraction agent module is "the user's annual expenditure is 3,000 yuan" for the previous round of input dialogue "I plan to buy 3,000 yuan of insurance this year", and the output result is corrected to "the user's budget for buying insurance is 3,000 yuan". The correction result is stored in the memory module as memory data. Then the subsequent agent module of the information extraction agent module, such as the solution agent module, can generate the corresponding insurance solution according to the memory data "the user's budget for buying insurance is 3,000 yuan".
[0088] It can be seen that, since the input data of some Agent modules are the output results of other Agent modules, the correctness of the output results of the previous Agent modules will affect the execution of the dialogue tasks of the subsequent Agent modules. However, in this embodiment, after the output results of the current round of the target task of the target Agent module are corrected, the corrected results are used as one of the bases for the memory data used for the dialogue tasks of the subsequent Agent modules, ensuring the accuracy of the output results of the previous Agent modules, thereby ensuring that the subsequent Agent modules are executed based on correct data, so as to improve the accuracy of the human-computer dialogue system.
[0089] In addition, in some embodiments, the correction method may also include: Figure 2 Steps 210 to 230 are shown.
[0090] Step 210: For each of the Agent modules, obtain input data of the Agent module.
[0091] Exemplarily, the input data of the Agent module may be the user's input dialogue and / or the output result of the previous Agent module.
[0092] Step 220: Acquire the memory data of the Agent module from the memory module.
[0093] Exemplarily, if the output result of the Agent module is not corrected, the memory data in the memory module is the output result of the Agent module.
[0094] On the contrary, if the output result of the Agent module is corrected, the memory data in the memory module is the corrected result.
[0095] Step 230: Train the Agent module using the input data and the memory data.
[0096] Each Agent module in the human-computer dialogue system can be trained separately. In the test phase of the human-computer dialogue system, the output results of each target Agent module are corrected in real time to ensure that the memory data based on which the task is executed later is correct, so that the memory data corresponding to each Agent module and the response data finally output by the system are correct. At this point, the input data and memory data of each Agent module are actually correct data. Therefore, using the input data and memory data of each Agent module in the test phase as training samples, and in turn training the Agent module, on the one hand, allows the Agent module to learn the characteristics of a large number of correct samples and improve the accuracy of the Agent module; on the other hand, directly correcting the wrong output results in the system test phase can improve the system iteration efficiency.
[0097] Based on any of the above embodiments, the method can be applied to sales scenarios. The sales scenarios may include but are not limited to insurance sales scenarios, house sales scenarios, course sales scenarios, etc. In the sales scenario, the human-computer dialogue system is a sales system for recommending products that meet user needs to users.
[0098] Of course, in addition to sales scenarios, the correction method provided in this application can also be applied to other scenarios, which are not listed here one by one.
[0099] Based on any of the above embodiments, the present application also provides a correction device for a large model human-computer dialogue system. The human-computer dialogue system includes a plurality of Agent modules. Each Agent module is used to perform a corresponding dialogue task. Figure 3 As shown, the correction device 300 includes:
[0100] The sending module 310 is used to send the output result of each target Agent module among the multiple Agent modules after the target Agent module executes the current round of target tasks to a preset interface; wherein the output result is stored in a preset memory module;
[0101] An acquisition module 320, configured to acquire a correction result of the output result from the preset interface;
[0102] The updating module 330 is used to update the output result in the memory module to the correction result, so that the human-computer dialogue system uses the correction result to perform the subsequent task.
[0103] In some embodiments, the preset interface includes a communication interface between the management terminal and the human-computer dialogue system; the acquisition module 320 is specifically used to:
[0104] The administrator obtains the correction result of the output result at the management end from the preset interface.
[0105] In some embodiments, the sending module 310 is further used to:
[0106] The output result of each Agent module and the response data output by the human-computer dialogue system are sent to the management end through the preset interface.
[0107] In some embodiments, the human-computer dialogue system uses the correction result to perform a subsequent task, including:
[0108] The target Agent module uses the correction result to execute the next round of the target task.
[0109] In some embodiments, the input data of some of the Agent modules are output results of other Agent modules; the human-computer dialogue system uses the correction results to perform subsequent tasks, including:
[0110] The subsequent Agent module of the target Agent module uses the correction result to perform the corresponding dialogue task.
[0111] In some embodiments, the correction device 300 further includes a training module, wherein the training module is used to:
[0112] For each of the Agent modules, obtaining input data of the Agent module;
[0113] Acquire memory data of the Agent module from the memory module;
[0114] The Agent module is trained using the input data and the memory data.
[0115] In some embodiments, the device is applied in a sales scenario, and the human-computer dialogue system is a sales system.
[0116] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.
[0117] Based on a method for correcting a large model human-computer dialogue system described in any of the above embodiments, the present application also provides: Figure 4 A schematic diagram of the structure of an electronic device is shown in FIG. Figure 4At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement a correction method for a large model human-computer dialogue system described in any of the above embodiments.
[0118] The present application also provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, it can be used to execute a correction method for a large model human-computer dialogue system described in any of the above embodiments.
[0119] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0120] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0121] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0122] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.
[0123] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0124] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
Claims
1. A method for correcting a large-scale human-computer dialogue system, characterized in that: The human-computer dialogue system includes a plurality of agent modules; each of the agent modules is used to perform a corresponding dialogue task; the method includes: For each target Agent module among the plurality of Agent modules, the output result after the target Agent module executes the target task of this round is sent to a preset interface; wherein the output result is stored in a preset memory module; Acquire a correction result of the output result from the preset interface; The output result in the memory module is updated to the revised result, so that the human-computer dialogue system uses the revised result to perform subsequent tasks.
2. The method according to claim 1, characterized in that The preset interface includes a communication interface between the management terminal and the human-computer dialogue system; the correction result of the output result obtained from the preset interface includes: The administrator obtains the correction result of the output result at the management end from the preset interface.
3. The method according to claim 2, characterized in that The method further comprises: The output result of each Agent module and the response data output by the human-computer dialogue system are sent to the management end through the preset interface.
4. The method according to claim 1, characterized in that: The human-computer dialogue system uses the correction result to perform subsequent tasks, including: The target Agent module uses the correction result to execute the next round of the target task.
5. The method according to claim 1, characterized in that The input data of some of the Agent modules are output results of other Agent modules; the human-computer dialogue system uses the correction results to perform subsequent tasks, including: The subsequent Agent module of the target Agent module uses the correction result to perform the corresponding dialogue task.
6. The method according to claim 1, characterized in that The method further comprises: For each of the Agent modules, obtaining input data of the Agent module; Acquire memory data of the Agent module from the memory module; The Agent module is trained using the input data and the memory data.
7. The method according to any one of claims 1 to 5, characterized in that: The method is applied to a sales scenario, and the human-computer dialogue system is a sales system.
8. A correction device for a large-scale human-computer dialogue system, characterized in that: The human-computer dialogue system includes multiple agent modules; Each of the Agent modules is used to perform a corresponding dialogue task; the device comprises: A sending module, for sending, for each target Agent module among the plurality of Agent modules, an output result after the target Agent module executes the target task of this round to a preset interface; wherein the output result is stored in a preset memory module; An acquisition module, used for acquiring a correction result of the output result from the preset interface; An updating module is used to update the output result in the memory module to the correction result, so that the human-computer dialogue system uses the correction result to perform subsequent tasks.
9. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing processor-executable instructions; Wherein, when the processor calls the executable instructions, the operation of any method described in claims 1-7 is implemented.
10. A computer-readable storage medium, characterized in that: Computer instructions are stored thereon, and when the computer instructions are executed by a processor, the steps of any method described in claims 1-7 are implemented.
Citation Information
Cited By
Multi-agent bypass management method and device, storage medium and electronic equipment
CN121859926A
