A multi-cloud machine assistant conversation method, device, equipment and storage medium

By acquiring and analyzing dialogue information in multi-cloud scenarios, identifying intents and extracting entities, and activating multi-cloud and multi-service converged scenarios, the problem of dialogue difficulties in multi-service converged scenarios is solved, and the user experience is improved.

CN116502652BActive Publication Date: 2026-11-24PURPLE MOUNTAIN LAB
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310451893.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2026-11-24
Estimated Expiration
2043-04-25

AI Technical Summary

Technical Problem

In multi-cloud and multi-service scenarios, it is difficult to respond correctly to users' business needs, leading to communication difficulties and a poor user experience.

Method used

By acquiring the current dialogue information and the previous task scenario, intent recognition and entity extraction are performed to determine the current task scenario. When there is a business relationship between the current task scenario and the previous task scenario, the multi-cloud and multi-service integration scenario is activated, and the business switching action is executed.

Benefits of technology

It enables accurate identification of user intent and extraction of entities in multi-cloud, multi-service integrated scenarios, thereby improving user experience and ensuring smooth business operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116502652B_ABST
    Figure CN116502652B_ABST
Patent Text Reader

Abstract

This invention discloses a multi-cloud machine assistant dialogue method, apparatus, device, and storage medium, applied in the field of cloud computing and dialogue systems. The method includes: acquiring current dialogue information and the previous task scenario; performing intent recognition and entity extraction on the current dialogue information to obtain the current intent and current entity; determining the current task scenario based on the current intent and current entity; and if the current task scenario has a business relationship with the previous task scenario, activating the multi-cloud, multi-service integration scenario and performing a business switching action. The multi-cloud machine assistant dialogue method provided by this invention can help users complete various integrated business needs in the multi-cloud domain and in multi-service integration scenarios, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of cloud computing and dialogue system technology, and in particular to a multi-cloud machine assistant dialogue method, apparatus, device and storage medium. Background Technology

[0002] In complex multi-cloud scenarios, users have diverse business needs. When users' actual needs are no longer single-service requirements, multi-service integration scenarios often arise. For example, the service of opening virtual machines can be integrated with services such as changing virtual machine passwords and deploying SQL servers (database servers) to form a multi-service integration scenario. In this case, it is easy to encounter issues such as word and slot confusion and difficulties in communication.

[0003] Therefore, in the multi-cloud domain, it is necessary to respond correctly to users' business needs in multi-service integration scenarios to improve user experience. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to provide a cloud machine assistant dialogue method, apparatus, device and storage medium, which solves the problems of difficulty in dialogue tasks and entity extraction in multi-cloud and multi-service integration scenarios in the prior art.

[0005] To address the aforementioned technical problems, this invention provides a cloud machine assistant dialogue method, comprising:

[0006] Obtain the current dialogue information and the previous task scenario;

[0007] The current dialogue information is subjected to intent recognition and entity extraction to obtain the current intent and the current entity;

[0008] Determine the current task scenario based on the current intent and the current entity;

[0009] If the current task scenario is related to the previous task scenario, then the multi-cloud multi-service integration scenario is activated, and a service switching action is performed.

[0010] Optionally, if the current task scenario has a business relationship with the previous task scenario, then the multi-cloud, multi-service convergence scenario is activated, and a service switching action is performed, including:

[0011] Obtain a preset business relationship database, and determine the correlation strength between the current task scenario and the previous task scenario based on the business relationship database;

[0012] If the correlation strength is greater than or equal to a preset threshold, the multi-cloud, multi-service convergence scenario is activated, and a service switching action is performed.

[0013] Optional, also includes:

[0014] If the association strength is less than the preset threshold, a confirmation message is sent to the user to confirm whether to switch. If the user confirms, the multi-cloud multi-service integration scenario is activated and the service switching action is performed. If the user does not confirm, the current task scenario continues.

[0015] Optionally, the step of performing intent recognition on the current dialogue information to obtain the current intent includes:

[0016] When using the intent recognition component to perform intent recognition on the current dialogue information, the intent with the highest confidence score is taken as the first intent;

[0017] If the confidence level of the first intent is greater than or equal to the first preset confidence threshold, then the first intent is taken as the current intent;

[0018] If the confidence level of the first intent is less than the first preset confidence threshold, then proceed to the next round of dialogue interaction, and take the intent with the highest confidence level identified in the next round of dialogue interaction as the second intent;

[0019] If the confidence level of the second intention is greater than or equal to the second preset confidence threshold, then the second intention is taken as the current intention;

[0020] If the confidence level of the second intention is less than the second preset confidence threshold, then the first intention is taken as the current intention.

[0021] Optionally, the step of extracting entities from the current dialogue information to obtain the current entity includes:

[0022] Determine the entity type of the current dialogue information; the entity type includes: multi-cloud custom entities, digital entities, and general entities;

[0023] Extract the entity corresponding to the current dialogue information based on the entity type, and use it as the current entity.

[0024] Optionally, extracting the entity corresponding to the current dialogue information based on the entity type includes:

[0025] When the entity type is the multi-cloud custom entity, the CRF entity extraction method is used;

[0026] When the entity type is the general entity, the spaCy entity extraction method is used;

[0027] When the entity type is a digital entity, the duckling entity extraction method is used.

[0028] Optionally, after extracting the entity corresponding to the current dialogue information based on the entity type, the method further includes:

[0029] When synonymous entities and / or misspelled entities exist, the synonymous entities and / or misspelled entities are corrected and verified, and the synonymous entities and / or misspelled entities are uniformly mapped to standardized entities.

[0030] The present invention also provides a multi-cloud machine assistant dialogue device, comprising:

[0031] The acquisition module is used to acquire current dialogue information and the previous task scenario.

[0032] The intent recognition and entity extraction module is used to perform intent recognition and entity extraction on the current dialogue information to obtain the current intent and the current entity.

[0033] The current task scenario confirmation module is used to determine the current task scenario based on the current intent and the current entity;

[0034] The multi-cloud multi-service integration scenario activation module is used to activate the multi-cloud multi-service integration scenario and perform a service switching action if the current task scenario is related to the previous task scenario.

[0035] The present invention also provides a multi-cloud machine assistant dialogue device, comprising:

[0036] Memory, used to store computer programs;

[0037] A processor is used to implement the steps of the multi-cloud machine assistant dialogue method described above when executing the computer program.

[0038] The present invention also provides a storage medium storing a computer program, which, when executed by a processor, implements the steps of the above-described multi-cloud machine assistant dialogue method.

[0039] As can be seen, this application obtains the current dialogue information and the previous task scenario; performs intent recognition and entity extraction on the current dialogue information to obtain the current intent and current entity; determines the current task scenario based on the current intent and current entity; and if the current task scenario has a business relationship with the previous task scenario, activates the multi-cloud, multi-service converged scenario and executes a business switching action. This method can help users fulfill various converged business needs in the multi-cloud domain and in multi-service converged scenarios, thereby improving the user experience.

[0040] In addition, the present invention also provides a multi-cloud machine assistant dialogue device, equipment and storage medium, which also have the above-mentioned beneficial effects. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0042] Figure 1 A flowchart illustrating a multi-cloud machine assistant dialogue method provided in an embodiment of the present invention;

[0043] Figure 2 This is a schematic diagram of the structure of a multi-cloud machine assistant dialogue device provided in an embodiment of the present invention;

[0044] Figure 3 This is a schematic diagram of the structure of a multi-cloud machine assistant dialogue device provided in an embodiment of the present invention. Detailed Implementation

[0045] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0046] Please refer to Figure 1 , Figure 1 A flowchart illustrating a multi-cloud machine assistant dialogue method provided in an embodiment of the present invention. The method may include:

[0047] S101: Obtain the current dialogue information and the previous task scenario.

[0048] The execution subject in this embodiment is a terminal. This embodiment does not limit the type of terminal, as long as it can perform multi-cloud machine assistant dialogue operations. For example, the terminal can be a general-purpose terminal, or it can be a dedicated terminal. This embodiment does not limit the content of the dialogue information. For example, the dialogue information can be casual conversation; it can also be multi-cloud service operation information; it can also be multi-cloud question-and-answer information; or it can also be multi-cloud multi-service integration information. This embodiment obtains the task scenario of the previous dialogue at the end of the previous round, and then obtains the current dialogue information when conducting the current dialogue.

[0049] S102: Perform intent recognition and entity extraction on the current dialogue information to obtain the current intent and the current entity.

[0050] This embodiment does not limit the intent recognition and entity extraction. For example, the intent with the highest confidence level identified by the intent component can be directly determined as the current intent; or the intent with the highest confidence level can be judged, and the current intent can be determined based on the judgment result.

[0051] Furthermore, in order to better identify user intent, the above-mentioned intent identification of the current dialogue information to obtain the current intent may include the following steps:

[0052] Step 41: When using the intent recognition component to perform intent recognition on the current dialogue information, the intent with the highest confidence score is taken as the first intent;

[0053] Step 42: If the confidence level of the first intent is greater than or equal to the first preset confidence threshold, then the first intent is taken as the current intent;

[0054] Step 43: If the confidence level of the first intent is less than the first preset confidence threshold, then proceed to the next round of dialogue interaction, and take the intent with the highest confidence level identified in the next round of dialogue interaction as the second intent;

[0055] Step 44: If the confidence level of the second intent is greater than or equal to the second preset confidence threshold, then the second intent is taken as the current intent;

[0056] Step 45: If the confidence level of the second intent is less than the second preset confidence threshold, then the first intent is taken as the current intent.

[0057] This embodiment does not limit the intent recognition component, as long as it can recognize the intent of the dialogue information. In this embodiment, when performing intent recognition, the intent with the highest confidence in the current dialogue information is compared with a first preset confidence threshold to ensure the accuracy of the intent with the highest confidence. When the first preset confidence threshold is reached, it indicates that the intent recognition is accurate, and this intent is taken as the current intent; when the first preset confidence threshold is not reached, it indicates that the intent recognition is not accurate enough, and the next round of dialogue is initiated, determining the current intent based on the intent of the next round of dialogue information. The next round of dialogue information is obtained from the user, and intent recognition is performed on it. If the intent with the highest confidence in the next round is greater than or equal to a second preset confidence threshold, it indicates that the intent recognition in the next round of dialogue is accurate, and the dialogue tracker is updated, taking the intent of the next round of dialogue as the current intent. If the intent with the highest confidence in the next round is less than the second preset confidence threshold, the dialogue tracker is restored, and the intent with the highest confidence in the previous round is determined as the current intent. Determining the current intent through multiple rounds of dialogue ensures the accuracy of intent recognition. This embodiment does not limit the first and second preset confidence thresholds. For example, the first preset reliability threshold and the second preset reliability threshold can be equal; the first preset reliability threshold and the second preset reliability threshold can also be unequal.

[0058] This embodiment does not limit the specific method of entity extraction. For example, a single entity extraction method can be used; or multiple entity extraction methods can be used. Entity extraction is crucial in multi-turn dialogues, as the update of slot values ​​directly affects the dialogue state tracking. In addition to fully understanding the context, it is also necessary to accurately extract entities to fill slots. In complex multi-cloud business scenarios, current entity extraction still suffers from inaccurate results. For example, using a single entity extraction method often results in inaccurate extraction, frequently leading to incorrect or missed extractions. On the other hand, using multiple entity extraction methods simultaneously can result in multiple different entity values ​​for the same entity, causing confusion regarding entity extraction values.

[0059] Furthermore, in order to accurately extract entities, the above-mentioned entity extraction from the current dialogue information to obtain the current entity may include the following steps:

[0060] Step 51: Determine the entity type of the current dialogue information; entity types include: multi-cloud custom entities, digital entities, and general entities;

[0061] Step 52: Extract the entity corresponding to the current dialogue information based on the entity type, and use it as the current entity.

[0062] This embodiment determines the entity extraction method based on the entity type of the dialogue information. This can relatively avoid the problem of the same entity corresponding to different entity values ​​and ensure the accuracy of entity extraction.

[0063] To further refine entity extraction, the above-mentioned extraction of entities corresponding to the current dialogue information based on entity type may include the following steps:

[0064] Step 61: When the entity type is a multi-cloud custom entity, the CRF entity extraction method is used;

[0065] Step 62: When the entity type is a general entity, the spaCy entity extraction method is used;

[0066] Step 63: When the entity type is a numeric entity, the duckling entity extraction method is used.

[0067] This embodiment employs different entity extraction methods suitable for different situations. It uses CRF (Conditional Random Fields) to extract custom entities across multiple clouds, spaCy (an entity extraction component) to extract general entities, and duckling (an entity extraction component) to extract digital entities. For multi-cloud services, it proposes multiple entity extraction methods, selecting the most suitable method based on the entity type to effectively solve the problems of inaccurate entity extraction and multiple entity values. These multiple entity extraction methods can significantly improve the accuracy of extracting different entities and avoid the confusion caused by multiple values ​​for the same entity.

[0068] Furthermore, to improve the accuracy of entity extraction, after extracting multi-cloud custom entities, digital entities, and general entities from the dialogue information described above, the following steps may also be included:

[0069] When synonymous entities and / or misspelled entities exist, the synonymous entities and / or misspelled entities are corrected and verified, and the synonymous entities and / or misspelled entities are uniformly mapped to the standard entities.

[0070] After extracting entities, this embodiment also requires entity correction and verification. All entities containing synonyms or misspellings are uniformly mapped to standardized entities. This ensures consistent and standardized slot values, which facilitates business operations. Because business operations require users to provide a significant amount of information—that is, filling slots—standardizing slot values ​​makes the process smoother.

[0071] S103: Determine the current task scenario based on the current intent and the current entity.

[0072] This embodiment does not limit the specific process of determining the current task scenario based on the current intent and the current entity. For example, a relationship mapping table between intents, entities, and task scenarios can be preset, and the current task scenario can be determined based on the relationship mapping table. For example, as shown in Table 1, when the entity is a virtual machine, CPU, memory, etc., and the intent is a multi-cloud intent, the task scenario is a multi-cloud service.

[0073] Table 1

[0074]

[0075] S104: If the current task scenario is related to the previous task scenario, activate the multi-cloud multi-service integration scenario and perform a service switching action.

[0076] This embodiment does not limit the strength of the business association between the current task scenario and the previous task scenario. For example, the existence of an association between the current task scenario and the previous task scenario is sufficient to activate the multi-cloud, multi-service integration scenario and execute the service switching action; or, the multi-cloud, multi-service integration scenario can only be activated and the service switching action executed when the association strength between the current task scenario and the previous task scenario reaches a preset threshold. In this embodiment, the execution of the multi-cloud switching action is based on RASA's Action implementation. The implementation of an execution operation requires overriding two basic functions: the name function and the run function. The name function is used to define the action name, and the run function is used to define the execution flow of the action. Furthermore, the implementation of the run function requires passing in the message channel dispatcher and the status tracker, and finally returns the event object events. Form can realize slot filling scenarios in multi-turn dialogues. By defining form slots, entity extraction methods, custom slot value filling and validation methods, setting the template flow and rules for form execution, etc., multi-turn dialogue slot value extraction and related operations can be completed.

[0077] Furthermore, to ensure the accuracy of multi-cloud, multi-service integration scenario assessment, if the current task scenario has a business relationship with the previous task scenario, activating the multi-cloud, multi-service integration scenario and performing a business switching action may include the following steps:

[0078] Step 21: Obtain the preset business relationship database, and determine the correlation strength between the current task scenario and the previous task scenario based on the business relationship database;

[0079] Step 22: If the association strength is greater than or equal to the preset threshold, activate the multi-cloud multi-service integration scenario and perform the service switching action.

[0080] In this embodiment, the service switching action is based on the domain.yml configuration file obtained from RASA. This configuration file defines the intent to activate the multi-task fusion scenario, the intent to switch scenarios, the intent to cancel the switching scenario, and the corresponding actions for these three intents. When the association strength is greater than or equal to a preset threshold, the multi-cloud multi-service fusion scenario is activated, and the service switching action is executed, that is, the service scenario is switched to the corresponding multi-cloud multi-service fusion scenario's FormAction, and the known slot information is automatically filled in, and the corresponding action is executed, that is, the run function of the new FormAction.

[0081] This embodiment does not limit the action to be performed when the association strength is less than a preset threshold. For example, when the association strength is less than the preset threshold, a clarification message is sent to the user, the user's reply is obtained, and activation is determined based on the reply; or, when the association strength is less than the preset threshold, the current task scenario continues. This embodiment does not limit the content of the clarification message and the reply. For example, the clarification message may be a confirmation of whether to activate the multi-cloud, multi-service converged scenario, and the reply content may be: if yes is received, activate; if no is received, do not activate; or if confirmation is received, activate; if no confirmation is received, do not activate.

[0082] Furthermore, to ensure the accuracy of activation in multi-cloud, multi-service converged scenarios and to accurately identify the multi-cloud service scenario corresponding to the user's true intent, after the aforementioned correlation strength is less than a preset threshold, the following steps may also be included:

[0083] If the association strength is less than a preset threshold, a confirmation message is sent to the user to confirm whether to switch. If the user confirms, the multi-cloud, multi-service convergence scenario is activated, and the service switching action is executed. If the user does not confirm, the current task scenario continues.

[0084] In this embodiment, if the correlation strength between the previous task scenario and the current task scenario is less than a preset threshold, a clarification message is sent to the user, asking the user to confirm whether they need to be redirected to the multi-cloud, multi-service converged scenario. If the user does not confirm, they will remain in the current unfinished task scenario by default; if they confirm, they will be redirected to the multi-cloud, multi-service converged scenario.

[0085] The multi-cloud machine assistant dialogue method provided in this invention obtains the current dialogue information and the previous task scenario; performs intent recognition and entity extraction on the current dialogue information to obtain the current intent and current entity; determines the current task scenario based on the current intent and current entity; and if the current task scenario is related to the previous task scenario, activates the multi-cloud multi-service integration scenario and executes a service switching action. The multi-cloud machine assistant dialogue method provided by this invention can help users complete various integrated business needs in the multi-cloud domain and in multi-service integration scenarios, thereby improving the user experience. Furthermore, based on a pre-defined business relationship database, the system determines the correlation strength between the current business and the previous round of salesperson scenarios. The activation of the multi-cloud, multi-service convergence scenario is determined according to this correlation strength, ensuring the accuracy of scenario activation. When the correlation strength is weak, a next round of dialogue can be conducted to obtain the user's instruction on whether to activate the multi-cloud, multi-service convergence scenario, thus improving activation accuracy. The extracted intent is compared with a threshold to determine the user's intent, enabling precise identification and improving user experience. Multiple entity extraction methods are employed, selecting the most suitable method based on the entity type to effectively solve the problems of inaccurate entity extraction and multiple entity values. Finally, entity correction and verification facilitate business operations, making the process smoother.

[0086] The following describes the multi-cloud machine assistant dialogue device provided in the embodiments of the present invention. The multi-cloud machine assistant dialogue device described below can be referred to in correspondence with the multi-cloud machine assistant dialogue method described above.

[0087] Please refer to the details. Figure 2 , Figure 2 A schematic diagram of a multi-cloud machine assistant dialogue device provided in an embodiment of the present invention may include:

[0088] Module 100 is used to acquire current dialogue information and the previous task scenario.

[0089] The intent recognition and entity extraction module 200 is used to perform intent recognition and entity extraction on the current dialogue information to obtain the current intent and the current entity.

[0090] The current task scenario confirmation module 300 is used to determine the current task scenario based on the current intent and the current entity.

[0091] The multi-cloud, multi-service convergence scenario activation module 400 is used to activate the multi-cloud, multi-service convergence scenario and perform a service switching action if the current task scenario has a business relationship with the previous task scenario.

[0092] Based on the above embodiments, the multi-cloud, multi-service convergence scenario activation module 400 may include:

[0093] The association strength determination unit is used to obtain a preset business relationship database and determine the association strength between the current task scenario and the previous round of task scenario based on the business relationship database.

[0094] The judgment execution unit is used to activate the multi-cloud multi-service integration scenario and perform a service switching action if the association strength is greater than or equal to a preset threshold.

[0095] Based on the above embodiments, the aforementioned multi-cloud machine assistant dialogue device may further include:

[0096] The receiving module is configured to send a confirmation message to the user if the association strength is less than the preset threshold; if the user's confirmation is received, the multi-cloud multi-service convergence scenario is activated and a service switching action is performed; if the user's non-confirmation is received, the current task scenario continues.

[0097] Based on the above embodiments, the intent recognition in the intent recognition and entity extraction module 200 may include:

[0098] The first unit is used to identify the intent with the highest confidence score as the first intent when using the intent recognition component to perform intent recognition on the current dialogue information.

[0099] The second unit is used to take the first intention as the current intention if the confidence level of the first intention is greater than or equal to the first preset confidence threshold.

[0100] The third unit is used to perform the next round of dialogue interaction if the confidence level of the first intention is less than the first preset confidence threshold, and to take the intention with the highest confidence level identified in the next round of dialogue interaction as the second intention.

[0101] The fourth unit is used to take the second intention as the current intention if the confidence level of the second intention is greater than or equal to the second preset confidence threshold.

[0102] The fifth unit is used to take the first intention as the current intention if the confidence level of the second intention is less than the second preset confidence threshold.

[0103] Based on the above embodiments, the entity extraction in the intent recognition and entity extraction module 200 may include:

[0104] An entity type determination unit is used to determine the entity type of the current dialogue information; the entity type includes: multi-cloud custom entity, digital entity, and general entity;

[0105] The current entity determination unit is used to extract the entity corresponding to the current dialogue information according to the entity type, and use it as the current entity.

[0106] Based on the above embodiments, the current entity determination unit may include:

[0107] A custom entity extraction subunit is used to employ the CRF entity extraction method when the entity type is the multi-cloud custom entity.

[0108] A general entity extraction subunit is used to employ the spaCy entity extraction method when the entity type is the general entity.

[0109] The digital entity extraction subunit is used to employ the duckling entity extraction method when the entity type is the digital entity.

[0110] Based on the above embodiments, the multi-cloud machine assistant dialogue device may further include:

[0111] The correction and verification module is used to correct and verify the synonymous entities and / or the misspelled entities when there are synonymous entities and / or misspelled entities, and to uniformly map the synonymous entities and / or the misspelled entities to the standard entities.

[0112] The multi-cloud machine assistant dialogue device provided in this embodiment of the invention includes: an acquisition module 100 for acquiring current dialogue information and the previous task scenario; an intent recognition and entity extraction module 200 for performing intent recognition and entity extraction on the current dialogue information to obtain the current intent and current entity; a current task scenario confirmation module 300 for determining the current task scenario based on the current intent and the current entity; and a multi-cloud multi-service integration scenario activation module 400 for activating the multi-cloud multi-service integration scenario and performing a service switching action if the current task scenario has a business association with the previous task scenario. This device can help users complete various integrated business needs in a multi-cloud environment and in the presence of multi-service integration scenarios, thereby improving the user experience. Furthermore, based on a pre-defined business relationship database, the system determines the correlation strength between the current business and the previous round of salesperson scenarios. The activation of the multi-cloud, multi-service convergence scenario is determined according to this correlation strength, ensuring the accuracy of scenario activation. When the correlation strength is weak, a next round of dialogue can be conducted to obtain the user's instruction on whether to activate the multi-cloud, multi-service convergence scenario, thus improving activation accuracy. The extracted intent is compared with a threshold to determine the user's intent, enabling precise identification and improving user experience. Multiple entity extraction methods are employed, selecting the most suitable method based on the entity type to effectively solve the problems of inaccurate entity extraction and multiple entity values. Finally, entity correction and verification facilitate business operations, making the process smoother.

[0113] The following describes the multi-cloud machine assistant dialogue device provided in the embodiments of the present invention. The multi-cloud machine assistant dialogue device described below and the multi-cloud machine assistant dialogue method described above can be referred to in correspondence.

[0114] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of the multi-cloud machine assistant dialogue device provided in the embodiments of the present invention may include:

[0115] Memory 10 is used to store computer programs;

[0116] Processor 20 is used to execute computer programs to implement the multi-cloud machine assistant dialogue method described above.

[0117] The system includes a memory 10, a processor 20, a communication interface 31, and a communication bus 32. The memory 10, processor 20, and communication interface 31 communicate with each other through the communication bus 32.

[0118] In this embodiment of the invention, the memory 10 is used to store one or more programs. The programs may include program code, which includes computer operation instructions. In this embodiment, the memory 10 may store programs for implementing the following functions:

[0119] Obtain the current dialogue information and the previous task scenario;

[0120] Perform intent recognition and entity extraction on the current dialogue information to obtain the current intent and the current entity;

[0121] Determine the current task scenario based on the current intent and the current entity;

[0122] If the current task scenario is related to the previous task scenario, then the multi-cloud, multi-service integration scenario is activated, and the service switching action is executed.

[0123] In one possible implementation, the memory 10 may include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; and the data storage area may store data created during use.

[0124] Furthermore, memory 10 may include read-only memory and random access memory, providing instructions and data to the processor. A portion of the memory may also include NVRAM. The memory stores operating systems and operating instructions, executable modules, or data structures, or subsets thereof, or extended sets thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic tasks and handling hardware-based tasks.

[0125] Processor 20 can be a central processing unit (CPU), an application-specific integrated circuit, a digital signal processor, a field-programmable gate array, or other programmable logic device. Processor 20 can be a microprocessor or any conventional processor. Processor 20 can call programs stored in memory 10.

[0126] Communication interface 31 can be an interface for the communication module, used to connect with other devices or systems.

[0127] Of course, it should be noted that, Figure 3 The structure shown does not constitute a limitation on the multi-cloud machine assistant dialogue device in the embodiments of this application. In practical applications, the multi-cloud machine assistant dialogue device may include more than Figure 3 More or fewer components as shown, or combinations of certain components.

[0128] The readable storage medium provided in the embodiments of the present invention is described below. The readable storage medium described below can be referred to in correspondence with the multi-cloud machine assistant dialogue method described above.

[0129] The present invention also provides a readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the above-described multi-cloud machine assistant dialogue method.

[0130] The readable storage medium may include various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0131] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.

[0132] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.

[0133] Finally, it should be noted that in this document, relationships such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus.

[0134] The foregoing has provided a detailed description of a multi-cloud machine assistant dialogue method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A multi-cloud machine assistant dialogue method, characterized in that, include: Obtain the current dialogue information and the previous task scenario; The current dialogue information is subjected to intent recognition and entity extraction to obtain the current intent and the current entity; Determine the current task scenario based on the current intent and the current entity; If the current task scenario is related to the previous task scenario, then the multi-cloud multi-service convergence scenario is activated and a service switching action is performed. The service switching action is based on the domain.yml configuration file obtained from RASA. The configuration file defines the intent to activate the multi-task convergence scenario, the intent to switch the scenario, the intent to cancel the switching scenario, and the corresponding actions for each intent. If the current task scenario is related to the previous task scenario in terms of business, then the multi-cloud, multi-service convergence scenario is activated, and a business switching action is performed, including: Obtain a preset business relationship database, and determine the correlation strength between the current task scenario and the previous task scenario based on the business relationship database; If the correlation strength is greater than or equal to a preset threshold, the multi-cloud multi-service convergence scenario is activated, and a service switching action is performed. The step of extracting entities from the current dialogue information to obtain the current entity includes: Determine the entity type of the current dialogue information; the entity type includes: multi-cloud custom entities, digital entities, and general entities; Extract the entity corresponding to the current dialogue information based on the entity type, and use it as the current entity.

2. The multi-cloud machine assistant dialogue method according to claim 1, characterized in that, Also includes: If the association strength is less than the preset threshold, a confirmation message is sent to the user to confirm whether to switch. If the user confirms, the multi-cloud multi-service integration scenario is activated and the service switching action is performed. If the user does not confirm, the current task scenario continues.

3. The multi-cloud machine assistant dialogue method according to claim 1, characterized in that, The step of performing intent recognition on the current dialogue information to obtain the current intent includes: When using the intent recognition component to perform intent recognition on the current dialogue information, the intent with the highest confidence score is taken as the first intent; If the confidence level of the first intent is greater than or equal to the first preset confidence threshold, then the first intent is taken as the current intent; If the confidence level of the first intent is less than the first preset confidence threshold, then proceed to the next round of dialogue interaction, and take the intent with the highest confidence level identified in the next round of dialogue interaction as the second intent; If the confidence level of the second intention is greater than or equal to the second preset confidence threshold, then the second intention is taken as the current intention; If the confidence level of the second intention is less than the second preset confidence threshold, then the first intention is taken as the current intention.

4. The multi-cloud machine assistant dialogue method according to claim 1, characterized in that, The step of extracting the entity corresponding to the current dialogue information based on the entity type includes: When the entity type is the multi-cloud custom entity, the CRF entity extraction method is used; When the entity type is the general entity, the spaCy entity extraction method is used; When the entity type is a digital entity, the duckling entity extraction method is used.

5. The multi-cloud machine assistant dialogue method according to claim 1, characterized in that, After extracting the entity corresponding to the current dialogue information based on the entity type, the method further includes: When synonymous entities and / or misspelled entities exist, the synonymous entities and / or misspelled entities are corrected and verified, and the synonymous entities and / or misspelled entities are uniformly mapped to standardized entities.

6. A multi-cloud machine assistant dialogue device, characterized in that, include: The acquisition module is used to acquire current dialogue information and the previous task scenario. The intent recognition and entity extraction module is used to perform intent recognition and entity extraction on the current dialogue information to obtain the current intent and the current entity. The current task scenario confirmation module is used to determine the current task scenario based on the current intent and the current entity; The multi-cloud multi-service convergence scenario activation module is used to activate the multi-cloud multi-service convergence scenario and execute a service switching action if the current task scenario has a business association with the previous task scenario. The service switching action is based on the domain.yml configuration file obtained from RASA, which defines the intent to activate the multi-task convergence scenario, the intent to switch the scenario, the intent to cancel the switching scenario, and the corresponding actions for each intent. The multi-cloud, multi-service converged scenario activation module includes: The association strength determination unit is used to obtain a preset business relationship database and determine the association strength between the current task scenario and the previous round of task scenario based on the business relationship database. The judgment execution unit is used to activate the multi-cloud multi-service convergence scenario and perform a service switching action if the association strength is greater than or equal to a preset threshold. The intent recognition and entity extraction module includes: An entity type determination unit is used to determine the entity type of the current dialogue information; the entity type includes: multi-cloud custom entity, digital entity, and general entity; The current entity determination unit is used to extract the entity corresponding to the current dialogue information according to the entity type, and use it as the current entity.

7. A multi-cloud machine assistant dialogue device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the multi-cloud machine assistant dialogue method as described in any one of claims 1 to 5 when executing the computer program.

8. A storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the multi-cloud machine assistant dialogue method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multi-round dialogue processing method and device, electronic equipment and storage medium

    CN111639168A