Off-line and on-line dialogue process unification method and device, equipment and storage medium

By establishing a mirror link between online dialogue and offline dialogue frameworks to supplement resources, the problem of functional interruption caused by insufficient resources in online dialogue or offline dialogue is solved, and the continuity and efficiency of dialogue functions are improved.

CN119150981APending Publication Date: 2024-12-17VOYAH AUTOMOBILE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410849001.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

In an online conversation or offline conversation, when a certain path lacks resources or dependencies, the dialogue function cannot be continued.

Method used

Obtaining preset number of online nodes and offline dialog frames based on the online dialog frame, establishing a mirror link, and supplementing the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or offline conversations process.

Benefits of technology

When an online dialogue node or offline dialogue node fails, use the mirror link to supplement resources to ensure the continuity of dialogue functions, save human resource costs, and improve work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150981A_ABST
    Figure CN119150981A_ABST
Patent Text Reader

Abstract

The invention discloses an off-line and on-line dialogue process unification method and device, equipment and a storage medium, relates to the technical field of dialogue systems, and discloses an off-line and on-line dialogue process unification method which comprises the steps of obtaining a preset number of on-line nodes based on an on-line dialogue framework, obtaining a preset number of off-line nodes based on an off-line dialogue framework, a mirror image link is established based on an online node and an offline node, dialogue resources of a target processing node are supplemented based on the mirror image link so as to complete an online dialogue process or an offline dialogue process, the target processing node is an online node or an offline node having a fault, and the online dialogue process or the offline dialogue process is completed by utilizing respective advantages and specific actual current situations of an online environment and an offline environment. The conversation function is continued when the offline conversation node or the online conversation node fails, so that the conversation function which cannot be realized by a single link is completed, the human resource cost is saved, and the working efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of dialogue systems, and in particular to a method, device, equipment and storage medium for unifying offline and online dialogue processes. Background Art

[0002] Currently, online conversation technology relies on powerful cloud computing platforms and deep learning models to support complex semantic understanding and personalized services. Offline conversation technology uses edge computing and local resource optimization to ensure that basic conversation functions can still be provided in disconnected or low-bandwidth environments.

[0003] However, when a resource or dependency factor is missing in one of the online or offline conversations, the online or offline conversation function cannot be continued.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present application is to provide a method, device, equipment and storage medium for unifying offline and online dialogue processes, aiming to solve the technical problem of how to continue the dialogue function when an offline dialogue node or an online dialogue node fails.

[0006] To achieve the above objectives, the present application proposes a method for unifying online and offline conversation processes, and the method for unifying online and offline conversation processes includes:

[0007] Obtain a preset number of online nodes based on the online dialogue framework;

[0008] Acquire the preset number of offline nodes based on the offline dialogue framework;

[0009] Establishing a mirror link based on the online node and the offline node;

[0010] The dialogue resources of the target processing node are supplemented based on the mirror link to complete the online dialogue process or the offline dialogue process, and the target processing node is the online node or the offline node that has a fault.

[0011] In one embodiment, before the step of acquiring a preset number of online nodes based on the online dialogue framework, the method further includes:

[0012] Obtaining dependency factors of the online conversation framework in a cloud environment;

[0013] Abstractly expressing the dependency factors of the online dialogue framework to obtain the preset number of online nodes;

[0014] The online dialogue framework is constructed based on the online nodes.

[0015] In one embodiment, before the step of acquiring the preset number of offline nodes based on the offline dialogue framework, the method further includes:

[0016] Obtaining dependency factors of the offline dialogue framework in a local environment;

[0017] Abstractly expressing the dependency factors of the offline dialogue framework to obtain the preset number of offline nodes;

[0018] The offline dialogue framework is constructed based on the offline node.

[0019] In one embodiment, the step of establishing a mirror link based on the online node and the offline node includes:

[0020] Establishing a first mirror link based on the online node;

[0021] A second mirror link is established based on the offline node, and the first mirror link and the second mirror link constitute the mirror link.

[0022] In one embodiment, the step of supplementing the dialog resources of the target processing node based on the mirror link to complete an online dialog flow or an offline dialog flow, wherein the target processing node is a failed online node or offline node, includes:

[0023] When a failure of the online node is detected, supplementing the conversation resources of the online node based on the mirror link;

[0024] When it is detected that the offline node fails, the session resources of the offline node are supplemented based on the mirror link.

[0025] In one embodiment, the step of supplementing the conversation resources of the online node based on the mirror link includes:

[0026] Acquire a mirror offline node based on the mirror link;

[0027] The conversation resources of the online node are supplemented based on the mirrored offline node.

[0028] In one embodiment, the step of supplementing the conversation resource of the offline node based on the mirror link includes:

[0029] Acquire a mirrored online node based on the mirrored link;

[0030] The dialog resources of the offline node are supplemented based on the mirrored online node.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes an offline and online conversation process unification device, the offline and online conversation process unification device comprising:

[0032] A first acquisition module, used for acquiring a preset number of online nodes based on an online dialogue framework;

[0033] A second acquisition module, configured to acquire the preset number of offline nodes based on an offline dialogue framework;

[0034] A mirror building module, used to establish a mirror link based on the online node and the offline node;

[0035] The fault processing module is used to supplement the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or the offline dialogue process, and the target processing node is the online node or the offline node that has a fault.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes an offline and online conversation process unification device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the offline and online conversation process unification method as described above.

[0037] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the offline and online dialogue process unification method as described above are implemented.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the offline and online dialogue process unification method as described above are implemented.

[0039] One or more technical solutions proposed in this application have at least the following technical effects:

[0040] By obtaining a preset number of online nodes based on an online dialogue framework, obtaining a preset number of offline nodes based on an offline dialogue framework, establishing a mirror link based on the online nodes and the offline nodes, and supplementing the dialogue resources of the target processing node based on the mirror link, the online dialogue process or the offline dialogue process is completed, wherein the target processing node is a failed online node or offline node, and the respective advantages of the online and offline environments and the specific actual status are utilized to continue the dialogue function when a failure occurs in the offline dialogue node or the online dialogue node, so that the dialogue function that cannot be achieved by a single link can be completed, saving human resource costs and improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0042] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0043] Figure 1 A flowchart diagram of the first embodiment of the method for unifying the offline and online conversation processes of the present application;

[0044] Figure 2 A unified schematic diagram of an offline and online conversation process framework provided in Embodiment 1 of the method for unifying the offline and online conversation processes of the present application;

[0045] Figure 3 A schematic diagram of an offline and online dialogue system undertaking solution provided in Embodiment 1 of the offline and online dialogue process unified method of the present application;

[0046] Figure 4 A flowchart diagram of the second embodiment of the method for unifying the offline and online conversation processes of this application;

[0047] Figure 5 This is a schematic diagram of the module structure of the device for unifying the offline and online conversation processes according to an embodiment of the present application;

[0048] Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the offline and online dialogue process unification method in the embodiment of the present application.

[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0052] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a dialogue system, etc. The following takes the dialogue system as an example to illustrate this embodiment and the following embodiments.

[0053] Based on this, the embodiment of the present application provides a method for unifying the online and offline conversation process, referring to Figure 1 , Figure 1This is a flowchart of the first embodiment of the method for unifying online and offline conversation processes of the present application.

[0054] In this embodiment, the offline and online dialogue process unification method includes steps S10 to S40:

[0055] Step S10, obtaining a preset number of online nodes based on the online dialogue framework;

[0056] It should be noted that the online dialogue framework is deployed in a cloud environment, and the preset number of online nodes are nodes with greatly different dependency factors between the online dialogue framework and the offline dialogue framework, such as the hardware performance, storage resources, algorithm model capabilities, CP / SP (Content Provider / Service Provider) form of the dialogue framework, etc.

[0057] Specifically, the preset number of online nodes can be online algorithm nodes, cloud database nodes and cloud CP / SP nodes. The online algorithm nodes are responsible for identifying and understanding the text or voice information input by the user, and extracting the user's intentions and emotions; the cloud database nodes are responsible for obtaining or updating user personalized settings, historical conversation records and other data; the cloud CP / SP nodes are used to provide cloud computing services such as dynamic allocation of computing resources, load balancing, security control, etc.

[0058] Step S20, acquiring the preset number of offline nodes based on the offline dialogue framework;

[0059] It should be noted that the offline dialogue framework is deployed in the local environment, and the preset number of offline nodes obtained based on the offline dialogue framework is consistent in number and form with the preset number of online nodes obtained based on the online dialogue framework, and only differs in the specific implementation and dependency of the nodes, so that the online and offline processes can be mutually connected and share resources. Specifically, the corresponding preset number of offline nodes can be offline algorithms, local memory, and local CP / SP, and their functions correspond to the preset number of online nodes.

[0060] For example, Figure 2 As shown, Figure 2This is a unified schematic diagram of the online and offline dialogue process framework. It is assumed that the local environment is the vehicle environment, the cloud environment is the server environment, the online dialogue process is initiated by the server, and the offline dialogue process is initiated by the vehicle. The online dialogue framework is deployed in the server environment, and the offline dialogue framework is deployed in the vehicle environment. The nodes of the online dialogue process correspond to the nodes of the offline dialogue process one by one: for example, the online algorithm of the online dialogue link node 2 corresponds to the offline algorithm of the offline dialogue link node 2; the cloud database of the online dialogue link node 3 corresponds to the vehicle memory of the offline dialogue link node 3; the cloud CP / SP of the online dialogue link node 5 corresponds to the vehicle CP / SP of the offline dialogue link node 5.

[0061] Step S30, establishing a mirror link based on the online node and the offline node;

[0062] In a feasible implementation, step S30 may include steps A11 to A12:

[0063] Step A11, establishing a first mirror link based on the online node;

[0064] It should be noted that a corresponding number of mirrored online nodes can be generated based on a preset number of online nodes, and a mirrored online link, i.e., a first mirrored link, is established based on the mirrored online nodes. The first mirrored link is used to supplement the corresponding dialogue resources when an offline node fails to complete the offline dialogue process.

[0065] Step A12: establishing a second mirror link based on the offline node, wherein the first mirror link and the second mirror link constitute the mirror link.

[0066] It should be noted that a corresponding number of mirror offline nodes can be generated based on a preset number of offline nodes, and a mirror offline link is established based on the mirror offline nodes. The second mirror link is used to supplement the corresponding dialogue resources when an online node fails to complete the online dialogue process.

[0067] Step S40, supplementing the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or the offline dialogue process, the target processing node is the online node or the offline node that has a fault.

[0068] In a feasible implementation, step S40 may include steps A21 to A22:

[0069] Step A21, when it is detected that the online node fails, supplementing the dialogue resources of the online node based on the mirror link;

[0070] It should be noted that the online node is responsible for processing the user's dialogue request in real time. After the user initiates an online dialogue request, the dialogue request will first reach the access node of the dialogue system. The access node is responsible for receiving the text or voice input by the user and sending it to the subsequent online processing node of the online dialogue link.

[0071] It should be understood that during the process of a user conducting an online conversation, if a node in the online conversation link fails, the mirror link will take over the user's online conversation task and supplement the missing resources or dependency factors of the online conversation based on the mirror link to complete the online conversation process.

[0072] Specifically, step S21 may include: acquiring a mirrored offline node based on the mirrored link; and supplementing the dialog resource of the online node based on the mirrored offline node.

[0073] For example, Figure 3 As shown, Figure 3 The following is a schematic diagram of the offline dialogue system undertaking solution. Assuming that the offline dialogue environment is the vehicle environment and the online dialogue environment is the server environment, when the cloud CP / SP of the online dialogue link node 5 fails, the online dialogue link node 4 will generate the intermediate result processed by node 4, and the mirrored offline node 5 of the mirrored offline link will connect the intermediate result, use the CP / SP on the vehicle to process the intermediate result, and send the processing result of the vehicle CP / SP to the mirrored offline node 6 to complete the final output of the dialogue. In this process, the nodes that the online dialogue passes through are: online node 1, online node 2, online node 3, online node 4, mirrored offline node 5, and mirrored offline node 6. Certain isolation measures can be taken for the mirrored offline link in this process to avoid affecting the offline link.

[0074] Step A22: When it is detected that the offline node fails, the session resources of the offline node are supplemented based on the mirror link.

[0075] It should be understood that after the access node receives the text or voice input by the user and sends it to the subsequent offline processing node of the online dialogue link, if a node in the offline dialogue link fails, the mirror link will take over the user's offline dialogue task and supplement the missing resources or dependency factors of the online dialogue based on the mirror link to complete the online dialogue process.

[0076] Specifically, step S22 may include: acquiring a mirrored online node based on the mirrored link; and supplementing the dialogue resource of the offline node based on the mirrored online node.

[0077] For example, assuming that the offline dialogue environment is the vehicle environment and the online dialogue environment is the server environment, when the offline algorithm of the offline dialogue link node 2 fails, the offline dialogue link node 1 will generate the intermediate result processed by node 1, and the mirrored online node 2 of the mirrored online link will connect the intermediate result, use the online algorithm in the server environment to process the intermediate result, and send the processing result of the online algorithm to the mirrored online node 3 for subsequent dialogue processing to complete the final output of the dialogue. In this process, the nodes passed by the offline dialogue are: offline node 1, mirrored online node 2, mirrored online node 3, mirrored online node 4, mirrored online node 5, and mirrored online node 6. Certain isolation measures can be taken for the mirrored online link in this process to avoid affecting the online link.

[0078] In this implementation, a preset number of online nodes are obtained based on an online dialogue framework, a preset number of offline nodes are obtained based on an offline dialogue framework, a mirror link is established based on the online nodes and the offline nodes, and the dialogue resources of the target processing node are supplemented based on the mirror link to complete the online dialogue process or the offline dialogue process, wherein the target processing node is the failed online node or offline node, and the respective advantages of the online and offline environments and the specific actual status are utilized to continue the dialogue function when the offline dialogue node or the online dialogue node fails, so that the dialogue function that cannot be achieved by a single link can be completed, saving human resource costs and improving work efficiency.

[0079] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4 Before step S10, the offline and online dialogue process unified method further includes steps S01 to S03:

[0080] Step S01, obtaining dependency factors of the online dialogue framework in the cloud environment;

[0081] It should be understood that the online dialogue framework is deployed in a cloud environment, that is, a server environment. When users use the online dialogue function, they need to access the relevant dialogue resources of the server environment through the Internet. Dependency factors are factors that affect the efficient operation of the dialogue system, such as the hardware performance, storage resources, algorithm model capabilities, CP / SP form, etc. of the online dialogue framework.

[0082] Step S02, abstractly expressing the dependency factors of the online conversation framework to obtain the preset number of online nodes;

[0083] It should be noted that before abstractly expressing the dependency factors of the online dialogue framework, it is necessary to extract a preset number of dependency factors that are significantly different between the online dialogue framework and the offline dialogue framework, that is, difference factors, and abstractly express these difference factors to obtain a corresponding number of online nodes. The online node is the processing node that needs to be passed to complete an online dialogue process. Specifically, when the preset number is 3, the processing nodes of the online dialogue can be: online algorithm nodes, cloud database nodes, and cloud CP / SP nodes.

[0084] Step S03: Building the online dialogue framework based on the online nodes.

[0085] It should be understood that by selecting appropriate cloud service providers, algorithm models, computing and storage resources, and third-party services based on the abstract dependency factors of online nodes according to the characteristics of online conversations, and by specifically configuring each abstract processing node of the online conversation process, an online conversation framework that meets user needs can be designed and built.

[0086] Before step S20, the offline and online dialogue process unified method further includes steps S11 to S13:

[0087] Step S11, obtaining dependency factors of the offline dialogue framework in the local environment;

[0088] It should be understood that the offline conversation framework is deployed in the local environment, and when the user uses the offline conversation function, it is necessary to access the relevant conversation resources of the local environment.

[0089] Step S12, abstractly expressing the dependency factors of the offline conversation framework to obtain the preset number of offline nodes;

[0090] It should be noted that before abstractly expressing the dependency factors of the offline dialogue framework, it is necessary to extract a preset number of dependency factors that are significantly different between the offline dialogue framework and the online dialogue framework, that is, the difference factors, and abstractly express these difference factors to obtain a corresponding number of offline nodes. The offline node is the processing node that needs to be passed to complete an offline dialogue process. Specifically, when the preset number is 3, the processing nodes of the online dialogue can be: offline algorithm nodes, local memory nodes, and local CP / SP nodes.

[0091] Step S13: Building the offline dialogue framework based on the offline node.

[0092] It should be noted that, based on the offline nodes of abstract dependency factors, appropriate cloud service providers, algorithm models, computing and storage resources and third-party services are selected according to the characteristics of offline conversations, and specific configurations are performed on each abstract processing node of the offline conversation process, so that an offline conversation framework that meets user needs can be designed and built.

[0093] It should be understood that for algorithm nodes, the online dialogue framework can use large-scale computing resources in the cloud for deep learning model training and reasoning, while the offline dialogue framework needs to select a lighter model or run the trained model in offline mode; for storage nodes, the online dialogue framework can rely on cloud storage and distributed databases, while the offline dialogue framework relies on local or local area network data storage; for CP / SP nodes, the online dialogue framework usually relies on powerful servers and network infrastructure, while the offline dialogue framework requires stronger computing power in a single machine or local area network environment. Specifically, if the local environment is a car-machine environment, the storage node of the offline dialogue corresponds to the car-machine memory, and the CP / SP node of the offline dialogue corresponds to the car-machine CP / SP node.

[0094] In this embodiment, by obtaining the dependency factors of the online dialogue framework in the cloud environment, the dependency factors of the online dialogue framework are abstractly expressed to obtain the preset number of online nodes, and the online dialogue framework is built based on the online nodes; by obtaining the dependency factors of the offline dialogue framework in the local environment, the dependency factors of the offline dialogue framework are abstractly expressed to obtain the preset number of offline nodes, and the offline dialogue framework is built based on the offline nodes, and the difference factors of the online dialogue and the offline dialogue are abstractly expressed, so that the dialogue process framework has a cross-platform feature, so that the dialogue function can be implemented on different platforms. By implementing the difference factors in different specific ways, the number and form of the online dialogue and offline dialogue processing nodes are kept consistent while generating the online dialogue and offline dialogue systems, and the online dialogue and offline processes are unified, which is conducive to the mutual inheritance and resource sharing of the online dialogue process and the offline dialogue process.

[0095] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the unified method of the online dialogue process of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0096] This application also provides an offline and online dialogue process unification device, please refer to Figure 5 , the offline and online dialogue process unification device comprises:

[0097] A first acquisition module 10, configured to acquire a preset number of online nodes based on an online conversation framework;

[0098] A second acquisition module 20, configured to acquire the preset number of offline nodes based on an offline dialogue framework;

[0099] A mirror building module 30, configured to establish a mirror link based on the online node and the offline node;

[0100] The fault processing module 40 is used to supplement the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or the offline dialogue process. The target processing node is the online node or the offline node that has a fault.

[0101] The offline and online dialogue process unification device provided by the present application adopts the offline and online dialogue process unification method in the above embodiment, which can solve the technical problem of how to continue the dialogue function when an offline dialogue node or an online dialogue node fails. Compared with the prior art, the beneficial effects of the offline and online dialogue process unification device provided by the present application are the same as the beneficial effects of the offline and online dialogue process unification method provided by the above embodiment, and other technical features in the offline and online dialogue process unification device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0102] The present application provides an offline and online conversation process unification device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the offline and online conversation process unification method in the above-mentioned embodiment 1.

[0103] Reference below Figure 6 , which shows a schematic diagram of the structure of an offline and online dialogue process unification device suitable for implementing the embodiment of the present application. The offline and online dialogue process unification device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The offline and online conversation process unification device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0104] like Figure 6As shown, the offline and online dialogue flow unification device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the offline and online dialogue flow unification device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems may be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 may allow the offline conversation flow unification device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an offline conversation flow unification device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have instead.

[0105] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0106] The offline and online conversation process unification device provided by the present application adopts the offline and online conversation process unification method in the above embodiment, which can solve the technical problem of how to continue the conversation function when an offline conversation node or an online conversation node fails. Compared with the prior art, the beneficial effects of the offline and online conversation process unification device provided by the present application are the same as the beneficial effects of the offline and online conversation process unification method provided by the above embodiment, and other technical features in the offline and online conversation process unification device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0107] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0108] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present 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.

[0109] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the offline and online dialogue flow unification method in the above-mentioned embodiment.

[0110] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0111] The computer-readable storage medium may be included in the offline and online dialogue process unified device; or may exist independently without being assembled into the offline and online dialogue process unified device.

[0112] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the offline and online dialogue process unified device, the offline and online dialogue process unified device: obtains a preset number of online nodes based on the online dialogue framework; obtains the preset number of offline nodes based on the offline dialogue framework; establishes a mirror link based on the online nodes and the offline nodes; supplements the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or the offline dialogue process, and the target processing node is the failed online node or offline node.

[0113] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0114] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0116] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned offline and online dialogue process unification method, and can solve the technical problem of how to continue the dialogue function when an offline dialogue node or an online dialogue node fails. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the offline and online dialogue process unification method provided by the above-mentioned embodiment, and will not be repeated here.

[0117] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned offline and online dialogue process unification method when executed by a processor.

[0118] The computer program product provided by the present application can solve the technical problem of how to continue the conversation function when an offline conversation node or an online conversation node fails. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the offline and online conversation process unification method provided by the above embodiment, and will not be elaborated here.

[0119] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A unified method for offline and online conversation processes, It is characterized in that The offline and online dialogue process unified method includes: Obtain a preset number of online nodes based on the online dialogue framework; Acquire the preset number of offline nodes based on the offline dialogue framework; Establishing a mirror link based on the online node and the offline node; The dialogue resources of the target processing node are supplemented based on the mirror link to complete the online dialogue process or the offline dialogue process, and the target processing node is the online node or the offline node that has a fault.

2. The method for unifying the offline and online conversation processes as claimed in claim 1, It is characterized in that Before the step of acquiring a preset number of online nodes based on the online dialogue framework, the method further includes: Obtaining dependency factors of the online conversation framework in a cloud environment; Abstractly expressing the dependency factors of the online dialogue framework to obtain the preset number of online nodes; The online dialogue framework is constructed based on the online nodes.

3. The method for unifying the offline and online conversation processes as claimed in claim 1, It is characterized in that Before the step of acquiring the preset number of offline nodes based on the offline dialogue framework, the method further includes: Obtaining dependency factors of the offline dialogue framework in a local environment; Abstractly expressing the dependency factors of the offline dialogue framework to obtain the preset number of offline nodes; The offline dialogue framework is constructed based on the offline node.

4. The method for unifying the offline and online conversation processes as claimed in claim 1, It is characterized in that The step of establishing a mirror link based on the online node and the offline node includes: Establishing a first mirror link based on the online node; A second mirror link is established based on the offline node, and the first mirror link and the second mirror link constitute the mirror link.

5. The method for unifying the offline and online conversation processes as claimed in claim 1, It is characterized in that The step of supplementing the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or the offline dialogue process, wherein the target processing node is the online node or the offline node that has a fault, includes: When a failure of the online node is detected, supplementing the conversation resources of the online node based on the mirror link; When it is detected that the offline node fails, the session resources of the offline node are supplemented based on the mirror link.

6. The method for unifying the offline and online conversation processes as claimed in claim 5, It is characterized in that The step of supplementing the dialogue resources of the online node based on the mirror link includes: Acquire a mirror offline node based on the mirror link; The conversation resources of the online node are supplemented based on the mirrored offline node.

7. The method for unifying the online and offline conversation processes as claimed in claim 5, It is characterized in that The step of supplementing the dialogue resources of the offline node based on the mirror link includes: Acquire a mirrored online node based on the mirrored link; The dialog resources of the offline node are supplemented based on the mirrored online node.

8. A device for unifying online and offline conversation processes, It is characterized in that The device comprises: A first acquisition module, used for acquiring a preset number of online nodes based on an online dialogue framework; A second acquisition module, configured to acquire the preset number of offline nodes based on an offline dialogue framework; A mirror building module, used to establish a mirror link based on the online node and the offline node; The fault processing module is used to supplement the dialogue resources of the target processing node based on the mirror link to complete the online dialogue process or the offline dialogue process, and the target processing node is the online node or the offline node that has a fault.

9. A device for unifying online and offline conversation processes, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the offline and online dialogue process unification method according to any one of claims 1 to 7.

10. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the offline and online dialogue process unification method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Automatic business switching method and device

    CN105790995A

  • Terminal and cloud cooperative computing system and fault-tolerant method thereof

    CN107040406A

  • Session synchronization system and method, cloud computing center and cloud computing equipment

    CN114745393A

  • Man-machine conversation scene construction system based on generative language model

    CN116795971A