Customer question reply method and device and electronic equipment

By evaluating and screening high-quality samples and training neural network models, the problem of low accuracy of intelligent Q&A robot responses to customer questions is solved and more efficient customer question responses are achieved.

CN118760753APending Publication Date: 2024-10-11INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410880775.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing intelligent Q&A robots have low accuracy in responding to customer questions, mainly due to poor sample quality and difficulty in efficiently managing massive samples.

Method used

By obtaining customer question reply samples with sample evaluation values ​​greater than or equal to the threshold, a high-quality sample collection is formed, and the neural network model is used to train and update the sample evaluation values, thereby improving the accuracy of the reply model. Specific steps include: evaluating sample quality based on indicators such as grammatical error rate, information entropy, word segmentation diversity and cosine similarity, screening high-quality samples, training a preset neural network model, and using the evaluation results to respond to customer questions.

Benefits of technology

It improves the accuracy and efficiency of customer question responses and ensures high-quality responses to customer questions by intelligent Q&A robots.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760753A_ABST
    Figure CN118760753A_ABST
Patent Text Reader

Abstract

The invention discloses a customer question reply method and device and electronic equipment. The method comprises the steps that a plurality of customer question reply samples with sample evaluation values larger than or equal to a sample evaluation value threshold value are obtained, a customer question reply sample set is formed by the plurality of customer question reply samples, and the sample evaluation values are used for evaluating the sample quality of the customer question reply samples; training a preset neural network model through the customer question reply sample set to obtain a customer question reply model; and receiving a customer question input by the customer, inputting the customer question into the customer question reply model to obtain target reply information, and sending the target reply information to the client of the customer. Through the method and the device, the problem of relatively low accuracy of the reply information for replying the customer question in the related technology is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and more specifically, to a method, device, and electronic device for answering customer questions. Background Art

[0002] Intelligent systems based on artificial intelligence (AI) can understand user questions and provide relevant responses through natural language processing and machine learning. Among related technologies, intelligent question-answering robots are widely used in online customer service, educational assistance, information retrieval, and other fields, helping users quickly obtain the information they need, improving work efficiency and user experience.

[0003] Intelligent question-answering robots require massive amounts of samples for training. Appropriate, high-quality samples play a crucial role in the training and inference of question-answering models. The quality of these samples can impact the model's predictions and performance. Therefore, selecting and using appropriate samples is crucial for the accuracy and robustness of question-answering models.

[0004] In the related art, intelligent question-answering robots have accumulated a huge amount of sample data, but it is difficult to find high-quality samples from the massive sample set, and it is also impossible to manage them efficiently. In the related art, the method of classifying natural language samples when training intelligent question-answering robots is mainly through training classifiers. For example, naive Bayes classifiers, support vector machines, decision trees, and random forests. However, the classification methods of the above samples usually require a large amount of labeled training data, and the running speed is slow. For cases with small amounts of data, the classification effect may not be good. The sample quality used by the question-answering model in the related art is poor, which results in low accuracy in the question-answering model's responses to customer questions.

[0005] Currently, no effective solution has been proposed to address the problem of low accuracy of response information to customer questions in related technologies. Summary of the Invention

[0006] The main purpose of this application is to provide a method, device and electronic device for answering customer questions, so as to solve the problem of low accuracy of answer information in answering customer questions in related technologies.

[0007] To achieve the above objectives, according to one aspect of the present application, a method for responding to customer questions is provided. The method comprises: obtaining multiple customer question response samples having sample evaluation values ​​greater than or equal to a sample evaluation value threshold, forming a customer question response sample set from the multiple customer question response samples, wherein the sample evaluation values ​​are used to evaluate the sample quality of the customer question response samples; training a preset neural network model using the customer question response sample set to obtain a customer question response model; receiving a customer question input by a customer, inputting the customer question into the customer question response model, obtaining target response information, and sending the target response information to the customer's client.

[0008] Optionally, obtaining multiple customer question response samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, and forming a customer question response sample set composed of multiple customer question response samples includes: obtaining an initial sample set, inputting the initial sample set into a target model, and obtaining the customer problem domain to which the initial sample set belongs, wherein the target model is trained by multiple groups of first training samples, and each group of first training samples includes a historical sample set and a historical customer problem domain; determining an evaluation strategy corresponding to the customer problem domain, evaluating the quality of the initial sample set according to the evaluation strategy, and obtaining a sample evaluation value of each sample in the initial sample set; updating the initial sample set according to the sample evaluation value of each sample in the initial sample set, and obtaining a customer question response sample set.

[0009] Optionally, determining the evaluation strategy corresponding to the customer problem domain includes: determining the evaluation indicators that have a mapping relationship with the customer problem domain from a first mapping relationship table, wherein the first mapping relationship table contains multiple groups of first mapping relationships, each group of first mapping relationships contains a domain and multiple evaluation indicators, and the evaluation indicators include at least one of the following: grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity; determining the evaluation method of the evaluation indicator according to each evaluation indicator, obtaining a group of evaluation methods, and determining the group of evaluation methods as the evaluation strategy.

[0010] Optionally, when the evaluation indicators in the evaluation strategy include grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity, the quality of the initial sample set is evaluated according to the evaluation strategy to obtain the sample evaluation value of each sample in the initial sample set, including: for each sample in the initial sample set, the sample is input into a grammatical error detection model to obtain the grammatical error rate of the sample, wherein the grammatical error detection model is trained by multiple groups of second training samples, and each group of second training samples includes historical samples and historical grammatical error rates; the word segmentations in the sample are extracted by a preset language processing model to obtain multiple types of word segmentations, and the frequency of each word segmentation in the sample and the target number of word segmentation types are determined; the information entropy of the sample is calculated based on the frequency of each word segmentation in the sample, and the target number is determined as the word segmentation diversity evaluation value; the sample is split into a sample input part and a sample output part, the sample input part is vectorized to obtain an input vector, the sample output part is vectorized to obtain an output vector, and the cosine similarity of the input vector and the output vector is calculated; the sample evaluation value of the sample is calculated based on the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity.

[0011] Optionally, calculating the sample evaluation value of the sample based on the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity includes: determining a first weight for the grammatical error rate, a second weight for the information entropy, a third weight for the word segmentation diversity evaluation value and a fourth weight for the cosine similarity; and performing weighted summation of the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity based on the first weight, the second weight, the third weight and the fourth weight to obtain the sample evaluation value.

[0012] Optionally, the initial sample set is updated according to the sample evaluation value of each sample in the initial sample set to obtain the customer question response sample set, including: determining a target sample evaluation value threshold that has a mapping relationship with the customer question field from the second mapping relationship table, wherein the second mapping relationship table contains multiple groups of second mapping relationships, and each group of second mapping relationships contains a field and a sample evaluation value threshold; judging whether the sample evaluation value of each sample is less than or equal to the target sample evaluation value threshold; when the sample evaluation value is less than or equal to the target sample evaluation value threshold, determining the sample as a sample to be eliminated; eliminating all samples to be eliminated from the initial sample set to obtain the customer question response sample set.

[0013] Optionally, the target model is trained in the following manner: obtaining multiple historical customer question response sample sets, and determining the historical customer question domain of each historical customer question response sample set; determining each historical customer question response sample set and the historical customer question domain of the historical customer question response sample set as a group of first training samples to obtain multiple groups of first training samples; training a preset neural network model based on the multiple groups of first training samples to obtain the target model.

[0014] Optionally, after evaluating the quality of the initial sample set according to the evaluation strategy and obtaining the sample evaluation value of each sample in the initial sample set, the method also includes: for each sample in the initial sample set, determining the evaluation value of each evaluation indicator of the sample; for each evaluation indicator, calculating the mean of the evaluation values ​​of the current evaluation indicator of all samples in the initial sample set to obtain the characteristic value of the current evaluation indicator; and displaying the characteristic values ​​of all evaluation indicators of the initial sample set on the front-end page.

[0015] To achieve the above-mentioned objectives, according to another aspect of the present application, a device for responding to customer questions is provided. The device comprises: an acquisition unit, configured to acquire a plurality of customer question response samples having sample evaluation values ​​greater than or equal to a sample evaluation value threshold, the plurality of customer question response samples forming a customer question response sample set, wherein the sample evaluation values ​​are used to evaluate the sample quality of the customer question response samples; a training unit, configured to train a preset neural network model using the customer question response sample set to obtain a customer question response model; and a receiving unit, configured to receive a customer question input by a customer, input the customer question into the customer question response model, obtain target response information, and send the target response information to the customer's client.

[0016] Through this application, the following steps are adopted: obtaining multiple customer question response samples with sample evaluation values ​​greater than or equal to the sample evaluation value threshold, and forming a customer question response sample set from the multiple customer question response samples, wherein the sample evaluation value is used to evaluate the sample quality of the customer question response samples; training a preset neural network model through the customer question response sample set to obtain a customer question response model; receiving a customer question input by the customer, inputting the customer question into the customer question response model, obtaining target response information, and sending the target response information to the customer's client, thereby solving the problem of low accuracy of response information to customer question responses in related technologies. By updating the samples used to train the customer question response model according to the sample evaluation values, and then training a customer question response model based on the customer question response sample set, and having the customer question response model respond to customer questions, the effect of improving the accuracy of response information to customer question responses is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which constitute part of this application, are intended to provide a further understanding of this application. The exemplary embodiments and descriptions of this application are intended to explain this application and do not constitute an improper limitation on this application. In the accompanying drawings:

[0018] Figure 1 This is a flowchart of a method for answering customer questions according to an embodiment of the present application;

[0019] Figure 2is a schematic diagram of a model sample management system provided according to an embodiment of the present application;

[0020] Figure 3 is a flow chart of a model sample evaluation method provided in an embodiment of the present application;

[0021] Figure 4 is a schematic diagram of a device for answering customer questions provided in accordance with an embodiment of the present application;

[0022] Figure 5 is a schematic diagram of an electronic device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0024] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] 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 display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0027] It should be noted that the information collected is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of the relevant regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0028] For ease of description, some nouns or terms involved in the embodiments of the present application are explained below:

[0029] Natural language samples: These are text data obtained from natural language sources, such as books, articles, conversations, and reviews. Natural language samples can be used in a variety of applications, such as machine translation, sentiment analysis, text classification, and information extraction. Training and testing these applications requires a large number of natural language samples for model training and evaluation.

[0030] The present invention will be described below in conjunction with preferred implementation steps. Figure 1 is a flow chart of a method for answering customer questions according to an embodiment of the present application, such as Figure 1 As shown, the method includes the following steps:

[0031] Step S101, obtaining multiple customer question response samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, and forming a customer question response sample set from the multiple customer question response samples, wherein the sample evaluation value is used to evaluate the sample quality of the customer question response samples.

[0032] Specifically, the sample evaluation value can be an evaluation value of the quality of the sample for training the machine learning model, the sample evaluation value threshold can be a value set according to expert experience, and the customer question response sample can be a sample collected from the chat records between the customer service robot of the financial institution and the customer. The customer question response sample can include customer questions and response content, such as bank card processing, social security payment, pension collection, and other issues related to the business of the financial institution.

[0033] In order to improve the accuracy of the output results of the customer question answering model, the samples used to train the customer question answering model are screened in one step, that is, the samples with sample evaluation values ​​greater than or equal to the sample evaluation value threshold are screened to form a customer question answering sample set.

[0034] Step S102: training a preset neural network model using a sample set of customer question responses to obtain a customer question response model.

[0035] Specifically, the preset neural network model can be a feedforward neural network model. By adjusting model parameters of the initial feedforward neural network model, the feedforward neural network model is iteratively trained multiple times based on a sample set of customer question responses until the accuracy of the trained model's output exceeds a preset accuracy threshold. This model is then used as the customer question response model.

[0036] Step S103: receiving a customer question input by the customer, inputting the customer question into a customer question reply model, obtaining target reply information, and sending the target reply information to the customer's client.

[0037] Specifically, after the customer question response model is trained, it can automatically generate target response information based on the customer questions input by the customer. At the same time, the financial institution's customer service robot will send the target response information to the customer's client, such as the financial institution's mobile phone application.

[0038] The method for answering customer questions provided in the embodiment of the present application obtains multiple customer question answering samples with sample evaluation values ​​greater than or equal to a sample evaluation value threshold, and the multiple customer question answering samples form a customer question answering sample set, wherein the sample evaluation value is used to evaluate the sample quality of the customer question answering sample; a preset neural network model is trained through the customer question answering sample set to obtain a customer question answering model; a customer question input by a customer is received, the customer question is input into the customer question answering model, target answer information is obtained, and the target answer information is sent to the client of the customer, thereby solving the problem of low accuracy of answer information for answering customer questions in related technologies. By updating the samples used to train the customer question answering model according to the sample evaluation values, and then training a customer question answering model based on the customer question answering sample set, the customer question is answered by the customer question answering model, thereby achieving the effect of improving the accuracy of answer information for answering customer questions.

[0039] In order to improve the accuracy of the customer question answering model, the samples in the initial sample set are evaluated to screen out the customer question answering sample set. Optionally, in the customer question answering method provided in the embodiment of the present application, multiple customer question answering samples with sample evaluation values ​​greater than or equal to the sample evaluation value threshold are obtained. The customer question answering sample set composed of multiple customer question answering samples includes: obtaining an initial sample set, inputting the initial sample set into the target model, and obtaining the customer problem domain to which the initial sample set belongs, wherein the target model is trained by multiple groups of first training samples, and each group of first training samples includes a historical sample set and a historical customer problem domain; determining an evaluation strategy corresponding to the customer problem domain, evaluating the quality of the initial sample set according to the evaluation strategy, and obtaining a sample evaluation value of each sample in the initial sample set; updating the initial sample set according to the sample evaluation value of each sample in the initial sample set, and obtaining a customer problem answering sample set.

[0040] Specifically, the initial sample set can be sample data uploaded by a financial institution of customer service robots chatting with customers. Since there are many types of customer questions and the customer problem areas involved are also different, when evaluating the quality of the samples, it is necessary to use corresponding evaluation measurements according to the customer problem areas, such as product recommendations, risk prevention and control, etc. The target model can be a large model. For the initial sample set, the large model is used to classify the customer problem areas of the initial sample set according to the predefined customer problem areas, and the customer problem areas to which the initial sample set belongs are obtained. Then, according to the customer problem areas, an appropriate evaluation strategy is selected to perform quality evaluation on the samples in the initial sample set. The sample evaluation value of each sample in the initial sample set is determined, and based on the sample evaluation value, samples with sample evaluation values ​​greater than or equal to the sample evaluation value threshold are screened from the initial sample set, thereby updating the initial sample set and obtaining a customer problem response sample set.

[0041] This embodiment of the application determines the corresponding evaluation strategy based on the customer question domain to which the initial sample set belongs, and evaluates the samples in the initial sample set according to the evaluation strategy, thereby screening the customer question response sample set. Selecting corresponding evaluation strategies for samples in different domains ensures the accuracy of sample evaluation values ​​and improves the generalization ability of sample evaluation.

[0042] For samples from different customer problem areas, an evaluation strategy is composed of evaluation methods of different evaluation indicators. Optionally, in the customer problem reply method provided in the embodiment of the present application, determining the evaluation strategy corresponding to the customer problem area includes: determining the evaluation indicators that have a mapping relationship with the customer problem area from a first mapping relationship table, wherein the first mapping relationship table contains multiple groups of first mapping relationships, each group of first mapping relationships contains a field and multiple evaluation indicators, and the evaluation indicators include at least one of the following: grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity; determining the evaluation method of the evaluation indicator according to each evaluation indicator to obtain a group of evaluation methods, and determining the group of evaluation methods as the evaluation strategy.

[0043] Specifically, the application objects of the sample evaluation method used in the embodiment of the present application are mainly natural language samples. The evaluation indicators for natural language samples may include grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity, wherein the grammatical error rate can be used to evaluate the language quality of the sample through grammatical error detection and text error correction models, for example, the sample set is evaluated and predicted using a conditional random field model to obtain a grammatical error rate indicator that reflects the language quality of the sample set. Information entropy is an indicator used to measure the amount of information in a sample, and is used to evaluate the diversity of sentences. The larger the information entropy, the richer the amount of information in the sample, and the higher the diversity of the sentence. The word segmentation diversity evaluation value can be a value evaluated by N-gram analysis (a text analysis method), which is used to evaluate the frequency and pattern of occurrence of n consecutive words or characters (i.e., word segmentations) in the sample, and the cosine similarity is the cosine similarity of the input vector and the output vector corresponding to the input part and the output part in the sample.

[0044] The first mapping relationship table may be a table consisting of mapping relationships between customer problem domains and evaluation indicators, established based on expert experience. Based on the customer problem domains identified in the initial sample set, evaluation indicators for evaluating the samples are determined from the first mapping relationship table. Each evaluation indicator is assigned a corresponding evaluation method, and the set of evaluation methods corresponding to the evaluation indicators serves as the evaluation strategy.

[0045] The embodiment of the present application improves the accuracy of sample evaluation values ​​when evaluating samples in different fields by determining an evaluation strategy corresponding to the customer's problem field.

[0046] After determining the evaluation strategy, the samples are evaluated according to the evaluation strategy. Optionally, in the method for answering customer questions provided in the embodiment of the present application, when the evaluation indicators in the evaluation strategy include grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity, the quality of the initial sample set is evaluated according to the evaluation strategy to obtain the sample evaluation value of each sample in the initial sample set, which includes: for each sample in the initial sample set, the sample is input into the grammatical error detection model to obtain the grammatical error rate of the sample, wherein the grammatical error detection model is trained by multiple groups of second training samples, and each group of second training samples includes historical samples and historical Grammatical error rate; extracting word segmentations from the sample through a preset language processing model to obtain multiple types of word segmentations, determining the frequency of each word segmentation in the sample, and the target number of word segmentation types; calculating the information entropy of the sample based on the frequency of each word segmentation in the sample, and determining the target number as the word segmentation diversity evaluation value; splitting the sample into a sample input part and a sample output part, vectorizing the sample input part to obtain an input vector, vectorizing the sample output part to obtain an output vector, and calculating the cosine similarity between the input vector and the output vector; calculating the sample evaluation value of the sample based on the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity.

[0047] Specifically, the grammatical error detection model can be a conditional random field model. For example, when the customer question domain is customer marketing, the conditional random field model trained using product recommendation data evaluates and predicts all samples in the initial sample set, obtaining the grammatical error rate for each sample. The preset language processing model can be an N-gram analysis model. The N-gram analysis model extracts segmented words from the sample, and then determines a segmented word diversity evaluation value based on a target number of segmented word types. The information entropy of the sample is calculated based on the frequency of occurrence of each segmented word. The higher the segmented word diversity evaluation value and information entropy, the greater the diversity of the sample. Sample sets in the product recommendation domain generally consist of customer questions, which constitute the input portion, and customer service responses, which constitute the output portion. By vectorizing these two sample parts, the cosine similarity between the input and output vectors can be calculated to assess the correlation between the customer question and the response. The sample evaluation value of the sample is calculated based on the grammatical error rate, information entropy, segmented word diversity evaluation value, and cosine similarity.

[0048] The embodiment of the present application classifies and evaluates sample sets, and can intuitively display the characteristics of a sample set through a multi-dimensional indicator set, facilitate describing the quality of a sample set, and help users quickly screen out high-quality sample sets in the required customer problem areas.

[0049] Optionally, in the method for answering customer questions provided in an embodiment of the present application, calculating the sample evaluation value of the sample based on the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity includes: determining a first weight for the grammatical error rate, a second weight for the information entropy, a third weight for the word segmentation diversity evaluation value and a fourth weight for the cosine similarity; and performing weighted summation of the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity based on the first weight, the second weight, the third weight and the fourth weight to obtain the sample evaluation value.

[0050] Specifically, the first weight, the second weight, the third weight, and the fourth weight can be weight values ​​set based on expert experience. The weight values ​​for different customer problem areas can be different, and the weight values ​​can be adjusted at any time based on sample evaluation requirements. When the evaluation strategy includes multiple evaluation indicators, a weighted summation method can be selected to calculate the sample evaluation value based on the evaluation value of each evaluation indicator. The embodiment of the present application calculates the sample evaluation value by weighted summation, which improves the accuracy and flexibility of calculating the sample evaluation value.

[0051] After determining the evaluation value of the sample, the sample is screened according to the target sample evaluation value threshold corresponding to the customer problem field. Optionally, in the customer question reply method provided in the embodiment of the present application, the initial sample set is updated according to the sample evaluation value of each sample in the initial sample set to obtain the customer question reply sample set, including: determining the target sample evaluation value threshold that has a mapping relationship with the customer problem field from the second mapping relationship table, wherein the second mapping relationship table contains multiple groups of second mapping relationships, and each group of second mapping relationships contains a field and a sample evaluation value threshold; judging whether the sample evaluation value of each sample is less than or equal to the target sample evaluation value threshold; when the sample evaluation value is less than or equal to the target sample evaluation value threshold, determining the sample as a sample to be eliminated; eliminating all samples to be eliminated from the initial sample set to obtain the customer question reply sample set.

[0052] Specifically, the second mapping table can be a table that maps customer problem domains to sample evaluation thresholds based on expert experience. Different sample evaluation thresholds can be set for different customer problem domains. Therefore, a target sample evaluation threshold is determined from the second mapping table based on the customer problem domain to which the initial sample set belongs. Samples in the initial sample set with sample evaluation values ​​less than or equal to the target sample evaluation threshold are then removed to obtain a sample set of customer problem responses.

[0053] In the embodiment of the present application, a preset target sample evaluation value threshold is used to remove samples whose sample evaluation values ​​are less than or equal to the target sample evaluation value threshold from the initial sample set, thereby obtaining a customer question response sample set for training a customer question response model.

[0054] Optionally, in the method for answering customer questions provided in an embodiment of the present application, the target model is trained in the following manner: obtaining multiple historical customer question answering sample sets, and determining the historical customer question domain of each historical customer question answering sample set; determining each historical customer question answering sample set and the historical customer question domain of the historical customer question answering sample set as a group of first training samples to obtain multiple groups of first training samples; training a preset neural network model based on the multiple groups of first training samples to obtain a target model.

[0055] Specifically, the preset neural network model can be a large model. The historical customer problem domain can be extracted from the historical chat records of a financial institution's customer service robot. Multiple sets of historical customer problem response samples obtained from the historical chat records, along with the historical customer problem domains of the historical customer problem response sample sets, are used as first training samples. The large model is trained using the multiple sets of first training samples, thereby obtaining a target model that can automatically identify customer problem domains based on the input sample sets.

[0056] The embodiment of the present application trains a target model to identify the customer problem domain of the initial sample set, and then determines the sample evaluation strategy and target sample evaluation value threshold based on the customer problem domain.

[0057] By displaying the characteristic values ​​of the sample evaluation indicators on the front-end page, it is convenient for users to select the appropriate sample set according to the application scenario. Optionally, in the method for answering customer questions provided in the embodiment of the present application, after evaluating the quality of the initial sample set according to the evaluation strategy and obtaining the sample evaluation value of each sample in the initial sample set, the method further includes: for each sample in the initial sample set, determining the evaluation value of each evaluation indicator of the sample; for each evaluation indicator, calculating the mean of the evaluation values ​​of the current evaluation indicator of all samples in the initial sample set to obtain the characteristic value of the current evaluation indicator; and displaying the characteristic values ​​of all evaluation indicators of the initial sample set on the front-end page.

[0058] Specifically, the mean of the evaluation values ​​for each evaluation metric across all samples in the initial sample set is calculated as the eigenvalue of the metric. This eigenvalue is then displayed on the front-end using a visualization tool. This facilitates further analysis, cleaning, and optimization of samples to train higher-quality customer question response models. Furthermore, for multiple sample sets, comparative analysis based on different metric dimensions is supported, allowing users to select the appropriate sample set based on the actual model application scenario, resulting in more accurate and efficient screening of high-quality samples.

[0059] According to another embodiment of the present application, a model sample management system is also provided. Figure 2 Schematic diagram of the model sample management system provided according to the embodiment of the present application. Figure 2 As shown, the system includes: a natural language sample collection unit 201, a sample feature extraction unit 202, a sample evaluation unit 203, and a result output unit 204.

[0060] Specifically, the natural language sample collection unit 201 is used to upload and store sample data. The sample feature extraction unit 202 extracts sample features from the sample data. The sample evaluation unit 203 inputs the extracted sample features into the large model to classify the samples and select an appropriate algorithm based on the needs of the sample's domain to provide an evaluation opinion. The result output unit 204 outputs the classification and evaluation results to the user interface or other application for user viewing and interaction.

[0061] The model sample management system provided in the embodiments of this application builds a comprehensive sample asset management platform that supports fast and efficient sample management and utilization. It categorizes and manages samples based on the domain of natural language usage and scores and ranks them according to their quality, making it easier for users to find high-quality natural language sample sets within their domain of use and improving model training effectiveness. Using a large model to extract features and divide the domains to which samples belong can effectively capture the semantic information of natural language samples, thereby improving the accuracy of sample evaluation.

[0062] According to another embodiment of the present application, a model sample evaluation method is also provided. Figure 3 This is a flow chart of the model sample evaluation method provided in the embodiment of the present application. Figure 3 As shown, the method includes:

[0063] Step S301: The user uploads an unclassified sample.

[0064] Specifically, users upload sample data for training models, such as product recommendation samples, risk prevention and control samples, etc.

[0065] Step S302: Use the large model to classify the samples.

[0066] Specifically, a large model is used to classify samples according to predefined fields, such as product recommendation, risk prevention and control, and then appropriate algorithms are selected based on the field classification to evaluate the quality of the samples.

[0067] Step S303: Use the classified samples for training.

[0068] Specifically, the sample quality assessment model is trained based on the labeled classified samples.

[0069] Step S304: Use the model to score the samples.

[0070] Specifically, the unclassified samples are evaluated according to the trained sample quality assessment model to obtain the quality assessment value of the samples.

[0071] Step S305: display sample classification and evaluation based on the results.

[0072] Specifically, the evaluation results of the sample quality assessment model are displayed to users on the front-end page through a visualization tool.

[0073] The embodiment of the present application uses a model sample evaluation method to evaluate the quality of model samples, and displays the evaluation results on the front-end page to facilitate users to select high-quality samples based on the application scenario of the model.

[0074] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0075] The present application also provides a device for answering customer questions. It should be noted that the device for answering customer questions in the present application can be used to execute the method for answering customer questions provided in the present application. The following describes the device for answering customer questions provided in the present application.

[0076] Figure 4 Schematic diagram of a device for answering customer questions according to an embodiment of the present application. Figure 4 As shown, the device includes:

[0077] An acquisition unit 401 is configured to acquire a plurality of customer question response samples having a sample evaluation value greater than or equal to a sample evaluation value threshold, wherein the plurality of customer question response samples constitute a customer question response sample set, wherein the sample evaluation value is used to evaluate the sample quality of the customer question response samples;

[0078] A training unit 402 is configured to train a preset neural network model using a sample set of customer question responses to obtain a customer question response model;

[0079] The receiving unit 403 is configured to receive a customer question input by a customer, input the customer question into a customer question reply model, obtain target reply information, and send the target reply information to the customer's client.

[0080] The device for answering customer questions provided in the embodiment of the present application obtains, through an acquisition unit 401, multiple customer question answering samples having sample evaluation values ​​greater than or equal to a sample evaluation value threshold, and a customer question answering sample set is composed of the multiple customer question answering samples, wherein the sample evaluation value is used to evaluate the sample quality of the customer question answering samples; a training unit 402 trains a preset neural network model through the customer question answering sample set to obtain a customer question answering model; a receiving unit 403 receives a customer question input by a customer, inputs the customer question into the customer question answering model, obtains target answer information, and sends the target answer information to the customer's client, thereby solving the problem of low accuracy of answer information for answering customer questions in related technologies, by updating the samples used to train the customer question answering model according to the sample evaluation values, and then training the customer question answering model based on the customer question answering sample set, and answering customer questions by the customer question answering model, thereby achieving the effect of improving the accuracy of answer information for answering customer questions.

[0081] Optionally, in the device for answering customer questions provided in an embodiment of the present application, the acquisition unit 401 includes: a first acquisition module, used to obtain an initial sample set, input the initial sample set into a target model, and obtain the customer problem domain to which the initial sample set belongs, wherein the target model is trained by multiple groups of first training samples, and each group of first training samples includes a historical sample set and a historical customer problem domain; a first determination module, used to determine the evaluation strategy corresponding to the customer problem domain, evaluate the quality of the initial sample set according to the evaluation strategy, and obtain a sample evaluation value of each sample in the initial sample set; an update module, used to update the initial sample set according to the sample evaluation value of each sample in the initial sample set, and obtain a customer problem answering sample set.

[0082] Optionally, in the device for responding to customer questions provided in an embodiment of the present application, the first determination module includes: a first determination sub-module, used to determine, from a first mapping relationship table, an evaluation indicator that has a mapping relationship with the customer problem domain, wherein the first mapping relationship table contains multiple groups of first mapping relationships, each group of first mapping relationships contains a domain and multiple evaluation indicators, and the evaluation indicators include at least one of the following: grammatical error rate, information entropy, word segmentation diversity evaluation value, and cosine similarity; a second determination sub-module, used to determine an evaluation method of the evaluation indicator according to each evaluation indicator, obtain a group of evaluation methods, and determine a group of evaluation methods as an evaluation strategy.

[0083] Optionally, in the device for answering customer questions provided in an embodiment of the present application, the determination module includes: an input submodule, for inputting the sample into a grammatical error detection model for each sample in the initial sample set to obtain a grammatical error rate of the sample, wherein the grammatical error detection model is trained by multiple groups of second training samples, and each group of second training samples includes historical samples and historical grammatical error rates; an extraction submodule, for extracting word segmentations in the sample through a preset language processing model to obtain multiple types of word segmentations, and determining the frequency of each word segmentation in the sample and the target number of word segmentation types; a first calculation submodule, for calculating the information entropy of the sample based on the frequency of each word segmentation in the sample, and determining the target number as a word segmentation diversity evaluation value; a splitting submodule, for splitting the sample into a sample input part and a sample output part, vectorizing the sample input part to obtain an input vector, vectorizing the sample output part to obtain an output vector, and calculating the cosine similarity between the input vector and the output vector; a second calculation submodule, for calculating the sample evaluation value of the sample based on the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity.

[0084] Optionally, in the device for answering customer questions provided in an embodiment of the present application, the second calculation submodule includes: a weight determination module, used to determine a first weight of the grammatical error rate, a second weight of the information entropy, a third weight of the word segmentation diversity evaluation value and a fourth weight of the cosine similarity; a summation module, used to perform weighted summation of the grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity based on the first weight, the second weight, the third weight and the fourth weight to obtain a sample evaluation value.

[0085] Optionally, in the customer question answering device provided in the embodiment of the present application, the update module includes: a third determination submodule, used to determine the target sample evaluation value threshold that has a mapping relationship with the customer problem field from the second mapping relationship table, wherein the second mapping relationship table contains multiple groups of second mapping relationships, and each group of second mapping relationships contains a field and a sample evaluation value threshold; a judgment submodule, used to judge whether the sample evaluation value of each sample is less than or equal to the target sample evaluation value threshold; a fourth determination submodule, used to determine the sample as a sample to be eliminated when the sample evaluation value is less than or equal to the target sample evaluation value threshold; and an elimination submodule, used to eliminate all samples to be eliminated from the initial sample set to obtain a customer question answering sample set.

[0086] Optionally, in the device for answering customer questions provided in an embodiment of the present application, the acquisition unit 401 also includes: a second acquisition module, used to obtain multiple historical customer question answering sample sets, and determine the historical customer question domain of each historical customer question answering sample set; a second determination module, used to determine each historical customer question answering sample set and the historical customer question domain of the historical customer question answering sample set as a group of first training samples, to obtain multiple groups of first training samples; a training module, used to train a preset neural network model based on multiple groups of first training samples, to obtain a target model.

[0087] Optionally, in the device for answering customer questions provided in an embodiment of the present application, the acquisition unit 401 also includes: a third determination module, used to determine the evaluation value of each evaluation indicator of the sample for each sample in the initial sample set; a calculation module, used to calculate the mean of the evaluation values ​​of the current evaluation indicators of all samples in the initial sample set for each evaluation indicator, and obtain the characteristic value of the current evaluation indicator; a display module, used to display the characteristic values ​​of all evaluation indicators of the initial sample set on the front-end page.

[0088] The device for answering customer questions includes a processor and a memory. The above-mentioned acquisition unit 401, training unit 402 and receiving unit 403 are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0089] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be configured, and the accuracy of the response information to customer questions can be improved by adjusting the kernel parameters.

[0090] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0091] An embodiment of the present invention provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, a method for answering customer questions is implemented.

[0092] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes a method for answering customer questions when running.

[0093] Figure 5 Schematic diagram of an electronic device according to an embodiment of the present application. Figure 5As shown, electronic device 501 includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are performed: obtaining multiple customer question response samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, forming a customer question response sample set from the multiple customer question response samples, wherein the sample evaluation value is used to evaluate the sample quality of the customer question response samples; training a preset neural network model using the customer question response sample set to obtain a customer question response model; receiving a customer question input by a customer, inputting the customer question into the customer question response model, obtaining target response information, and sending the target response information to the customer's client. The device herein may be a server, a PC, a PAD, a mobile phone, etc.

[0094] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with the following method steps: obtaining multiple customer question response samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, and forming a customer question response sample set from the multiple customer question response samples, wherein the sample evaluation values ​​are used to evaluate the sample quality of the customer question response samples; training a preset neural network model through the customer question response sample set to obtain a customer question response model; receiving a customer question input by a customer, inputting the customer question into the customer question response model, obtaining target response information, and sending the target response information to the customer's client.

[0095] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0096] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0099] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.

[0100] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0101] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.

[0102] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.

[0103] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] The above are merely embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.

Claims

1. A method for answering customer questions, characterized in that: include: Acquire multiple customer question answering samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, and form a customer question answering sample set from the multiple customer question answering samples, wherein the sample evaluation values ​​are used to evaluate the sample quality of the customer question answering samples; Training a preset neural network model through the customer question answering sample set to obtain a customer question answering model; Receive a customer question input by a customer, input the customer question into the customer question answering model, obtain target answer information, and send the target answer information to the client of the customer.

2. The method according to claim 1, characterized in that Acquiring a plurality of customer question answering samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, wherein a customer question answering sample set formed by the plurality of customer question answering samples comprises: Acquire an initial sample set, input the initial sample set into a target model, and obtain the customer problem domain to which the initial sample set belongs, wherein the target model is trained by multiple groups of first training samples, and each group of first training samples includes a historical sample set and a historical customer problem domain; Determine an evaluation strategy corresponding to the customer problem field, evaluate the quality of the initial sample set according to the evaluation strategy, and obtain a sample evaluation value of each sample in the initial sample set; The initial sample set is updated according to the sample evaluation value of each sample in the initial sample set to obtain a customer question answer sample set.

3. The method according to claim 2, characterized in that The assessment strategies for determining the corresponding customer problem areas include: Determine an evaluation index that has a mapping relationship with the customer problem domain from a first mapping relationship table, wherein the first mapping relationship table includes multiple groups of first mapping relationships, each group of first mapping relationships includes a domain and multiple evaluation indicators, and the evaluation indicators include at least one of the following: grammatical error rate, information entropy, word segmentation diversity evaluation value, and cosine similarity; An evaluation method of the evaluation indicator is determined according to each evaluation indicator to obtain a group of evaluation methods, and the group of evaluation methods is determined as the evaluation strategy.

4. The method according to claim 2, characterized in that: When the evaluation indicators in the evaluation strategy include grammatical error rate, information entropy, word segmentation diversity evaluation value and cosine similarity, the quality of the initial sample set is evaluated according to the evaluation strategy, and the sample evaluation value of each sample in the initial sample set is obtained, including: For each sample in the initial sample set, input the sample into a grammatical error detection model to obtain a grammatical error rate of the sample, wherein the grammatical error detection model is trained by multiple groups of second training samples, and each group of second training samples includes historical samples and historical grammatical error rates; Extracting the segmented words in the sample by using a preset language processing model to obtain multiple types of segmented words, and determining the frequency of each segmented word appearing in the sample and the target number of the type of segmented words; Calculate the information entropy of the sample based on the frequency of occurrence of each segmentation in the sample, and determine the target number as a segmentation diversity evaluation value; Splitting the sample into a sample input part and a sample output part, vectorizing the sample input part to obtain an input vector, vectorizing the sample output part to obtain an output vector, and calculating the cosine similarity between the input vector and the output vector; A sample evaluation value of the sample is calculated based on the grammatical error rate, the information entropy, the word segmentation diversity evaluation value and the cosine similarity.

5. The method according to claim 4, characterized in that Calculating the sample evaluation value of the sample based on the grammatical error rate, the information entropy, the word segmentation diversity evaluation value and the cosine similarity includes: Determine a first weight of the grammatical error rate, a second weight of the information entropy, a third weight of the word segmentation diversity evaluation value, and a fourth weight of the cosine similarity; The grammatical error rate, the information entropy, the word segmentation diversity evaluation value and the cosine similarity are weightedly summed based on the first weight, the second weight, the third weight and the fourth weight to obtain the sample evaluation value.

6. The method according to claim 2, characterized in that The initial sample set is updated according to the sample evaluation value of each sample in the initial sample set to obtain a customer question answer sample set, including: Determine a target sample evaluation value threshold value that has a mapping relationship with the customer problem domain from a second mapping relationship table, wherein the second mapping relationship table includes multiple groups of second mapping relationships, and each group of second mapping relationships includes a domain and a sample evaluation value threshold value; Determine whether the sample evaluation value of each sample is less than or equal to the target sample evaluation value threshold; When the sample evaluation value is less than or equal to the target sample evaluation value threshold, the sample is determined as a sample to be removed; All samples to be eliminated are eliminated from the initial sample set to obtain the customer question response sample set.

7. The method according to claim 2, characterized in that: The target model is trained in the following way: Obtain multiple historical customer question answer sample sets, and determine the historical customer question field of each historical customer question answer sample set; Determine each historical customer question answer sample set and the historical customer question domain of the historical customer question answer sample set as a set of first training samples to obtain multiple sets of first training samples; A preset neural network model is trained based on the multiple groups of first training samples to obtain a target model.

8. The method according to claim 2, characterized in that: After evaluating the quality of the initial sample set according to the evaluation strategy to obtain a sample evaluation value of each sample in the initial sample set, the method further includes: For each sample in the initial sample set, determining an evaluation value of each evaluation indicator of the sample; For each evaluation index, calculate the mean of the evaluation values ​​of the current evaluation index of all samples in the initial sample set to obtain the characteristic value of the current evaluation index; The characteristic values ​​of all evaluation indicators of the initial sample set are displayed on the front-end page.

9. A device for answering customer questions, characterized in that: include: An acquisition unit, used to acquire a plurality of customer question answering samples whose sample evaluation values ​​are greater than or equal to a sample evaluation value threshold, and the plurality of customer question answering samples form a customer question answering sample set, wherein the sample evaluation values ​​are used to evaluate the sample quality of the customer question answering samples; A training unit, used for training a preset neural network model through the customer question answering sample set to obtain a customer question answering model; The receiving unit is used to receive a customer question input by a customer, input the customer question into the customer question answering model, obtain target answering information, and send the target answering information to the client of the customer.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method for answering customer questions as described in any one of claims 1 to 8.