Method, device, equipment, medium and program product for man-machine conversation
By analyzing the effectiveness of the dialogue machine's reply and deciding whether to initiate a reply request to the manual platform, the problem of labor cost and efficiency in online customer service is solved, and the efficiency of user reception is improved.
Patent Information
- Application Number
- CN202410870246.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
AI Technical Summary
In the field of online customer service, the time-series two-stage service model of intelligent robots first and humans later leads to increased labor costs and reduced efficiency, creating bottlenecks in efficiency and experience.
By obtaining the conversation record between the user and the conversational machine, inputting it into the trained target machine learning model to analyze the effectiveness of the conversational machine's reply, and deciding whether to initiate a reply request to the artificial platform based on the effectiveness, the collaborative service between the conversational machine and artificial customer service is realized. .
While ensuring accurate responses, we can reduce manual intervention, improve the efficiency of manual responses, maximize the service potential of dialogue machines and human customer service, and improve user reception efficiency.
Smart Images

Figure CN118735530A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, devices, apparatuses, computer-readable storage media, and computer program products for human-computer dialogue. Background Art
[0002] Human-Machine Conversation refers to the technology that enables machines to understand and use natural language to achieve human-machine communication. Through human-machine conversation interaction, users can query information, chat with machines, and obtain specific services. Currently, more and more service providers use human-machine conversation technology to implement customer service functions to meet users' needs for obtaining information about specific services. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for human-computer dialogue is provided. The method includes: obtaining a dialogue record between a user and a dialogue machine, the dialogue record including the user's input information and the dialogue machine's first reply to the input information; inputting the dialogue record into a trained target machine learning model to obtain an analysis result of the first reply output by the target machine learning model; determining the validity of the first reply of the dialogue machine based on the analysis result; and determining a request requirement for an artificial platform based on the validity of the first reply, the request requirement indicating whether to initiate a request to the artificial platform to reply to the user's input information.
[0004] In a second aspect of the present disclosure, a device for human-machine dialogue is provided. The device includes: a dialogue record acquisition module, configured to acquire a dialogue record between a user and a dialogue machine, the dialogue record including the user's input information and the dialogue machine's first reply to the input information; a dialogue record input module, configured to input the dialogue record into a trained target machine learning model to obtain an analysis result of the first reply output by the target machine learning model; a validity determination module, configured to determine the validity of the first reply of the dialogue machine based on the analysis result; and a demand determination module, configured to determine a request requirement for an artificial platform based on the validity of the first reply, the request requirement indicating whether to initiate a request to the artificial platform to reply to the user's input information.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0007] In a fifth aspect of the present disclosure, a computer program product is provided. The computer program product is tangibly stored in a computer storage medium and comprises computer executable instructions, which, when executed by a device, cause the device to perform the method of the first aspect.
[0008] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart showing a process for human-computer dialogue according to some embodiments of the present disclosure is shown;
[0012] Figure 3 A flowchart showing an example of using a target machine learning model according to some embodiments of the present disclosure is shown;
[0013] Figure 4 A flowchart showing a process for human-computer dialogue according to some embodiments of the present disclosure is shown;
[0014] Figure 5 A schematic diagram showing a processing workflow for human-computer dialogue according to some embodiments of the present disclosure is shown;
[0015] Figure 6 A block diagram showing an apparatus for human-computer dialogue according to some embodiments of the present disclosure; and
[0016] Figure 7 A block diagram of an electronic device capable of implementing one or more embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0018] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0019] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0020] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0021] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multiple layers of processing units. In this article, "model" may also be referred to as "machine learning model", "machine learning network" or "network", which are used interchangeably in this article. A model may also include different types of processing units or networks.
[0022] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0023] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can independently choose whether to provide personal information to software or hardware such as electronic devices, applications, servers or storage media that execute operations of the technical solution of the present disclosure based on the prompt message.
[0024] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0025] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0026] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.
[0027] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. In the example environment 100, a target application 120 is installed in a terminal device 110. In some embodiments, the target application 120 may be an application that can provide a customer service function. For example, the target application 120 may be an application for online shopping, or an application for providing financial services, etc. It should be understood that the target application 120 may also be any other appropriate application, which at least includes providing a customer service function.
[0028] In some embodiments, the user 140 can interact with the target application 120 via the terminal device 110 and / or the attached device of the terminal device 110. Further, the user 140 can input information in the interactive window of the customer service function of the target application 120, and then the target application 120 calls the dialogue machine 145 (also called an intelligent robot) to reply. In some embodiments, the target application 120 can also call the artificial platform 150 to reply through artificial customer service.
[0029] In some embodiments, the terminal device 110 communicates with the server device 130 to implement the provision of services for the target application 120. In the environment 100, the target machine learning model 135 communicates with the server device 130. In some examples, the server device 130 can assist in implementing the provision of services for the target application 120 by calling the target machine learning model 135. The target machine learning model 135 can run on other devices / systems different from the server device 130 and the terminal device 110. Although Figure 1 Only a single target machine learning model 135 is shown, but it is understandable that there may be more models depending on the specific application needs, and different models may be configured to determine different human-computer dialogue operations in different ways, or provide other functions in the target application 120, and so on.
[0030] In some embodiments, the target machine learning model 135 may have content generation capabilities. In some embodiments, the target machine learning model 135 may include a language model, such as a large language model. In some embodiments, the target machine learning model 135 can understand the language text content and handle various natural language tasks, such as question and answer, text summarization and other tasks. The target machine learning model 135 can be pre-trained from a large amount of data so that it can understand the text modality and the semantic information of other modalities. The appropriate machine learning model can be selected according to actual needs. In the human-computer dialogue scenario, the target machine learning model 135 can be used to understand the text input related to the human-computer dialogue between the user 140 and the dialogue machine 145, and determine from the text input whether the response of the dialogue machine 145 can meet the needs of the user 140.
[0031] The target machine learning model 135 can run locally on the terminal device 110 or the server device 130 or be deployed in a remote device, cloud environment, etc. In the case of local operation, the terminal device 110 or the server device 130 can directly provide the model input to the locally installed target machine learning model 135, and obtain the model output generated by the target machine learning model 135. In the case of remote operation, the terminal device 110 or the server device 130 provides data to other devices through the communication connection between other devices. Other devices determine the model input based on the acquired data and provide the model input to the target machine learning model 135. After other electronic devices obtain the model output of the target machine learning model 135, they provide the model output through the communication connection between the terminal device 110 or the server device 130.
[0032] In some embodiments, the terminal device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the terminal device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.). The server device 130 can be various types of computing systems / servers that can provide computing capabilities, including but not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.
[0033] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0034] In the traditional online customer service field, when operating in a human-machine collaborative manner, a two-stage service model is adopted, first the intelligent robot (i.e., the conversation machine) and then the human. In the first stage, the intelligent robot matches according to the algorithm model (such as the Bert model) and obtains the results from the trained knowledge set to answer questions instead of the human customer service. If the match fails, or the customer (i.e., the user) triggers the rule of switching to human service, it is necessary to switch to the second stage, where the human customer service will provide service (this process is irreversible), and the intelligent robot will assist the human customer service to answer the questions.
[0035] In this case, labor costs will increase. In addition, when customer service is dealing with multiple customers, it is necessary to read the records between the intelligent robot and the customer, and then summarize the customer questions that need to be answered in order to respond. This process will also reduce the efficiency of manual customer service.
[0036] Therefore, in the field of online customer service, due to the upper limit of manual customer service reception capacity, a two-stage sequential service model is adopted, first with intelligent robots and then with manual services, which has bottlenecks in efficiency and experience respectively.
[0037] According to an embodiment of the present disclosure, an improved solution for human-computer dialogue is proposed. According to the solution of the embodiment of the present disclosure, a dialogue record between a user and a dialogue machine is obtained, and the dialogue record includes the user's input information and the dialogue machine's first reply to the input information; the dialogue record is input into a trained target machine learning model to obtain an analysis result of the first reply output by the target machine learning model; based on the analysis result, the validity of the first reply of the dialogue machine is determined; and based on the validity of the first reply, a request requirement for the artificial platform is determined, and the request requirement indicates whether to initiate a request to the artificial platform to reply to the user's input information. Therefore, in this way, while ensuring accurate responses to user questions, human intervention can be reduced, and the efficiency of human responses can be improved, maximizing the service potential of the dialogue machine and human customer service, thereby achieving an improvement in the reception efficiency of users.
[0038] Some example embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0039] Figure 2 FIG. 2 is a flowchart of a process 200 for human-computer dialogue according to some embodiments of the present disclosure. Figure 1 These embodiments are described with reference to the environment 100 of FIG. These embodiments may be implemented in Figure 1 In some other embodiments, these embodiments may also be implemented in the terminal device 110, or completed through the cooperation between the terminal device 110 and the server device 130. For the purpose of discussion, the following specific embodiments are implemented in the server device 130 as an example.
[0040] In box 210, the service-side device 130 can obtain the conversation record between the user 140 and the dialogue machine 145, and the conversation record includes the input information of the user 140 and the first reply of the dialogue machine 145 to the input information. In some embodiments, the user 140 can input information through the interactive window of the customer service function of the target application 120. The input information of the user 140 may include text information and voice information, etc. The input information of the user 140 may be, for example, questions related to the services provided by the target application 120. The following specific embodiment uses the example of the user 140 asking through the interactive window, "I used financial product A to buy goods, but because the return logistics has not been delivered, the refund has not been received, but the repayment period of financial product A will expire tomorrow. In this case, can I wait for the logistics to arrive and automatically repay the money without overdue?" to describe the example process of the present disclosure.
[0041] In this case, the target application 120 can call the dialogue machine 145 to answer the user 140's question. Assume that the dialogue machine 145 matches the answer: "If you have not paid off the minimum repayment amount of financial product A by X month X day in this bill, it will be considered overdue, and XX fees will be charged daily, which will also affect your personal credit. It is recommended that you repay on time." At this time, the answer can be the first response of the dialogue machine 145 to the input information. As a result, the dialogue record between the user 140 and the dialogue machine 145 is presented in the interactive window of the target application 120, and the dialogue record can be obtained by the server device 130.
[0042] In box 220, the server device 130 may input the conversation record into the trained target machine learning model 135 to obtain the analysis result of the first reply output by the target machine learning model 135. In some embodiments, when the conversation record is input into the target machine learning model 135, the server device 130 may perform content conversion on the conversation record according to a predetermined conversation template, and input the converted conversation record into the target machine learning model 135. In some embodiments, the target machine learning model 135 may be a large language model.
[0043] Figure 3 1 shows a flowchart of an example 300 of using a target machine learning model 135 according to some embodiments of the present disclosure. Example 300 may be implemented in Figure 1 The example 300 can be shown as an embodiment of some steps of the process 200. In the example 300, for the input information 310 of the user 140 and the first reply 320 of the dialogue machine 145, the server device 130 needs to perform content conversion (330) according to the predetermined dialogue template to convert it into content that is easier for the target machine learning model 135 to understand. It should be understood that the predetermined dialogue template supports dynamic configuration. Exemplarily, prompt word engineering can be used to implement content conversion.
[0044] For example, the example conversation record above can be converted into "If you are a customer service representative, and you have a consultation conversation with a customer as follows, please determine whether the reply can answer the customer's question. If not, please summarize which questions are missing and have not been answered. The conversation is: Customer: I used financial product A to purchase goods, but because the return logistics has not arrived yet, the refund has not been received. However, the repayment period of financial product A will expire tomorrow. In this case, can I wait for the logistics to arrive and automatically repay the money without overdue? Machine customer service: If you have not paid off the minimum repayment amount of financial product A on X month X day of this bill, it will be deemed overdue and XX fee will be charged daily. It will also affect your personal credit. It is recommended that you repay on time", and then the server device 130 can input the content into the target machine learning model 135.
[0045] Next, the target machine learning model 135 can extract the input information 319 of the user 140 and the intention of the first reply 320 of the dialogue machine 145 from the above content to make a judgment (340). For example, the analysis result of the target machine learning model 135 is: "The reply of the machine customer service did not answer the customer's question. The answer only emphasized the consequences of overdue repayment and did not answer the customer's question about whether it is possible to automatically repay the loan without overdue after waiting for the logistics to arrive." Further, if the target machine learning model 135 outputs the analysis result, continue with the following process (350). If the target machine learning model 135 does not output the analysis result, directly enter the manual intervention process (360).
[0046] In some embodiments, the target machine learning model 135 can be configured to split the input information into multiple sub-questions, and generate an analysis result of the first reply based on the split results. Specifically, the target machine learning model 135 can analyze how many sub-questions are included in the question of the user's 140 input information, and split the sub-questions. Then, the target machine learning model 135 analyzes the first reply of the dialogue machine 145 based on the split sub-questions to determine which answers in the first reply are correct and which answers are incorrect. That is, determine how many sub-questions in the user's 140 question are answered in the first reply of the dialogue machine 145.
[0047] In some embodiments, the target machine learning model 135 may also output the total number of sub-questions in the input information of the user 140 and the number of sub-questions that have been accurately answered. In some embodiments, the target machine learning model 135 may also output the proportion of sub-questions that have been accurately answered based on the total number and the number of sub-questions that have been accurately answered.
[0048] Therefore, by analyzing the conversation records with the help of the target machine learning model 135, customer service can be converted from the customer dimension to the problem dimension, which helps to improve the analysis efficiency of the user's 140 input information.
[0049] Continue to refer Figure 2 In block 230, the server device 130 may determine the validity of the first reply of the dialogue machine 145 based on the analysis result. Specifically, the server device 130 may determine the validity of the first reply of the dialogue machine 145 based on the total number of sub-questions in the input information of the user 140 and the number of sub-questions that have been accurately answered.
[0050] In some embodiments, when determining the validity of the first reply of the dialogue machine 145 based on the analysis result, the server device 130 can determine whether the first reply of the dialogue machine 145 is completely valid or completely invalid based on the analysis result. Specifically, if the number of sub-questions that have been answered accurately is the same as the total number of sub-questions in the input information of the user 140, it is determined that the first reply of the dialogue machine 145 is completely valid. If the number of sub-questions that have been answered accurately is zero, it is determined that the first reply of the dialogue machine 145 is completely invalid.
[0051] In some embodiments, when determining the validity of the first reply of the dialogue machine 145 based on the analysis result, the server device 130 may also determine whether the first reply of the dialogue machine 145 is partially valid based on the analysis result. Accordingly, if the number of sub-questions that have been accurately answered is greater than zero and less than the total number of sub-questions in the input information of the user 140, it is determined that the first reply of the dialogue machine 145 is partially valid.
[0052] In block 240, based on the validity of the first reply, the server device 130 may determine a request requirement to the artificial platform 150, the request requirement indicating whether to initiate a request to the artificial platform 150 to reply to the input information of the user 140. In some embodiments, when determining the request requirement to the artificial platform 150 based on the validity of the first reply, if it is determined that the first reply is all valid, the server device 130 may determine that it is not necessary to request the artificial platform 150 to reply to the input information of the user 140, and determine that the dialogue machine 145 will reply to the next input information of the user 140. In other words, if it is determined that the first reply is all valid, it means that the answer accuracy of the dialogue machine 145 is high, and it is not necessary to request the artificial platform 150 to reply to the input information of the user 140, and the dialogue machine 145 can continue to reply to the next input information of the user 140.
[0053] In another embodiment, the server device 130 can compare the proportion of sub-questions that have been answered accurately with a preset proportion threshold, and when the proportion is greater than the preset proportion threshold, there is no need to request the manual platform 150 to reply to the input information of the user 140, and the dialogue machine 145 can also continue to reply to the next input information of the user 140.
[0054] In some embodiments, when determining the request requirement to the artificial platform 150 based on the validity of the first reply, if it is determined that the first reply is completely invalid, the server device 130 may determine to request the artificial platform 150 to reply to the input information of the user 140. In other words, if it is determined that the first reply is completely invalid, it means that the answer accuracy of the dialogue machine 145 is very low, and at this time, the artificial platform 150 is requested to notify the artificial customer service to reply to the input information of the user 140.
[0055] Therefore, by determining whether to request the manual platform 150 to reply to the input information of the user 140 based on the validity of the first reply, the number of times the manual platform 150 is requested can be reduced, thereby reducing the manual intervention rate and saving manpower.
[0056] In some embodiments, when determining the request requirement to the artificial platform 150 based on the validity of the first reply, in response to determining that the first reply is partially valid, the server device 130 may determine to request the artificial platform 150 to reply to the input information of the user 140. In some embodiments, if it is determined that the first reply is partially valid, the server device 130 may send at least one sub-question corresponding to the invalid part of the first reply to the artificial platform 150, and request the artificial platform 150 to reply to the at least one sub-question.
[0057] In order to simultaneously improve the accuracy of the answers to the input information of the user 140 and reduce the manual intervention rate, the sub-questions corresponding to the invalid part of the first reply can be sent to the manual platform 150, and then the manual platform 150 is requested to reply only to these sub-questions. Therefore, compared with manually replying all the input information of the user 140, this embodiment effectively saves the time of manual reply, improves the efficiency of manual reply, and ensures the accuracy of the answer.
[0058] In some embodiments, the target machine learning model 135 is also configured to analyze the conversation record and output a conversation summary. In some embodiments, if it is determined that the request requirement indicates that a request is to be initiated to the artificial platform 150 to reply to the input information of the user 140, the server device 130 can obtain the conversation summary output by the target machine learning model 135, and send the conversation summary to the artificial platform 150 to request the artificial platform 150 to reply to the input information of the user 140 based on the conversation summary. Exemplarily, before the server device 130 requests the target machine learning model 135 to make a conversation summary, the conversation record needs to be converted according to another predetermined conversation template.
[0059] For example, the following converted content can be input into the target machine learning model 135: "You are now a customer service representative and need to transfer the customer to another customer service representative, so you need to summarize what happened just now. Please describe it in no more than 40 words so that the other customer service representative can quickly understand the problem." The target machine learning model 135 can give a conversation summary: "The return logistics has caused the refund to not be received, and the IOU repayment period is about to expire. The customer asked whether to wait for the logistics to arrive and then automatically repay the money. Please help solve the account entry problem." Then, the server device 130 can receive the conversation summary and send it to the manual platform 150, so that the manual customer service can directly reply to the input information of the user 140 based on the conversation summary. Therefore, by providing the conversation summary to the manual platform 150, the reading time of the manual customer service for the conversation record can be reduced, effectively improving the upper limit of the manual customer service reception capacity.
[0060] In this solution, the powerful context understanding, problem splitting and summarizing capabilities of the target machine learning model 135 are utilized to improve the traditional two-stage service mode into a hybrid mode of full-process answering by the dialogue machine 145 and manual response-type answering. In this way, it is possible to reduce manual intervention while ensuring accurate answers, improve the efficiency of manual responses, and maximize the service potential of the dialogue machine 145 and manual customer service, thereby improving the efficiency of user reception.
[0061] Figure 4 FIG. 4 is a flowchart of a process 400 for human-computer dialogue according to some embodiments of the present disclosure. The process 400 may be implemented in Figure 1. The process 400 can be shown as a specific embodiment of the steps of the process 200. In the process 400, first, the question (i.e., input information) of the user 140 and the first reply of the dialogue machine 145 are input to the target machine learning model 135 (405). Then, the target machine learning model 135 recognizes the questioning intention of the user 140 and recognizes the intention of the reply of the dialogue machine 145 (410). Next, the target machine learning model 135 can analyze whether the first reply of the dialogue machine 145 solves the intention of the user 140 (420). After the analysis result is obtained by the server device 130, if it is determined that the first reply of the dialogue machine 145 solves the intention of the user 140, the server device 130 directly outputs the reply of the dialogue machine 145 to the IM console (e.g., the interaction window) to the user (430). Otherwise, the server device 130 enables the target machine learning model 135 to read the conversation record between the dialogue machine 145 and the user 140, and gives the user's intention, which intentions the dialogue machine 145 has answered, and which intentions are left unanswered (440), and then outputs it to the IM console (e.g., the manual platform 150) to the manual customer service (450). Next, the manual customer service answers the question through the manual platform 150 (460). Then, the dialogue machine 145 continues to reply to the next input information of the user 140 (470).
[0062] Figure 5 FIG. 5 is a schematic diagram of an architecture 500 for human-computer dialogue according to some embodiments of the present disclosure. The architecture 500 may be implemented in Figure 1 The architecture 500 can be used in the process 200 and the process 400. In the architecture 500, the Figure 4 After the dialogue machine 145 answers the user's question (510) and a human intervenes to reply (460), the user's questions in the subsequent process will still be answered by the dialogue machine 145 first (470). The target machine learning model 135 mainly performs dialogue record analysis (420) and dialogue summary (520), and the server device 130 obtains the output result of the target machine learning model 135 to determine whether human intervention is required (460). Then, the target machine learning model 135 continues to monitor the dialogue record (530), and the execution is repeated in this way.
[0063] Through the above process, the traditional two-stage service model can be improved into a hybrid mode of full-process response by the dialogue machine 145 and manual response. At the same time, the customer service function is converted from the customer dimension to the problem dimension, avoiding the scenario where the dialogue machine 145 answers irrelevant questions, greatly improving service efficiency.
[0064] In other embodiments, the target machine learning model 135 can feed back the result that some answers of the dialogue machine 145 do not meet the user's intention to the model algorithm of the dialogue machine 145 to improve the response accuracy of the dialogue machine 145. In addition, the target machine learning model 135 can also perform fine-tuning training or optimize prompt words for the business field to improve the analysis ability of the target machine learning model 135 and the accuracy of the conversation summary.
[0065] Figure 6 A schematic structural block diagram of an apparatus 600 for human-computer dialogue according to some embodiments of the present disclosure is shown. The apparatus 600 may be implemented as or included in the server device 130. Each module / component in the apparatus 600 may be implemented by hardware, software, firmware or any combination thereof.
[0066] As shown in the figure, the device 600 includes a conversation record acquisition module 610, which is configured to acquire a conversation record between a user and a conversation machine, wherein the conversation record includes input information of the user and a first reply of the conversation machine to the input information.
[0067] The device 600 also includes a conversation record input module 620, which is configured to input the conversation record into a trained target machine learning model to obtain an analysis result of the first reply output by the target machine learning model.
[0068] The apparatus 600 further includes a validity determination module 630 configured to determine the validity of the first reply of the dialogue machine based on the analysis result.
[0069] The device 600 also includes a requirement determination module 640, which is configured to determine a request requirement to the manual platform based on the validity of the first reply, and the request requirement indicates whether to initiate a request to the manual platform to reply to the user's input information.
[0070] In some embodiments, the validity determination module 630 is further configured to determine whether the first reply of the dialogue machine is completely valid or completely invalid based on the analysis result.
[0071] In some embodiments, the demand determination module 640 is further configured to determine that there is no need to request the manual platform to reply to the user's input information in response to determining that the first reply is all valid; and determine that the dialogue machine will reply to the user's next input information.
[0072] In some embodiments, the demand determination module 640 is further configured to determine to request the manual platform to reply to the input information of the user in response to determining that the first reply is completely invalid.
[0073] In some embodiments, the validity determination module 630 is further configured to determine whether the first reply of the dialogue machine is partially valid based on the analysis results; wherein the demand determination module 640 is further configured to determine to request the artificial platform to reply to the input information of the user in response to determining that the first reply is partially valid.
[0074] In some embodiments, the target machine learning model is configured to split the input information into multiple sub-questions, and generate the analysis result of the first reply based on the result of the splitting, and the device 600 also includes a partially valid module, which is configured to send at least one sub-question corresponding to the invalid part of the first reply to the artificial platform in response to determining that the first reply is partially valid; and request the artificial platform to reply to the at least one sub-question.
[0075] In some embodiments, the target machine learning model is also configured to analyze the conversation record and output a conversation summary, wherein the device 600 also includes a conversation summary module, which is configured to obtain the conversation summary output by the target machine learning model in response to determining that the request requirement indicates a request to the artificial platform to reply to the user's input information; and to request the artificial platform to reply to the user's input information based on the conversation summary by sending the conversation summary to the artificial platform.
[0076] In some embodiments, the conversation record input module 620 is further configured to perform content conversion on the conversation record according to a predetermined conversation template; and input the converted conversation record into the target machine learning model.
[0077] The units and / or modules included in the device 600 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units and / or modules in the device 600 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0078] Figure 7 A block diagram of an electronic device 700 is shown in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 7The electronic device 700 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 7 The electronic device 700 shown can be used to implement Figure 1 The server device 130 or Figure 6 Device 600.
[0079] like Figure 7 As shown, the electronic device 700 is in the form of a general electronic device. The components of the electronic device 700 may include, but are not limited to, one or more processors or processing units 710, a memory 720, a storage device 730, one or more communication units 740, one or more input devices 750, and one or more output devices 760. The processing unit 710 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 720. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 700.
[0080] The electronic device 700 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the electronic device 700, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 720 may be a volatile memory (e.g., a register, a cache, a random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 730 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the electronic device 700.
[0081] The electronic device 700 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 7 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 720 may include a computer program product 725 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.
[0082] The communication unit 740 implements communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 700 can be implemented with a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 700 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0083] The input device 750 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 760 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 700 may also communicate with one or more external devices (not shown) through the communication unit 740 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 700, or communicate with any device that allows the electronic device 700 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0084] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0085] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0086] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0087] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0088] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the logical function of the specification. In some implementations as replacements, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse 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 realized by a special hardware-based system that performs the function or action of the specification, or can be realized by a combination of special hardware and computer instructions.
[0089] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A method for human-computer dialogue, comprising: Acquire a conversation record between a user and a conversation machine, wherein the conversation record includes input information of the user and a first reply of the conversation machine to the input information; Inputting the conversation record into a trained target machine learning model to obtain an analysis result of the first reply output by the target machine learning model; Based on the analysis result, determining the validity of the first reply of the dialogue machine; as well as Based on the validity of the first reply, a request requirement to an artificial platform is determined, where the request requirement indicates whether to initiate a request to the artificial platform to reply to the input information of the user.
2. The method according to claim 1, wherein based on the analysis result, determining the validity of the first reply of the conversation machine comprises: Based on the analysis result, determine whether the first reply of the dialogue machine is completely valid or completely invalid.
3. The method according to claim 2, wherein based on the validity of the first reply, determining the request requirement for the artificial platform comprises: In response to determining that all of the first replies are valid, determining that there is no need to request the manual platform to reply to the input information of the user; as well as Determine that the dialogue machine will reply to the next input information of the user.
4. The method according to claim 2, wherein based on the validity of the first reply, determining the request requirement for the artificial platform further comprises: In response to determining that all of the first replies are invalid, it is determined to request the manual platform to reply to the input information of the user.
5. The method according to claim 1, wherein based on the analysis result, determining the validity of the first reply of the conversation machine further comprises: Based on the analysis result, determining whether the first reply of the dialogue machine is partially valid; Wherein, based on the validity of the first reply, determining the request requirement for the artificial platform further includes: In response to determining that the first reply part is valid, it is determined to request the manual platform to reply to the input information of the user.
6. The method according to claim 5, wherein the target machine learning model is configured to split the input information into a plurality of sub-questions, and generate the analysis result of the first reply based on the result of the splitting, and the method further comprises: In response to determining that the first reply portion is valid, sending at least one sub-question corresponding to the invalid portion of the first reply to the manual platform; as well as Request the artificial platform to reply to the at least one sub-question.
7. The method according to claim 1, wherein the target machine learning model is further configured to analyze the conversation record and output a conversation summary, The method further comprises: In response to determining that the request requirement indicates that a request is to be initiated to the artificial platform to reply to the input information of the user, obtaining the conversation summary output by the target machine learning model; as well as The conversation summary is sent to the artificial platform to request the artificial platform to reply to the input information of the user based on the conversation summary.
8. The method according to claim 1, wherein inputting the conversation record into a target machine learning model comprises: Performing content conversion on the conversation record according to a predetermined conversation template; as well as The converted conversation record is input into the target machine learning model.
9. A device for human-computer dialogue, comprising: A conversation record acquisition module is configured to acquire a conversation record between a user and a conversation machine, wherein the conversation record includes input information of the user and a first reply of the conversation machine to the input information; a conversation record input module, configured to input the conversation record into a trained target machine learning model to obtain an analysis result of the first reply output by the target machine learning model; A validity determination module, configured to determine the validity of the first reply of the dialogue machine based on the analysis result; as well as The demand determination module is configured to determine a request demand to the artificial platform based on the validity of the first reply, and the request demand indicates whether to initiate a request to the artificial platform to reply to the input information of the user.
10. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 8 when executed by the at least one processing unit.
11. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 8.
12. A computer program product tangibly stored in a computer storage medium and comprising computer executable instructions which, when executed by a device, cause the device to perform the method according to any one of claims 1 to 8.
Citation Information
Cited By
Method and apparatus for human-machine conversation, device, medium, and program product
WO2026000958A1
