Question and answer processing method and device, computer equipment and storage medium

CN118568239APending Publication Date: 2024-08-30CHINA CONSTRUCTION BANK +1

Patent Information

Application Number
CN202410842125.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-08-30

Smart Images

  • Figure CN118568239A
    Figure CN118568239A
Patent Text Reader

Abstract

The invention relates to a question and answer processing method and device, computer equipment, a storage medium and a computer program product, and relates to the technical field of intelligent customer service. The method comprises the steps of obtaining input question information in response to a question and answer event triggered for a business scene, performing semantic analysis on the question information, determining a question intention of the question information and an emotional state expressed by the question information, determining response information of the question information according to the emotional state and the question intention, and sending the response information to the business scene. And based on the emotional state expressed by each round of question information, determining an emotional change trend in the question answering process. The emotion change trend reflects the output accuracy of each round of response information, the service quality of the intelligent customer service channel of the large language model is determined based on the emotion change trend, the manual scoring step is omitted, and the efficiency of determining the service quality is improved. By adopting the method, the question-answer interaction frequency can be reduced, and resources and time consumed in the question-answer processing process can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent customer service technology, and in particular to a question and answer processing method, apparatus, computer equipment, storage medium and computer program product. Background Art

[0002] With the development of artificial intelligence, more and more companies have begun to adopt intelligent customer service systems to improve service quality and reduce operating costs, and intelligent customer service systems have been widely used.

[0003] In traditional technology, the question-answering process based on the intelligent customer service system is as follows: the system receives the question input by the user, identifies the intention of the question, searches for the answer that matches the question based on the intention, and feeds the answer back to the user. If the user is not satisfied with the answer that matches the question, he or she will input the question into the system again. The multiple interactions between the user and the system require a lot of resources and time, and there is a problem of low efficiency in question-answering processing. Summary of the invention

[0004] Based on this, it is necessary to provide a question and answer processing method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of question and answer processing in response to the above technical problems.

[0005] In a first aspect, the present application provides a question-answering processing method. The method comprises:

[0006] In response to a question-and-answer event triggered for a business scenario, input question information is obtained; semantic analysis is performed on the question information to determine the question intent of the question information and the emotional state expressed by the question information; based on the emotional state and the question intent, prompt information for the question-and-answer event is determined; the prompt information is input into a large language model so that the large language model obtains answer information for the question information under the guidance of the prompt information; new question information input for the answer information is obtained, and the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information is returned; in the case of outputting multiple rounds of answer information, based on the emotional state expressed in each round of question information, the emotional change trend in the question-and-answer process is determined; based on the emotional change trend, the service quality of the intelligent customer service channel to which the large language model belongs is determined.

[0007] In one embodiment, the question information is multimodal information; semantic analysis is performed on the question information to determine the emotional state expressed by the question information, including: determining the sub-information of each modality from the question information; and determining the emotional state expressed by the question information based on the emotional information contained in each of the sub-information.

[0008] In one of the embodiments, the emotional state expressed by the question information is determined based on the emotional information contained in each of the sub-information, including: extracting emotional information of the corresponding modality from each of the sub-information; performing feature extraction on each of the emotional information to determine the emotional features of each of the emotional information; fusing the emotional features to obtain the emotional fusion features of the question information; and determining the emotional state represented by the emotional fusion features as the emotional state expressed by the question information.

[0009] In one of the embodiments, the method further includes: when the response information or the emotional state meets the manual service conditions, forwarding the question information and the response information to a manual customer service channel, and acquiring and outputting new response information determined by the manual customer service channel; when neither the response information nor the emotional state meets the manual service conditions, outputting the response information.

[0010] In one of the embodiments, the method further includes at least one of the following items: first item: determining the confidence of the response information; when the confidence is lower than a confidence threshold, determining that the response information satisfies the manual service conditions; second item: when the emotional state matches the target state, determining that the emotional state satisfies the manual service conditions.

[0011] In one of the embodiments, determining the trend of emotional changes in the question-answering process based on the emotional state expressed in each round of question information includes: determining the emotional state expressed in each round of question information; determining the trend of emotional changes in the question-answering process based on the emotional scores matched by each of the emotional states.

[0012] In a second aspect, the present application also provides a question-answer processing device. The device comprises:

[0013] An acquisition module is used to obtain input question information in response to a question and answer event triggered for a business scenario; an analysis module is used to perform semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information; an information determination module is used to determine prompt information for the question and answer event based on the emotional state and the question intent; a guidance module is used to input the prompt information into a large language model so that the large language model outputs answer information for the question information under the guidance of the prompt information; an information acquisition module is used to obtain new question information input for the answer information, and return to the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information; a trend determination module is used to determine the emotional change trend in the question and answer process based on the emotional state expressed by each round of question information when multiple rounds of answer information are output; a quality determination module is used to determine the service quality of the intelligent customer service channel to which the large language model belongs based on the emotional change trend.

[0014] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0015] In response to a question-and-answer event triggered for a business scenario, input question information is obtained; semantic analysis is performed on the question information to determine the question intent of the question information and the emotional state expressed by the question information; based on the emotional state and the question intent, prompt information for the question-and-answer event is determined; the prompt information is input into a large language model so that the large language model obtains answer information for the question information under the guidance of the prompt information; new question information input for the answer information is obtained, and the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information is returned; in the case of outputting multiple rounds of answer information, based on the emotional state expressed in each round of question information, the emotional change trend in the question-and-answer process is determined; based on the emotional change trend, the service quality of the intelligent customer service channel to which the large language model belongs is determined.

[0016] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0017] In response to a question-and-answer event triggered for a business scenario, input question information is obtained; semantic analysis is performed on the question information to determine the question intent of the question information and the emotional state expressed by the question information; based on the emotional state and the question intent, prompt information for the question-and-answer event is determined; the prompt information is input into a large language model so that the large language model obtains answer information for the question information under the guidance of the prompt information; new question information input for the answer information is obtained, and the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information is returned; in the case of outputting multiple rounds of answer information, based on the emotional state expressed in each round of question information, the emotional change trend in the question-and-answer process is determined; based on the emotional change trend, the service quality of the intelligent customer service channel to which the large language model belongs is determined.

[0018] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0019] In response to a question-and-answer event triggered for a business scenario, input question information is obtained; semantic analysis is performed on the question information to determine the question intent of the question information and the emotional state expressed by the question information; based on the emotional state and the question intent, prompt information for the question-and-answer event is determined; the prompt information is input into a large language model so that the large language model obtains answer information for the question information under the guidance of the prompt information; new question information input for the answer information is obtained, and the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information is returned; in the case of outputting multiple rounds of answer information, based on the emotional state expressed in each round of question information, the emotional change trend in the question-and-answer process is determined; based on the emotional change trend, the service quality of the intelligent customer service channel to which the large language model belongs is determined.

[0020] The above-mentioned question-answering processing method, device, computer equipment, storage medium and computer program product, in response to the question-answering event triggered for the business scenario, obtains the input question information, performs semantic analysis on the question information, determines the question intention of the question information, and the emotional state expressed by the question information, determines the prompt information for the question-answering event based on the emotional state and the question intention, and inputs the prompt information into the large language model so that the large language model obtains the answer information of the question information under the guidance of the prompt information. Since the question intention and the emotional state are combined in the process of determining the answer information, and the large language model is guided to output the answer information through the prompt words, the accuracy of the answer information can be improved, thereby reducing the number of question-answering interactions. The question intention for the answer information and the emotional state expressed by the question information are obtained, and when multiple rounds of answer information are output, the emotional change trend in the question-answering process is determined based on the emotional state expressed by each round of question information. The emotional change trend reflects the output accuracy of each round of answer information, and the service quality of the intelligent customer service channel of the large language model is determined based on the emotional change trend, omitting the manual scoring step and improving the efficiency of service quality determination. Therefore, the above method can, on the one hand, reduce the number of question-answering interactions and solve the resources and time consumed in the question-answering process; on the other hand, based on the trend of sentiment changes in multiple rounds of question-answering processes, determine the service quality of the intelligent customer service channel to which the large language model belongs, omit the manual scoring step, and help improve the efficiency of question-answering processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is an application environment diagram of a question-answering processing method in an embodiment;

[0022] Figure 2 A flowchart of a question-answering processing method in one embodiment;

[0023] Figure 3 A schematic diagram of a process of forwarding a response message in one embodiment;

[0024] Figure 4 is a flowchart of a question-answering processing method based on multimodal emotion classification in one embodiment;

[0025] Figure 5 A schematic diagram of a flow chart of a customer service dialogue method in one embodiment;

[0026] Figure 6 is a structural block diagram of a question-answering processing device in an embodiment;

[0027] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. In addition, the acquisition, storage, processing, and transmission of data are in compliance with relevant laws and regulations.

[0030] The question-answer processing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the terminal 102 communicates with the server 104 through a network. The data storage system can store data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers.

[0031] The server 104 responds to the question and answer event triggered by the terminal 102 for the business scenario and obtains the input question information. The server 104 performs semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information. Based on the emotional state and the question intent, the server 104 determines the prompt information for the question and answer event. The server 104 inputs the prompt information into the large language model so that the large language model obtains the answer information of the question information under the guidance of the prompt information. The server 104 obtains the new question information input for the answer information and returns the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information. When outputting multiple rounds of answer information, the server 104 determines the emotional change trend in the question and answer process based on the emotional state expressed in each round of question information. Based on the emotional change trend, the server 104 determines the service quality of the intelligent customer service channel to which the large language model belongs.

[0032] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.

[0033] In one embodiment, Figure 2 As shown, a question-answering processing method is provided, which is applied to Figure 1The following is an example of a server in the example, including:

[0034] S202, in response to a question-and-answer event triggered for a business scenario, obtaining input question information.

[0035] The business scenario may be a user's question-and-answer related scenario. Specifically, the business scenario may represent a question-and-answer related scenario of a terminal held by the user. Exemplarily, the question-and-answer related scenario may be a question-and-answer page, a question-and-answer dialog box, and the like.

[0036] Among them, the question-and-answer event refers to a question-and-answer event triggered in a business scenario, for example, entering a piece of text in a question-and-answer dialog box, uploading a voice on a question-and-answer page, or collecting a question-and-answer video on a question-and-answer page, where the question-and-answer video contains the questions asked by the user and image information related to the user.

[0037] The triggered question-and-answer event may specifically be an action of uploading a voice, an action of inputting text, or an action of collecting a question-and-answer video.

[0038] Specifically, by responding to a question-and-answer event triggered for a business scenario, question information input by a user may be obtained.

[0039] The question information refers to information with question intent received by the server. The question information can be unimodal information or multimodal information. Multimodal information refers to information of at least two modes, and the multimodal information can be at least two modes of voice mode, text mode, video mode, etc. Unimodal information is one of the modal information, for example, text modal information. Receiving multimodal information helps to obtain a more comprehensive question intent.

[0040] The question information may also represent the information received by the service with the question intention and emotional state, which is helpful for subsequent analysis of the emotional state in the question information and improves the accuracy of the question and answer.

[0041] S204, performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information.

[0042] Among them, the question intent indicates the specific question of the question information. For example, the question information can be text modal information "What is the price of apples in area A today" and the question intent is "How much is the price of apples in area A per kilogram".

[0043] Among them, the emotional state represents the emotion that the question information wants to express, that is, it reflects the emotion of the user when asking the question. The emotional state includes the emotion type and the degree of the emotion type. The emotion type includes anger, happiness, confusion, etc. The degree represents the different degrees of the emotion type, for example, very angry, generally angry, not angry, etc.

[0044] There are many types of semantic analysis. For example, the sentiment classification model with an embedded semantic analysis module can perform semantic analysis on question information and extract the question intent and the emotional state that the question information wants to express.

[0045] Specifically, the sentiment classification model is used to perform semantic analysis on the question information to determine the question intent and the emotional state expressed by the question information. After obtaining the question intent and emotional state, it is convenient to determine accurate answer information for the question information based on the question intent and emotional state. Compared with the traditional method of determining the answer information only based on the question intent, the answer information obtained is more accurate, thereby reducing the number of question-answering interactions and improving the efficiency of question-answering.

[0046] S206, determining prompt information for the question and answer event based on the emotional state and the question intention.

[0047] There are many ways to determine the response information of the question message based on the emotional state and the question intent.

[0048] Specifically, emotional prompt words can be generated based on the emotional state; then the question intention is rewritten according to the emotional prompt words to obtain the rewritten question intention, and then the rewritten question intention is input into the large language model to obtain the response information of the question information.

[0049] Specifically, prompt information for the question-answering event may be determined based on the emotional state and question intention; the prompt information may be input into the large language model so that the large language model obtains response information to the question information under the guidance of the prompt information.

[0050] Among them, for the method of generating emotional prompt words: emotional prompt words can be identifiers of emotional states, and the question intent can be rewritten according to the identifier to make the question intent conform to machine language habits, and the rewritten question intent is re-input into the large language model, and the answer information of the obtained question information is more accurate. The rewriting method includes but is not limited to adding question marks to the question intent, adding emotional words, and changing the tone of the question intent to a question sentence.

[0051] Among them, for the method of generating prompt information: the prompt information for the question and answer event can be emotional information, and the emotional information is input into the large language model so that the large language model can obtain the answer information of the question information under the guidance of the emotional information.

[0052] Among them, the question-and-answer event refers to a question-and-answer event triggered in a business scenario, for example, entering a piece of text in a question-and-answer dialog box, uploading a voice on a question-and-answer page, or collecting a question-and-answer video on a question-and-answer page, where the question-and-answer video contains the questions asked by the user and image information related to the user.

[0053] The prompt information may be a prompt word or a prompt sentence. Specifically, the prompt word may be input into the large language model so that the large language model obtains answer information of the question information under the guidance of the prompt word. The prompt sentence may also be input into the large language model so that the large language model obtains answer information of the question information under the guidance of the prompt sentence.

[0054] S208, inputting the prompt information into the large language model, so that the large language model obtains answer information of the question information under the guidance of the prompt information.

[0055] Among them, a large language model (LLM) can be a form of a large model, which refers to a type of artificial intelligence model with a huge number of parameters, a huge amount of training data, strong computing power and high flexibility. Typically, a large model will contain billions or even tens of billions of parameters, which will be trained on large-scale data sets through complex optimization algorithms in order to obtain powerful language expression, reasoning, learning and migration capabilities.

[0056] Among them, the big language model is a deep learning model trained based on massive text data. It can not only generate natural language text, but also deeply understand the meaning of the text and handle various natural language tasks such as text summarization, question answering, translation, etc.

[0057] Exemplarily, the large language model includes a knowledge graph and a fine-tuning model. The knowledge graph can be a knowledge graph of a business field related to a business product, and the fine-tuning model represents a model obtained by fine-tuning the large model. Specifically, the large model generates a suitable response, i.e., answer information of the question information, under the guidance of the prompt information and based on the internal knowledge base. The response ideally represents accurate and emotional information.

[0058] It should be noted that in some cases the response information output by the large language model will not be accepted by the user, and the response information may not be relevant to the question. This not only prolongs the question and answer rounds, but also leads to user complaints. In order to avoid this situation, an application agent is established in the large language model. For example, the customer service agent includes a channel for transferring to manual customer service. When the conditions for manual service are met, the question information is forwarded to the manual customer service channel. When the manual service channel is fully occupied, the large language model continues to try to answer the user's questions.

[0059] S210, obtaining new question information input for the response information, and returning to the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information.

[0060] Among them, new question information input for the response information is obtained, and semantic analysis of the question information is returned to determine the question intent of the question information and the emotional state expressed by the question information. This is similar to the processing process of the question information and will not be repeated here.

[0061] S212, when multiple rounds of response information are output, based on the emotional state expressed in each round of question information, determine the trend of emotional changes in the question-answering process.

[0062] The loop termination condition is that no new question information is obtained for the response information input. For example, after the user performs three rounds of human-computer interaction, three rounds of question information are obtained and three rounds of response information are generated.

[0063] According to the emotional states expressed in multiple rounds of question information, the trend of emotional changes in the question-answering process is determined. The trend of emotional changes includes emotional easing, emotional agitation, and no obvious emotional changes.

[0064] For example, a moderated emotion may be a change from not being angry to being happy, an agitated emotion may be a change from being confused to not being angry, and no obvious change in emotion means that the emotion type has not changed, for example, the emotion is always in a confused state.

[0065] S214, based on the trend of sentiment changes, determine the service quality of the intelligent customer service channel to which the large language model belongs.

[0066] Among them, the intelligent customer service channel refers to the customer service channel that interacts with users. The service quality refers to the service quality of the intelligent customer service channel. The higher the service quality, the more accurate and emotional the response messages output by the intelligent customer service channel in multiple rounds of questions and answers are. The lower the service quality, the less accurate and emotional the response messages output by the intelligent customer service channel in multiple rounds of questions and answers are.

[0067] Specifically, quality conditions can also be set. If the service quality is lower than the quality conditions, it is considered that the response message does not meet user needs or user satisfaction is low. At this time, the manual service conditions can be adjusted so that the response message and emotional state can more easily meet the manual service conditions, and the problem information can be forwarded to the manual customer service channel.

[0068] Specifically, adjusting the manual service conditions includes: lowering the judgment condition of the response information, that is, lowering the confidence threshold, and lowering the judgment condition of the emotional state, that is, lowering the corresponding threshold between the emotional state and the target state.

[0069] In the above-mentioned question-answering processing method, in response to a question-answering event triggered for a business scenario, the input question information is obtained, the question information is semantically analyzed, the question intent of the question information and the emotional state expressed by the question information are determined, and based on the emotional state and the question intent, the prompt information for the question-answering event is determined, and the prompt information is input into the large language model so that the large language model obtains the answer information of the question information under the guidance of the prompt information. Since the question intent and the emotional state are combined in the process of determining the answer information, and the large language model is guided to output the answer information through the prompt words, the accuracy of the answer information can be improved, thereby reducing the number of question-answering interactions. The question intent for the answer information and the emotional state expressed by the question information are obtained, and when multiple rounds of answer information are output, the emotional change trend in the question-answering process is determined based on the emotional state expressed by each round of question information. The emotional change trend reflects the output accuracy of each round of answer information, and the service quality of the intelligent customer service channel of the large language model is determined based on the emotional change trend, omitting the manual scoring step and improving the efficiency of service quality determination. Therefore, the above method can, on the one hand, reduce the number of question-answering interactions and solve the resources and time consumed in the question-answering process; on the other hand, based on the trend of sentiment changes in multiple rounds of question-answering processes, determine the service quality of the intelligent customer service channel to which the large language model belongs, omit the manual scoring step, and help improve the efficiency of question-answering processing.

[0070] In one embodiment, the question information is multimodal information, and semantic analysis is performed on the question information to determine the emotional state expressed by the question information, including: determining the sub-information of each modality from the question information, and determining the emotional state expressed by the question information based on the emotional information contained in each sub-information.

[0071] The question information may be subjected to semantic analysis to obtain the emotional state expressed by the question information separately. Exemplarily, the question information is input into an emotional classification model of an embedded semantic analysis module to output the emotional state to be expressed by the question information.

[0072] The question information may be multimodal information. Multimodal information refers to information of at least two modes, and the multimodal information may be at least two modes of voice mode, text mode, video mode, etc. Exemplarily, the multimodal information is information including text mode and voice mode. For example, a voice input by a user and a text associated with the voice are obtained.

[0073] The sub-information of the modality indicates the problem information represented in the modality. For the text modality, the sub-information is the text modality sub-information. For the voice modality, the sub-information is the voice modality sub-information. For the video modality, the sub-information is the video modality sub-information.

[0074] Among them, the emotion information represents the emotion-related information carried by the sub-information. For example, for text modal sub-information, the emotion information can be text modal particles, text symbols, etc. For example, the sub-information can be question words, question marks, etc. For voice modal sub-information, the emotion information can be sound spectrum, energy, rhythm, etc. For video modal sub-information, the emotion information can be expressions, gestures, etc.

[0075] The emotional states to be expressed by the multimodal information reflected by each emotional information may not be the same. Specifically, each sub-information may be emotionally scored according to each emotional information to obtain the emotional score corresponding to each sub-information. The emotional scores may be combined to obtain the total score corresponding to the multimodal information. The emotional state to be expressed by the multimodal information may be determined according to the mapping relationship between the score and each emotional state and the total score.

[0076] Exemplarily, the emotional states corresponding to the video modal sub-information include: angry state is 70%, confused state is 30%, the emotional states corresponding to the text modal sub-information include: angry state is 10%, confused state is 90%, and the emotional states corresponding to the voice modal sub-information include: angry state is 40%, confused state is 60%. Each sub-information is emotionally scored according to each emotional information to obtain the emotional score corresponding to each sub-information. It should be noted that the scoring weight of the angry state is greater than the scoring weight of the confused state, which is greater than the scoring weight of the happy state. The emotional score of the video modal sub-information is 7 points, the emotional score of the text modal sub-information is 1 point, and the emotional score of the voice modal sub-information is 4 points. The emotional scores are combined to obtain the total score corresponding to the multimodal information. According to the mapping relationship between the score and each emotional state and the total score, it is determined that the emotional state to be expressed by the multimodal information is the angry state.

[0077] Specifically, it is also possible to extract emotional information of the corresponding modality from each sub-information, perform feature extraction on each emotional information, determine the emotional characteristics of each emotional information, fuse each emotional characteristic, obtain the emotional fusion characteristic of the problem information, and determine the emotional state represented by the emotional fusion characteristic as the emotional state expressed by the problem information.

[0078] In this embodiment, the question information is multimodal information. The sub-information of each modality is determined from the question information. Based on the emotional information contained in each sub-information, the emotional state expressed by the question information is determined to obtain an accurate emotional state, which helps to improve the accuracy of the response information and thereby reduce the number of questions and answers.

[0079] In one embodiment, based on the emotional information contained in each sub-information, the emotional state expressed by the question information is determined, including: extracting emotional information of the corresponding modality from each sub-information, performing feature extraction on each emotional information, determining the emotional features of each emotional information, fusing each emotional feature to obtain an emotional fusion feature of the question information, and determining the emotional state represented by the emotional fusion feature as the emotional state expressed by the question information.

[0080] The feature extraction of the emotion information may be to extract the emotion feature of the emotion information in the feature space, and the emotion feature may be a vector in the feature space.

[0081] The fusion of the emotion features may be to perform a fusion operation on the vectors corresponding to the emotion features in the feature space to obtain a fusion vector, and then reversely extract the fusion vector from the feature space to obtain the emotion fusion feature.

[0082] The fusion operation includes vector concatenation, vector summation or other vector operations.

[0083] Specifically, the vectors of the respective emotion features may be concatenated or subjected to other vector operations to obtain a fusion vector, namely, an emotion fusion feature. The emotion fusion feature may be represented as a fusion vector in the feature vector.

[0084] Specifically, after the fusion vector is obtained, the fusion vector is transformed according to the correspondence between the vector in the feature space and the emotional state to obtain the emotional state represented by the emotional fusion feature, and the emotional state is determined as the emotional state expressed by the question information.

[0085] In this embodiment, emotional information of the corresponding modality is extracted from each sub-information, and features are extracted for each emotional information, and the emotional features of each emotional information are determined. The emotional features are fused to obtain the emotional fusion features of the question information, and the emotional state represented by the emotional fusion features is determined as the emotional state expressed by the question information. The emotional features are fused in the feature space to obtain the emotional fusion features, and then the accurate emotional state is obtained, which helps to improve the accuracy of the response information and reduce the number of questions and answers.

[0086] In one embodiment, Figure 3 The flowchart of the answer information forwarding method shown in FIG. 1 further includes:

[0087] S302, when the answer information or emotional state meets the manual service conditions, forwarding the question information and the answer information to the manual customer service channel, and obtaining and outputting new answer information determined by the manual customer service channel;

[0088] Among them, the manual service condition is the condition for determining whether the problem information is forwarded to the manual customer service channel. Among them, the manual service condition includes the judgment condition of the response information and the judgment condition of the emotional state.

[0089] The judgment condition of the response information may be that the confidence level corresponding to the response information is lower than a confidence level threshold.

[0090] The judgment condition of the emotional state may be that the degree of matching between the emotional state and the target state is higher than a threshold.

[0091] Exemplarily, the judgment condition of the response information may be that the confidence threshold corresponding to the response information is less than 80%. The judgment condition of the emotional state may be that the degree of match between the emotional state and the target state is higher than a threshold of 80%. Among them, the target state may be an angry state. If the degree of match between the emotional state of the response information and the angry state is higher than the threshold, it means that the emotional state is more likely to be an angry state. At this time, the question information corresponding to the response information can be forwarded to the manual channel.

[0092] When the response information or emotional state meets the manual service conditions, the question information and response information are forwarded to the manual customer service, the manual customer service's feedback answer to the question message is received, the answer is sent to the terminal, and the answer is displayed on the terminal to complete a round of question-and-answer human-computer interaction.

[0093] S304: When the response information and the emotional state do not meet the manual service conditions, output the response information.

[0094] Among them, when both the response information and the emotional state do not meet the manual service conditions, it means that the response information is highly accurate and emotionally rich.

[0095] Among them, when the response information or emotional state meets the manual service conditions, it means that the response information is of low accuracy and lacks emotional color. At this time, the question information and the response information are forwarded to the manual customer service channel.

[0096] Among them, when both the response information and the emotional state do not meet the manual service conditions, the response information is sent to the terminal to complete a round of question-and-answer human-computer interaction. Further, new question information input for the response information is obtained, and the question information is returned to perform semantic analysis to determine the question intent of the question information and the emotional state expressed by the question information; when multiple rounds of response information are output, the emotional change trend in the question-and-answer process is determined based on the emotional state expressed in each round of question information; based on the emotional change trend, the service quality of the intelligent customer service channel to which the large language model belongs is determined.

[0097] In this embodiment, when the response information or emotional state meets the manual service conditions, the question information and response information are forwarded to the manual customer service channel, and new response information determined by the manual customer service channel is obtained and output; when neither the response information nor the emotional state meets the manual service conditions, the response information is output to avoid a question-and-answer dead loop, which is conducive to improving the efficiency of question-and-answer processing.

[0098] In one embodiment, the question and answer processing method also includes at least one of the following items: first item: determining the confidence of the response information, and when the confidence is lower than the confidence threshold, determining that the response information meets the manual service conditions; second item: when the emotional state matches the target state, determining that the emotional state meets the manual service conditions.

[0099] The confidence of the response information may indicate the difference between the response information and the accurate information. If the confidence of the response information is 1, it indicates that the response information is accurate information. If the confidence of the response information is closer to 1, the response information is more accurate. Conversely, if the confidence of the response information is closer to 0, the response information is less accurate.

[0100] There are many ways to determine the confidence. For example, when the response information is output by the large language model, the accuracy is carried, and the accuracy can be used as the confidence. For another example, the loss value of the large language model is determined as the confidence of the response information. For another example, the average confidence of the response information is obtained based on multiple historical response information.

[0101] Specifically, for the same question information, multiple response information is obtained. The response information with the highest confidence is selected from the multiple response information, and the confidence of the response information is compared with the confidence threshold. Among them, if the confidence is lower than the confidence threshold, it means that the response information is not accurate enough, and it is determined that the response information meets the manual service conditions, and the question information is sent to the manual service channel.

[0102] The target state may be an angry state. It should be noted that the target state includes not only the target emotion type but also the target degree of the emotion type. For example, if the target state is an angry state, the target degree may be moderate or extreme. If the emotion state is an angry state and the degree is not angry, it is considered that the emotion state does not match the target state.

[0103] Among them, the degree can be determined according to the score of the emotion type.

[0104] Specifically, for the angry state as the emotion type, the total score corresponding to the multimodal information is obtained. The larger the total score, the greater the degree. The degree can be divided into no, average, and very from small to large. The larger the total score, the closer the emotional state is to being very angry, and the smaller the total score, the closer it is to being not angry.

[0105] In this embodiment, the first item: determines the confidence of the response information. When the confidence is lower than the confidence threshold, determines that the response information meets the manual service conditions. The second item: when the emotional state matches the target state, determines that the emotional state meets the manual service conditions. The response information of the question information is also determined from the emotional state expressed in the question information, which improves the accuracy of the response information, thereby reducing the number of questions and answers and improving the efficiency of question and answer processing.

[0106] In one embodiment, based on the trend of emotion changes and the emotional state expressed in each round of question information, the trend of emotion changes in the question-answering process is determined, including: determining the emotional state expressed in each round of question information, and determining the trend of emotion changes in the question-answering process based on the emotional scores matched by each emotional state.

[0107] The emotional state expressed by the question information indicates the emotional state of the user during human-computer interaction. The emotional state includes the emotional type and the degree of the emotional type. The emotional type includes anger, happiness, confusion, etc. The degree indicates the different degrees of the emotional type, for example, very angry, generally angry, not angry, etc.

[0108] Among them, each emotional state can be quantified to obtain an emotional score that matches the emotional state. The emotional score is a quantified result of the emotional state.

[0109] Specifically, for the emotional state of the question information, the emotional state can be analyzed to obtain multiple sub-emotional states, and then the emotional score matching the emotional state is obtained according to the emotional weights matched by each sub-emotional state and the emotional probability of each sub-emotional state.

[0110] Exemplarily, the emotion weight may be the weight for different emotion configurations, for example, the weight for the angry state configuration is greater than the weight for the confused state configuration, which is greater than the weight for the happy state configuration. The emotion probability represents the probability of each sub-emotional state in the emotion state. For example, a certain emotion state includes three sub-emotional states, namely, anger 70%, confusion 20%, and happiness 10%.

[0111] Among them, the higher the emotion score of the emotional state match, the angrier the user is, and the lower the emotion score, the less angry the user is.

[0112] Among them, after obtaining the emotion scores that match each emotional state, the emotion change trend during the question-and-answer process can be determined.

[0113] In this embodiment, the emotional state expressed by each round of question information is determined, and based on the emotional score matching each emotional state, the emotional change trend in the question and answer process is determined, which facilitates the subsequent accurate service quality level of the intelligent customer service channel and further improves the efficiency of question and answer processing.

[0114] In one embodiment, Figure 4 The flowchart of the question-answering processing method based on multimodal emotion classification shown in the figure provides a question-answering processing method based on multimodal emotion classification, including:

[0115] S402, in response to a question-and-answer event triggered for a business scenario, obtaining input question information.

[0116] S404, performing semantic analysis on the question information to determine the question intent of the question information.

[0117] S406, determining the sub-information of each mode from the question information.

[0118] Among them, the question information is multimodal information.

[0119] S408, extracting the emotion information of the corresponding mode from each sub-information.

[0120] S410, extracting features from each piece of emotion information respectively, and determining the emotion features of each piece of emotion information.

[0121] S412, integrating various emotion features to obtain emotion fusion features of the question information.

[0122] S414, determining the emotional state represented by the emotional fusion feature as the emotional state expressed by the question information.

[0123] Among them, the question information can be input into the multimodal emotion classification model to output the emotional state of the question information.

[0124] Among them, the construction of the multimodal emotion classification model includes: the preprocessing part of multimodal data and the construction part of the classification model.

[0125] Among them, the preprocessing part of multimodal data includes: cleaning, standardization and normalization of the data of each modality to reduce the impact of noise and outliers. In addition, data of different modalities need to be processed synchronously to ensure that they are comparable at the same time point. After preprocessing the multimodal data, useful features are extracted from each modality. For the speech modality, acoustic features (such as spectrum, energy, rhythm, etc.) can be used, and for the text modality, modal particles can be extracted. In addition, cross-modal interaction features are considered to capture the emotional correlation between different modalities.

[0126] Among them, the construction of the classification model includes: selecting a multimodal fusion model in the PyTorch deep learning framework, such as MTCNN, LSTM+Attention, etc. In the model training stage, prepare a large amount of labeled multimodal data and train the model in a supervised manner so that it can learn to extract emotion-related patterns from multimodal features. After the model training is completed, it is evaluated and optimized. Common evaluation indicators include precision, recall, F1 score, etc. In addition, the performance of the model can be observed through visualization tools, such as confusion matrix, feature importance ranking, etc. If it is found that the model performs poorly in some categories, it can be optimized by adjusting hyperparameters, increasing the number of samples, introducing regularization, etc.

[0127] It can be understood that after obtaining the multimodal emotion classification model, when using the multimodal emotion classification model, the question information is input into the multimodal emotion classification model, the emotional state of the question information is output, and the emotional state is input into the large model to facilitate the large model to automatically access manual services.

[0128] Among them, a customer service agent (big model application intelligent agent) is established in advance, which includes a tool for transferring to manual customer service, a common big model interaction tool, and some search tools. When the agent faces questions with customer emotional information, when it is recognized that the answer of the big model cannot solve the user's problem, the recall content of the knowledge base is also rated very low, and the user's emotions are anxious, angry, and other negative emotions, it will automatically jump to the tool for transferring to manual customer service through the description of the big model analysis tool to complete the transfer to manual service. If the manual service is fully occupied, the big model will continue to try to answer the user's question.

[0129] Among them, Agent technology in the big model usually refers to an intelligent entity that can perceive the environment, make decisions and perform actions. Driven by the big model technology, it aims to enable people to perform and handle professional or complex work tasks in a highly automated manner using natural language as an interactive method. For example, in the big model in the field of financial customer service, Agent technology can be used to realize the function of intelligent automatic access to manual customer service. In this case, the Agent technology in the big model may determine whether it is necessary to access manual customer service by monitoring the user's behavior, conversation content or other relevant information. If it is necessary to access manual customer service, Agent technology can automatically trigger the corresponding process, such as transferring the conversation to a manual customer service staff, or sending a prompt message to the user to inform them that they need to wait for the manual customer service staff to intervene.

[0130] S416, based on the emotional state and question intention, determine prompt information for the question and answer event.

[0131] S418, inputting the prompt information into the large language model, so that the large language model obtains response information of the question information under the guidance of the prompt information.

[0132] S420: Determine the confidence level of the response information.

[0133] S422: When the confidence level is lower than the confidence threshold, determine that the response information meets the manual service condition.

[0134] S424: When the emotional state matches the target state, determine whether the emotional state satisfies the manual service condition.

[0135] S426, when the answer information or emotional state meets the manual service conditions, the question information and the answer information are forwarded to the manual customer service channel.

[0136] S428: When the response information and the emotional state do not meet the manual service conditions, output the response information.

[0137] Wherein, when the confidence level is higher than the confidence threshold, it is determined that the response information does not meet the manual service condition. When the emotional state does not match the target state, it is determined that the emotional state does not meet the manual service condition.

[0138] S430, determine whether to output multiple rounds of information, if so, execute S423, if not, return to S402.

[0139] S432, determining the emotional state expressed by each round of question information, and determining the emotional change trend during the question-answering process based on the emotional scores matched to each of the emotional states.

[0140] S434, determining the service quality level of the intelligent customer service channel based on the trend of emotion changes.

[0141] For example, when a user completes a question-and-answer conversation, the system will automatically send multiple question information and multiple answer information to the big model to summarize them into a summary. The purpose of summarizing the summary is that the conversation content is likely to exceed the input window length of the big model. Therefore, according to some summary strategies, when the conversation content length is greater than the window length, it is summarized into a summary content and sent to the fine-tuned scoring big model, so that the big model can make a judgment on user satisfaction based on the user conversation history, user emotions, and whether the questions asked by the user are truly solved. Finally, the user feedback scoring data is recorded in the operation data and the system is optimized or different operation strategies are specified based on the user satisfaction.

[0142] In this embodiment,

[0143] In response to a question-and-answer event triggered for a business scenario, the input question information is obtained, the question information is semantically analyzed, the question intent of the question information and the emotional state expressed by the question information are determined, and based on the emotional state and the question intent, the prompt information for the question-and-answer event is determined, and the prompt information is input into a large language model so that the large language model obtains the answer information of the question information under the guidance of the prompt information. Since the question intent and the emotional state are combined in the process of determining the answer information, and the large language model is guided to output the answer information through the prompt words, the accuracy of the answer information can be improved, thereby reducing the number of question-and-answer interactions. The question intent for the answer information and the emotional state expressed by the question information are obtained, and when multiple rounds of answer information are output, the emotional change trend in the question-and-answer process is determined based on the emotional state expressed in each round of question information. The emotional change trend reflects the output accuracy of each round of answer information. Based on the emotional change trend, the service quality of the intelligent customer service channel of the large language model is determined, the manual scoring step is omitted, and the efficiency of service quality determination is improved. Therefore, the above method can, on the one hand, reduce the number of Q&A interactions and solve the problem of resources and time consumed in the Q&A process. On the other hand, based on the trend of emotional changes in multiple rounds of Q&A, determine the service quality of the intelligent customer service channel to which the large language model belongs, omit the manual scoring step, and help improve the efficiency of Q&A processing. This method, 1. Improves the quality of intelligent customer service in the financial field. Through the multimodal emotion classification model, it can more accurately understand the needs and emotional state of customers, thereby providing more accurate and humanized services. 2. By using the large model Agent technology, the function of intelligent automatic access to manual customer service is realized, which improves service efficiency and customer satisfaction. 3. Improves the way of collecting feedback information. Through the emotion classification model, the customer's feedback information can be better analyzed, thereby helping financial institutions to better understand customer needs and improve service quality. 4. It supports both voice and text input forms of user questions, and uses multimodal models trained in specific financial services to analyze customer status information, completing customer portraits more clearly. 5. Integrate multimodal emotion classification model technology, language large model technology, agent technology and existing data sets in specific financial fields, and combine them with the specific field of customer service in the financial industry to provide a completely realistic and feasible solution.

[0144] In one embodiment, Figure 5 As shown, a customer service dialogue method is provided, including:

[0145] S502, determine whether it is voice input, if so, execute S504, if not, execute S506.

[0146] S504, converting the speech input based on the multimodal emotion classification model to obtain the emotional state.

[0147] S506, converting the text input based on the multimodal emotion classification model to obtain the emotional state.

[0148] S508, rewriting the question intention based on the emotional state to obtain rewriting information.

[0149] S510, transmitting the rewritten information to the customer service Agent.

[0150] S512, the customer service agent calls the tools according to the user's request, and the big model generates a logical chain according to the description of the tool.

[0151] S514, identifying that the large model answer cannot solve the user's problem, transferring the user to manual customer service, and ending the customer conversation.

[0152] S516: The user is in a normal mood and the question is sent to the big model for question and answer content generation to obtain the answer information.

[0153] S518, determine whether the user has ended the customer conversation, if so, execute S522, if not, execute S502.

[0154] S520: It is recognized that the large-model question and answer cannot appease the user, so the user is transferred to manual customer service and the customer conversation is ended.

[0155] S522, sending the user question text rewritten by the emotional multimodal model and the big model's reply content to the big model to obtain a question-and-answer summary.

[0156] S524, based on another version of the large model that has been fine-tuned for satisfaction determination, a satisfaction determination is performed on the question and answer minutes to obtain a satisfaction determination result.

[0157] S526, determining an operation strategy based on the satisfaction determination result.

[0158] Among them, the operational strategy includes but is not limited to adjusting the conditions for transfer to manual customer service.

[0159] In this embodiment, both voice and text input of user questions are supported, and a multimodal model trained in a specific financial service field is used to analyze the customer's status information, completing a clearer customer portrait. By integrating multimodal emotion classification model technology, language large model technology, agent intelligent body technology and existing data sets in specific financial fields, combined with the specific field of financial industry customer service, a completely realistic and feasible solution is provided.

[0160] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0161] Based on the same inventive concept, the embodiment of the present application also provides a question-answer processing device for implementing the question-answer processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more question-answer processing device embodiments provided below can refer to the limitations on the question-answer processing method above, and will not be repeated here.

[0162] In one embodiment, Figure 6 As shown, a question-answer processing device is provided, including: an acquisition module 602, an analysis module 604, an information determination module 606, a guidance module 608, an information acquisition module 610, a trend determination module 612 and a quality determination module 614, wherein:

[0163] The acquisition module 602 is used to obtain input question information in response to a question-and-answer event triggered for a business scenario;

[0164] The analysis module 604 is used to perform semantic analysis on the question information to determine the question intention of the question information and the emotional state expressed by the question information;

[0165] An information determination module 606, for determining prompt information for the question-and-answer event based on the emotional state and the question intention;

[0166] A guidance module 608, for inputting prompt information into the large language model, so that the large language model outputs answer information of the question information under the guidance of the prompt information;

[0167] The information acquisition module 610 is used to acquire new question information inputted for the answer information, and return to the step of performing semantic analysis on the question information to determine the question intention of the question information and the emotional state expressed by the question information;

[0168] A trend determination module 612 is used to determine the trend of emotional changes in the question-answering process based on the emotional state expressed in each round of question information when multiple rounds of answer information are output;

[0169] The quality determination module 614 is used to determine the service quality of the intelligent customer service channel to which the large language model belongs based on the trend of sentiment changes.

[0170] In one embodiment, the question information is multimodal information; the analysis module 604 is further used to determine the sub-information of each modality from the question information; and determine the emotional state expressed by the question information based on the emotional information contained in each sub-information.

[0171] In one embodiment, the analysis module 604 is also used to extract emotional information of the corresponding modality from each sub-information respectively; perform feature extraction on each emotional information respectively to determine the emotional characteristics of each emotional information; fuse each emotional characteristic to obtain the emotional fusion characteristic of the problem information; and determine the emotional state represented by the emotional fusion characteristic as the emotional state expressed by the problem information.

[0172] In one of the embodiments, the question and answer processing device includes: a forwarding module, which is used to forward the question information and answer information to the manual customer service channel when the answer information or emotional state meets the manual service conditions, and obtain and output the new answer information determined by the manual customer service channel; when the answer information and the emotional state do not meet the manual service conditions, output the answer information.

[0173] In one of the embodiments, the question and answer processing device also includes: a condition determination module, used to determine the confidence of the response information; when the confidence is lower than the confidence threshold, determining that the response information meets the manual service condition; the condition determination module is also used to determine that the emotional state meets the manual service condition when the emotional state matches the target state.

[0174] In one embodiment, the quality determination module 614 is further used to determine the emotional state expressed by each round of question information; based on the emotional scores matched by each emotional state, determine the emotional change trend during the question-answering process.

[0175] Each module in the above-mentioned question-answer processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0176] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 7As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store question information data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a question-and-answer processing method is implemented.

[0177] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0178] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the above method steps are implemented when the processor executes the computer program.

[0179] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above method steps are implemented.

[0180] In one embodiment, a computer program product is provided, comprising a computer program, which implements the above method steps when executed by a processor.

[0181] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0182] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0183] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A question-answering processing method, characterized in that: The method comprises: In response to a question-and-answer event triggered for a business scenario, obtain input question information; Performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information; Determining prompt information for the question-and-answer event based on the emotional state and the question intention; Inputting the prompt information into a large language model, so that the large language model obtains answer information of the question information under the guidance of the prompt information; Acquire new question information input for the response information, and return to the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information; In the case of outputting multiple rounds of answer information, the trend of emotional changes in the question-answering process is determined based on the emotional state expressed in each round of question information; Based on the emotion change trend, the service quality of the intelligent customer service channel to which the large language model belongs is determined.

2. The method according to claim 1, characterized in that The question information is multimodal information; Performing semantic analysis on the question information to determine the emotional state expressed by the question information includes: Determine the sub-information of each modality from the question information; Based on the emotion information respectively included in each of the sub-information, the emotion state expressed by the question information is determined.

3. The method according to claim 2, characterized in that The determining the emotional state expressed by the question information based on the emotional information respectively contained in each of the sub-information includes: Extracting emotional information of corresponding modality from each of the sub-information respectively; Extracting features from each piece of emotion information respectively to determine the emotion features of each piece of emotion information; Fusion of the emotion features to obtain an emotion fusion feature of the question information; The emotional state represented by the emotional fusion feature is determined as the emotional state expressed by the question information.

4. The method according to claim 1, characterized in that: The method further comprises: If the response information or the emotional state meets the manual service condition, forwarding the question information and the response information to the manual customer service channel, and acquiring and outputting new response information determined by the manual customer service channel; In the case that neither the response information nor the emotional state satisfies the manual service condition, the response information is output.

5. The method according to claim 4, characterized in that The method further comprises at least one of the following: Item 1: Determining the confidence level of the response information; In a case where the confidence level is lower than a confidence threshold, determining that the response information meets a manual service condition; Item 2: In the case where the emotional state matches the target state, it is determined that the emotional state satisfies a manual service condition.

6. The method according to any one of claims 1 to 5, characterized in that The step of determining the trend of emotional changes in the question-answering process based on the emotional state expressed by each round of question information includes: Determine the emotional state expressed by each round of question information; Based on the emotion scores that match each of the emotion states, the emotion change trend during the question-and-answer process is determined.

7. A question-answer processing device, characterized in that: The device comprises: An acquisition module, used to obtain input question information in response to a question-and-answer event triggered for a business scenario; An analysis module, used to perform semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information; An information determination module, used to determine prompt information for the question-and-answer event based on the emotional state and the question intention; A guiding module, used for inputting the prompt information into a large language model, so that the large language model outputs answer information of the question information under the guidance of the prompt information; An information acquisition module, used to acquire new question information input for the response information, and return to the step of performing semantic analysis on the question information to determine the question intent of the question information and the emotional state expressed by the question information; A trend determination module is used to determine the trend of emotional changes in the question-answering process based on the emotional state expressed in each round of question information when multiple rounds of answer information are output; The quality determination module is used to determine the service quality of the intelligent customer service channel to which the large language model belongs based on the emotion change trend.

8. The device according to claim 7, characterized in that The question information is multimodal information; the analysis module is further used to determine the sub-information of each modality from the question information; and determine the emotional state expressed by the question information based on the emotional information contained in each sub-information.

9. The device according to claim 8, characterized in that The analysis module is further used to extract the emotion information of the corresponding mode from each of the sub-information respectively; perform feature extraction on each of the emotion information respectively to determine the emotion feature of each of the emotion information; Fusion of the emotion features to obtain an emotion fusion feature of the question information; The emotional state represented by the emotional fusion feature is determined as the emotional state expressed by the question information.

10. The device according to claim 7, characterized in that The device also includes: a forwarding module, which is used to forward the question information and the response information to a manual customer service channel when the response information or the emotional state meets the manual service conditions, and obtain and output new response information determined by the manual customer service channel; when neither the response information nor the emotional state meets the manual service conditions, output the response information.

11. The device according to claim 10, characterized in that The device also includes: a condition determination module, which is used to determine the confidence of the response information; when the confidence is lower than the confidence threshold, it is determined that the response information meets the manual service condition; the condition determination module is also used to determine that the emotional state meets the manual service condition when the emotional state matches the target state.

12. The device according to any one of claims 7 to 11, characterized in that The quality determination module is also used to determine the emotional state expressed by each round of question information; based on the emotional scores matched by each of the emotional states, determine the emotional change trend during the question-answering process.

13. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Intelligent customer service system and intelligent customer service robot

    CN111048075A

  • Voice customer service quality inspection method, customer service quality inspection equipment and storage medium

    CN111049998A

  • Artificial intelligence model calling method and device, computer equipment and storage medium

    CN117009113A

  • Processing method for intelligent customer service dialogue and related product

    CN117312521A

  • Information processing method and device based on large language model, equipment and storage medium

    CN117521675A

Cited By

  • Customer service question and answer method, device and equipment, storage medium and computer program product

    CN114694224A

  • Customer service question answering method and device, equipment, storage medium and computer program product

    CN114694224B

  • Comprehensive evaluation method and device for chart question and answer model and medium

    CN119761336A

  • A Comprehensive Evaluation Method, Device and Medium for a Chart Q&A Model

    CN119761336B

  • Maintenance service evaluation method and device, computer equipment and storage medium

    CN121683807A