A management method and device for customer service robot knowledge base
By dynamically obtaining user questions and response results, and using clustering algorithms and message queue technology, automatic diagnosis, analysis and optimization of the customer service robot's knowledge base are realized, which solves the problem of low efficiency of knowledge base optimization in the existing technology and improves the automaticity of the knowledge base. Augmentation and user experience.
Patent Information
- Application Number
- CN202010580233.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-06-23
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-06-23
AI Technical Summary
The optimization of the existing customer service robot knowledge base requires manual configuration, which is cumbersome and inefficient, and cannot respond to user problems in a timely manner.
By dynamically acquiring user questions and response results received by the customer service robot, clustering algorithms and message queue technology are used to realize automatic diagnosis, analysis and optimization of the knowledge base, generate new knowledge entries, and update answers in the knowledge base.
It improves the diagnosis and optimization efficiency of the knowledge base, automatically expands the knowledge base, and improves the intelligence level and user experience of the customer service robot.
Smart Images

Figure CN113779050B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a management method and device for a customer service robot knowledge base. Background Art
[0002] A knowledge base refers to a knowledge-based and intelligent system or expert system. As an important component of a customer service robot, the knowledge base is the core of the customer service robot's ability to provide consulting services to users. The richer the knowledge base, the smarter the customer service robot will appear when communicating with users.
[0003] However, due to the limitations of the knowledge base built in the early stage, the customer service robot cannot answer any user questions based on the knowledge base built in the early stage, so it is necessary to continuously expand and improve the knowledge base of the customer service robot. At present, the optimization of the knowledge base is completed manually based on the human judgment of the knowledge base problems. The operation is cumbersome and consumes a lot of manpower and material resources, and the optimization of the knowledge base is not timely. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a method and device for managing a customer service robot knowledge base, which can realize automatic diagnosis and analysis of the knowledge base by dynamically obtaining user questions received by the customer service robot and the response results provided, and realize automatic optimization of the knowledge base based on the diagnosis and analysis results, thereby improving the diagnosis and optimization efficiency of the knowledge base.
[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a method for managing a customer service robot knowledge base includes:
[0006] Obtaining one or more user questions received by the customer service robot and answer results provided by the customer service robot for the user questions based on a knowledge base, wherein the knowledge base includes one or more knowledge items, the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, and the answer results indicate whether the user question matches the knowledge item, and the reason why the answer provided by the customer service robot does not match when the user question matches the knowledge item;
[0007] Performing diagnosis and analysis on the user question according to the answer result and the knowledge items hit by the user question in the knowledge base;
[0008] The knowledge base is optimized according to the results of the diagnostic analysis.
[0009] Optionally, the user question and the reply result pushed to the message queue by the customer service robot are obtained through the message queue.
[0010] Optionally, before the customer service robot pushes the user question and the reply result to the message queue, the customer service robot obtains the user question and the reply result through dynamic embedding technology.
[0011] Optionally, the diagnosing and analyzing the user question according to the answer result and the knowledge items matched by the user question in the knowledge base includes:
[0012] When the answer result is that the user question does not match any of the knowledge items, clustering the user question using a clustering algorithm to generate new knowledge items;
[0013] When the answer result is that the user question matches the knowledge item, the reasons for non-matching of the answers corresponding to the user questions in the matched knowledge items and the corresponding number of user questions are counted.
[0014] Optionally, it also includes:
[0015] Before clustering the user questions using a clustering algorithm to generate new knowledge items, determining whether the number of user questions that are not matched to the knowledge items is greater than a threshold number of user questions;
[0016] When the number of user questions is greater than a threshold number of user questions, a clustering algorithm is used to cluster the user questions to generate new knowledge items.
[0017] Optionally, the optimizing the knowledge base according to the result of the diagnostic analysis includes:
[0018] In the case where the reply result is that the user question matches the knowledge item, the answer indicated by the knowledge item in the knowledge base is updated according to the reason for the non-matching of the answer to the user question and the corresponding number of user questions.
[0019] Optionally, the reasons for the mismatch of the answer include one or more of the following: mismatch of validity period, mismatch of product identification, mismatch of product classification, and user dissatisfaction.
[0020] Optionally, updating the answer indicated by the knowledge item in the knowledge base according to the unmatched reason of the answer to the user question and the corresponding number of user questions includes:
[0021] In the case where the reason for the non-matching of the answer is that the commodity identification does not match, updating the commodity identification corresponding to the answer indicated by the knowledge entry in the knowledge base according to the frequency of occurrence of the commodity identification in the user question;
[0022] In the case where the reason for the non-matching of the answer is the mismatch of the commodity classification, the commodity classification corresponding to the answer indicated by the knowledge item in the knowledge base is updated according to the occurrence frequency of the commodity classification in the user question.
[0023] Optionally, it also includes:
[0024] Determine whether the knowledge base has any knowledge entry that does not indicate an answer or does not indicate a fallback answer, so that if there is any knowledge entry that does not indicate an answer or does not indicate a fallback answer in the knowledge base, add the answer or fallback answer corresponding to the knowledge entry to the knowledge base.
[0025] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, a management device for a customer service robot knowledge base is provided, comprising: an information acquisition module, a diagnosis and analysis module, and a knowledge base optimization module; wherein:
[0026] The information acquisition module is used to acquire one or more user questions received by the customer service robot and the answer results provided by the customer service robot for the user questions based on the knowledge base, wherein the knowledge base includes one or more knowledge items, the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, and the answer results indicate whether the user question matches the knowledge item, and the reason why the answer provided by the customer service robot does not match when the user question matches the knowledge item;
[0027] The diagnostic analysis module is used to perform diagnostic analysis on the user question according to the answer result and the knowledge item hit by the user question in the knowledge base;
[0028] The knowledge base optimization module is used to optimize the knowledge base according to the result of the diagnostic analysis.
[0029] Optionally, the information acquisition module is used to obtain the user questions and the reply results pushed to the message queue by the customer service robot through the message queue.
[0030] Optionally, before the customer service robot pushes the user question and the reply result to the message queue, the customer service robot obtains the user question and the reply result through dynamic embedding technology.
[0031] Optionally, the performing diagnostic analysis on the user question according to the type of the answer result and the knowledge item hit by the user question in the knowledge base includes:
[0032] When the answer result is that the user question does not match any of the knowledge items, clustering the user question using a clustering algorithm to generate new knowledge items;
[0033] When the answer result is that the user question matches the knowledge item, the reasons for non-matching of the answer corresponding to the user question in each matched knowledge item and the corresponding number of user questions are counted.
[0034] Optionally, the diagnostic analysis module is further used to:
[0035] Before clustering the user questions using a clustering algorithm to generate new knowledge items, determining whether the number of user questions that are not matched to the knowledge items is greater than a threshold number of user questions;
[0036] When the number of user questions is greater than a threshold number of user questions, a clustering algorithm is used to cluster the user questions to generate new knowledge items.
[0037] Optionally, the optimizing the knowledge base according to the result of the diagnostic analysis includes:
[0038] In the case where the reply result is that the user question matches the knowledge item, the answer indicated by the knowledge item in the knowledge base is updated according to the reason for the non-matching of the answer to the user question and the corresponding number of user questions.
[0039] Optionally, the reasons for the mismatch of the answer include one or more of the following: mismatch of validity period, mismatch of product identification, mismatch of product classification, and user dissatisfaction.
[0040] Optionally, updating the answer indicated by the knowledge item in the knowledge base according to the unmatched reason of the answer to the user question and the corresponding number of user questions includes:
[0041] In the case where the reason for the non-matching of the answer is that the commodity identification does not match, updating the commodity identification corresponding to the answer indicated by the knowledge entry in the knowledge base according to the frequency of occurrence of the commodity identification in the user question;
[0042] In the case that the reason for the non-matching of the answer is that the commodity classification does not match, the commodity classification corresponding to the answer indicated by the knowledge item in the knowledge base is updated according to the occurrence frequency of the commodity classification in the user question.
[0043] Optionally, the diagnostic analysis module is further used to:
[0044] Determine whether the knowledge base has any knowledge entry that does not indicate an answer or does not indicate a fallback answer, so that if there is any knowledge entry that does not indicate an answer or does not indicate a fallback answer in the knowledge base, add the answer or fallback answer corresponding to the knowledge entry to the knowledge base.
[0045] To achieve the above object, according to another aspect of an embodiment of the present invention, there is provided an electronic device for managing a customer service robot knowledge base, comprising:
[0046] one or more processors;
[0047] a storage device for storing one or more programs,
[0048] When the one or more programs are executed by the one or more processors, the one or more processors implement any of the methods described in the customer service robot knowledge base management method.
[0049] To achieve the above-mentioned purpose, according to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, any method described in the customer service robot knowledge base management method is implemented.
[0050] The embodiments of the above invention have the following advantages or beneficial effects: by dynamically acquiring the user questions received by the customer service robot and the answer results provided by the customer service robot based on the knowledge base, automatic diagnosis and analysis of the knowledge base is realized; based on the diagnosis and analysis results, new knowledge items are generated by clustering algorithms to expand the knowledge base; at the same time, when the reason for the mismatch of the answer is the mismatch of goods or mismatch of goods classification, the update of the goods identification or goods classification corresponding to the user question in the knowledge base is realized by counting the goods identification or goods classification appearing in the user question. In addition, by real-time monitoring whether the knowledge items in the knowledge base are configured with answers or backup answers, the management and optimization of the knowledge base is further realized, and the diagnosis and optimization efficiency of the knowledge base is improved.
[0051] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0053] Figure 1 is a schematic diagram of the main process of the method for managing a customer service robot knowledge base according to an embodiment of the present invention;
[0054] Figure 2 is a schematic diagram of the main process of another customer service robot knowledge base management method according to an embodiment of the present invention;
[0055] Figure 3 is a schematic diagram of the main process of a method for optimizing a customer service robot knowledge base according to an embodiment of the present invention;
[0056] Figure 4 is a schematic diagram of main modules of a management device for a customer service robot knowledge base according to an embodiment of the present invention;
[0057] Figure 5 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0058] Figure 6 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0059] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0060] Figure 1 is a schematic diagram of the main process of the management method of the customer service robot knowledge base according to an embodiment of the present invention, such as Figure 1 As shown, the management method of the customer service robot knowledge base may specifically include the following steps:
[0061] Step S101, obtaining one or more user questions received by the customer service robot and the answer results provided by the customer service robot for the user questions based on the knowledge base, wherein the knowledge base includes one or more knowledge items, and the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, and the answer results indicate whether the user question matches the knowledge item, and the reason for the non-matching of the answer provided by the customer service robot when the user question matches the knowledge item.
[0062] User questions refer to any questions that users may ask when using customer service robots for consultation, such as "Is this made of 304 stainless steel?", "Hello! Is the material 304 stainless steel?", "Is this stainless steel?", "Can this be used for hot pot?", "What's the weather like today?", etc. Knowledge items refer to any information about people, concepts, categories, products, etc. that can be expressed in any form such as words, terms, phrases, sentences, symbols, etc. It is understandable that due to the limited number of knowledge items in the knowledge base, when the customer service robot searches the knowledge base based on the received user questions, it may match the knowledge items based on the similarity of the user questions, or it may not match the knowledge items. In the case of matching the knowledge items, the answers corresponding to the user questions provided by the knowledge base may not necessarily be the answers that can solve the user problems or the answers that the users will adopt, that is, there is a situation where the knowledge items match but the answers do not match.
[0063] As shown in Table 1 below, the knowledge base contains multiple knowledge items such as weather, material, function, etc., and each knowledge item includes one or more similar user questions, and the user questions are matched with the knowledge items, that is, all user questions related to the knowledge items can be searched in the knowledge base according to the knowledge items. In order for the customer service robot to match the knowledge items in the knowledge base and respond to the user questions indicated under the knowledge items when receiving user questions, it is necessary to pre-set the corresponding relationship between user questions and answers under the knowledge items in the knowledge base. However, it is understandable that since the knowledge items included in the knowledge base are huge and the knowledge items are still being updated and expanded, there may be situations where there are no corresponding answers or fallback answers for user questions under the knowledge items; and the answers corresponding to multiple user questions under the same knowledge item may be the same or different. Therefore, there may be a one-to-one relationship, a many-to-one relationship, or a one-to-many relationship between user questions and answers under the knowledge items.
[0064] Table 1 Knowledge base example
[0065]
[0066]
[0067] On this basis, in order to improve the quality of answers in the knowledge base, the customer service robot can provide one or more restriction conditions related to the answer to the received user question, such as product identification (such as product name, product number, etc.), product classification, effective time, etc., so that the user can judge whether to adopt the answer according to the restriction conditions when browsing the answer. On this basis, if the user does not adopt the answer provided by the customer service robot, the answer in the knowledge base can be updated according to the restriction conditions used by the user when filtering the answer, that is, the reason for the mismatch of the answer. This embodiment only takes the example that the reason for the mismatch of the provided answer includes one or more of the following: mismatch of effective time, mismatch of product identification, mismatch of product classification, and user dissatisfaction.
[0068] As shown in Table 2, examples of the obtained user questions and answer results are as follows, where the user question "Is this stainless steel?" does not match the knowledge entry in the knowledge base; the user question "Is it raining today?" matches the knowledge entry "weather", but the user is not satisfied with the answer provided; the user question "What is the power?" matches the knowledge entry "power"; but the corresponding answer has expired and the user did not adopt it; the user question "What function does this have?" matches the knowledge entry "function", but the product identification related to the answer provided does not match, and it is not the answer the user wants to obtain, so the user did not adopt it; and the user question "What material is this?" matches the knowledge entry "material", but the product classification of the corresponding answer does not match, so the user did not adopt it. It can be understood that different user questions may match the same knowledge entry, and the reasons for the non-matching of the corresponding answers may be the same or different. Therefore, before performing diagnostic analysis on the obtained user questions and answer results, when the user questions match the knowledge entries, it is necessary to count the reasons for the non-matching of different user questions and answers according to the knowledge entries.
[0069] Table 2 Examples of user questions and answer results
[0070]
[0071]
[0072] In an optional implementation, the user question and the reply result pushed to the message queue by the customer service robot are obtained through the message queue.
[0073] Message queue refers to a message queue implemented using message middleware such as Redis or Kafka, RabbitMQ, RocketMQ, etc. In this way, by pushing dynamically acquired user questions, answer results, and knowledge items to the message queue, the decoupling between the dynamic acquisition of user questions and the analysis and diagnosis of user questions is achieved. Based on the acquisition of user questions, answer results, and knowledge items, personalized diagnosis and analysis of user questions, answer results, and knowledge items can be achieved according to actual needs such as the application scenarios of customer service robots.
[0074] It is understandable that before the customer service robot pushes the user questions and the answer results to the message queue, the customer service robot obtains the user questions and the answer results through dynamic tracking technology. In other words, the customer service robot is provided with an interface through the dynamic tracking SDK, so that the customer service robot can call it to record the user questions received by the customer service robot and the answer results provided by the customer service robot in real time.
[0075] Step S102: diagnose and analyze the user question according to the answer result and the knowledge items matched by the user question in the knowledge base.
[0076] On the one hand, when the answer result is that the user question does not match any of the knowledge items, a clustering algorithm is used to cluster the user question to generate new knowledge items. Specifically, referring to the user question clustering results provided in Table 3 below, two clusters containing similar user questions are obtained after clustering, and the corresponding new knowledge items are "stainless steel" and "processor". In this way, "stainless steel" and "processor" can be added to the knowledge base as new knowledge items and one or more answers can be configured for the corresponding user questions in the knowledge base, so that when the subsequent customer service robot receives user questions related to "stainless steel" or "processor", it can match the knowledge items "stainless steel" and "processor" in the knowledge base and provide corresponding answers to improve the user experience of the customer service robot. Among them, the clustering algorithms that can be used include but are not limited to any of the following: K-means algorithm, hierarchical clustering algorithm, mean shift clustering algorithm.
[0077] See Table 3 for an example of user question clustering results.
[0078]
[0079] On this basis, in order to ensure that the number of user questions participating in clustering is sufficient to improve the clustering effect, before using the clustering algorithm to cluster the user questions to generate new knowledge items, it is determined whether the number of user questions that are not matched to the knowledge items is greater than the threshold number of user questions; when the number of user questions is greater than the threshold number of user questions, the clustering algorithm is used to cluster the user questions to generate new knowledge items.
[0080] Among them, the threshold number of user questions is pre-set according to actual needs such as clustering algorithms. For example, the threshold number of user questions is 1000. After obtaining the user questions and the corresponding reply results of the user questions from the message queue, if the reply result is that no knowledge item is matched, a database such as MySQL can be used to store the user questions that are not matched to the knowledge item, and determine whether the number of user questions that are not matched to the knowledge item currently stored is greater than 1000. If it is not greater than 1000, continue to obtain user questions that are not matched to the knowledge item from the message queue. If it is greater than 1000, any clustering algorithm such as K-means algorithm, hierarchical clustering algorithm, mean shift clustering algorithm, etc. can be used to cluster more than 1000 user questions that are not matched to the knowledge item to generate one or more clusters, each cluster including one or more user questions with high similarity, and the clusters can be screened by the minimum number of user questions contained in the cluster and the minimum value of user question similarity, and new knowledge items are generated based on the screened clusters, and the new knowledge items are matched with the user questions in the cluster. On this basis, new knowledge items and one or more user questions in the cluster corresponding to the knowledge items can be added to the knowledge base, and one or more answers can be set for the user questions in the knowledge base to enrich and expand the knowledge base.
[0081] More specifically, in the process of generating new knowledge items using clustering algorithms, user questions can be processed through TF-IDF (Term Frequency–Inverse Document Frequency) technology, which is a commonly used weighted technology used in information retrieval and text mining, so as to determine the similarity of user questions by converting user questions into vectors and calculating the similarity between the vectors corresponding to the user questions, thereby realizing user question clustering.
[0082] On the other hand, in the case where the reply result is that the user question matches the knowledge item, the reasons for the unmatched answers corresponding to the user questions in the matched knowledge items and the number of corresponding user questions are counted. Specifically, the reasons for the unmatched answers and the number of user questions corresponding to each matched knowledge item counted according to the knowledge items are shown in Table 4 below, where there are multiple user questions matched to the knowledge item "material", and the number of user questions whose corresponding answers are filtered out due to mismatch in product classification is at most 50. It can be understood that the more user questions there are, the lower the possibility that the corresponding answers will be adopted, that is, the more the answer needs to be updated. Therefore, based on the reasons for the unmatched answers and the number of user questions corresponding to each knowledge item after statistics, the answers that need to be updated in the knowledge base or the product classification, product identification, validity period and other information related to the answers can be determined.
[0083] Table 4 Example of statistical results based on knowledge items
[0084]
[0085]
[0086] Step S103: optimizing the knowledge base according to the result of the diagnostic analysis.
[0087] On the one hand, based on generating new knowledge items by clustering user questions that are not matched with knowledge items, the new knowledge items can be added to the knowledge base and one or more answers can be configured for the corresponding user questions in the knowledge base to enrich and expand the knowledge base.
[0088] On the other hand, when the answer result is that the user question matches the knowledge item, the answer indicated by the knowledge item in the knowledge base is updated according to the reason for the mismatch of the answer to the user question and the number of corresponding user questions. If Table 4 is still used as an example, the answer corresponding to the user question indicated by the knowledge item "weather" can be updated or enriched in the knowledge base; at the same time, the answer corresponding to the user question indicated by the knowledge item "power" can also be updated according to the current time period; and for the knowledge items "function" and "material", the information such as the product identification and product classification related to the answer needs to be updated respectively.
[0089] Furthermore, in order to make the updated product identification and product classification more in line with user expectations and to improve user satisfaction with the answer, when the reason for the non-matching of the answer is the mismatch of the product identification, the product identification corresponding to the answer indicated by the knowledge item in the knowledge base is updated according to the frequency of occurrence of the product identification in the user's question; when the reason for the non-matching of the answer is the mismatch of the product classification, the product classification corresponding to the answer indicated by the knowledge item in the knowledge base is updated according to the frequency of occurrence of the product classification in the user's question. Specifically, taking the product identifications that appear in the user's question as AAA, BBB, and CCC, and the corresponding frequencies of occurrence as 10, 5, and 1, respectively, the product identification AAA with the highest frequency of occurrence can be preferentially replaced with the product identification related to the answer in the knowledge base; and if the product classifications that appear in the user's question as 111, 222, and 333, respectively, and the corresponding frequencies of occurrence as 3, 2, and 1, respectively, the product classification 111 with the highest frequency of occurrence can be preferentially replaced with the product classification related to the answer in the knowledge base.
[0090] In addition, as the knowledge base is continuously optimized and updated, in order to avoid the existence of knowledge entries without configured answers or fallback answers in the knowledge base as much as possible, during the entire knowledge base management process, the knowledge base can be monitored in real time to see whether there are knowledge entries that do not indicate answers or do not indicate fallback answers, so that when there are knowledge entries that do not indicate answers or do not indicate fallback answers in the knowledge base, the answers or fallback answers corresponding to the knowledge entries can be added to the knowledge base.
[0091] Based on the above embodiments, the automatic diagnosis and analysis of the knowledge base is realized by dynamically acquiring the user questions received by the customer service robot and the answer results provided by the customer service robot based on the knowledge base; based on the diagnosis and analysis results, new knowledge items are generated through the clustering algorithm to expand the knowledge base; at the same time, when the reason for the mismatch of the answer is the mismatch of the product or the mismatch of the product classification, the product identification or product classification corresponding to the user question in the knowledge base is updated by counting the product identification or product classification appearing in the user question. In addition, by real-time monitoring whether the knowledge items in the knowledge base are configured with answers or backup answers, the management and optimization of the knowledge base is further realized, and the diagnosis and optimization efficiency of the knowledge base is improved.
[0092] See also Figure 2 Based on the above embodiment, the embodiment of the present invention provides another method for managing a customer service robot knowledge base, which may specifically include the following steps:
[0093] Step S201, obtaining one or more user questions received by the customer service robot and the answer results provided by the customer service robot for the user questions based on the knowledge base. Specifically, the user questions and answer results pushed by the customer service robot can be received through a message queue.
[0094] Step S202, determine whether the user question matches a knowledge item; if the answer result is that the user question matches a knowledge item, continue to step S206, if the answer result is that the user question does not match a knowledge item, continue to step S203.
[0095] Step S203, when the reply result is that the user question does not match the knowledge entry, determine whether the number of user questions that do not match the knowledge entry is greater than the threshold number of user questions; if it is, continue to execute the following step S204; if it is not, continue to execute the following step S201, that is, continue to obtain user questions, reply results and knowledge entries from the message queue.
[0096] Step S204: clustering the user questions using a clustering algorithm to generate new knowledge items.
[0097] Step S205: Add the new knowledge item to the knowledge base. At the same time, one or more answers should be configured for the user question indicated by the new knowledge item.
[0098] Step S206, counting the reasons for non-matching of the answers to the user questions in the matched knowledge items and the number of corresponding user questions.
[0099] Step S207: updating the answers indicated by the knowledge items in the knowledge base according to the reasons for the mismatch of the answers to the user questions and the corresponding number of user questions.
[0100] See also Figure 3 Based on the above embodiment, the present invention provides a method for optimizing the knowledge base of a customer service robot to explain the implementation of the above step S207 in detail. Specifically, the following steps may be included:
[0101] Step S2071, determine the reason for the answer not matching; if the reason for the answer not matching is the mismatch of product classification, continue to execute step S2075; if the reason for the answer not matching is the mismatch of product identification, continue to execute step S2073; if the reason for the answer not matching is other reasons such as user dissatisfaction, mismatch of effective time, etc., continue to execute step S2072.
[0102] Step S2072, when the reason for the mismatch of the answer is other reasons such as user dissatisfaction or mismatch of effective time, update the answer indicated by the knowledge item in the knowledge base.
[0103] Step S2073: Count the product identifiers in the user's questions and the frequency of occurrence of the product identifiers.
[0104] Step S2074: updating the commodity identification corresponding to the answer indicated by the knowledge item in the knowledge base according to the occurrence frequency of the commodity identification.
[0105] Step S2075: Count the product categories in the user's question and the frequency of occurrence of the product categories.
[0106] Step S2076: updating the commodity classification corresponding to the answer indicated by the knowledge item in the knowledge base according to the occurrence frequency of the commodity classification.
[0107] See also Figure 4 Based on the above embodiments, the present invention provides a management device 400 for a customer service robot knowledge base, including: an information acquisition module 401, a diagnosis and analysis module 402, and a knowledge base optimization module 403; wherein,
[0108] The information acquisition module 401 is used to acquire one or more user questions received by the customer service robot and the answer results provided by the customer service robot for the user questions based on the knowledge base, wherein the knowledge base includes one or more knowledge items, the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, and the answer results indicate whether the user question matches the knowledge items, and the reason why the answer provided by the customer service robot does not match when the user question matches the knowledge items;
[0109] The diagnosis and analysis module 402 is used to perform diagnosis and analysis on the user question according to the answer result and the knowledge items matched by the user question in the knowledge base;
[0110] The knowledge base optimization module 403 is used to optimize the knowledge base according to the result of the diagnostic analysis.
[0111] In an optional implementation, the information acquisition module 401 is used to acquire the user question and the reply result pushed to the message queue by the customer service robot through the message queue.
[0112] On this basis, before the customer service robot pushes the user question and the reply result to the message queue, the customer service robot obtains the user question and the reply result through dynamic embedding technology.
[0113] In an optional implementation, the diagnosing and analyzing the user question according to the type of the answer result and the knowledge item hit by the user question in the knowledge base includes:
[0114] When the answer result is that the user question does not match any of the knowledge items, clustering the user question using a clustering algorithm to generate new knowledge items;
[0115] When the answer result is that the user question matches the knowledge item, the reasons for non-matching of the answer corresponding to the user question in each matched knowledge item and the corresponding number of user questions are counted.
[0116] In an optional implementation, the diagnostic analysis module 403 is further configured to:
[0117] Before clustering the user questions using a clustering algorithm to generate new knowledge items, determining whether the number of user questions that are not matched to the knowledge items is greater than a threshold number of user questions;
[0118] When the number of user questions is greater than a threshold number of user questions, a clustering algorithm is used to cluster the user questions to generate new knowledge items.
[0119] In an optional implementation, the optimizing the knowledge base according to the result of the diagnostic analysis includes:
[0120] In the case where the reply result is that the user question matches the knowledge item, the answer indicated by the knowledge item in the knowledge base is updated according to the reason for the non-matching of the answer to the user question and the corresponding number of user questions.
[0121] In an optional implementation, the reasons for the mismatch of the answer include one or more of the following: mismatch in validity period, mismatch in product identification, mismatch in product classification, and user dissatisfaction.
[0122] In an optional implementation manner, updating the answer indicated by the knowledge item in the knowledge base according to the unmatched reason of the answer to the user question and the corresponding number of user questions includes:
[0123] In the case where the reason for the non-matching of the answer is that the commodity identification does not match, updating the commodity identification corresponding to the answer indicated by the knowledge item in the knowledge base according to the frequency of occurrence of the commodity identification in the user question;
[0124] In the case that the reason for the non-matching of the answer is that the commodity classification does not match, the commodity classification corresponding to the answer indicated by the knowledge item in the knowledge base is updated according to the occurrence frequency of the commodity classification in the user question.
[0125] In an optional implementation, the diagnostic analysis module 403 is further configured to:
[0126] Determine whether the knowledge base has any knowledge entry that does not indicate an answer or does not indicate a fallback answer, so that if there is any knowledge entry that does not indicate an answer or does not indicate a fallback answer in the knowledge base, add the answer or fallback answer corresponding to the knowledge entry to the knowledge base.
[0127] Figure 5 An exemplary system architecture 500 is shown to which the method for managing a customer service robot knowledge base or the device for managing a customer service robot knowledge base according to an embodiment of the present invention can be applied.
[0128] like Figure 5 As shown, system architecture 500 may include terminal devices 501, 502, 503, a network 504 and a server 505. Network 504 is used to provide a medium for communication links between terminal devices 501, 502, 503 and server 505. Network 504 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0129] Users can use terminal devices 501, 502, 503 to interact with server 505 through network 504 to receive or send messages, etc.
[0130] Terminal devices 501, 502, 503 may be various electronic devices with display screens and supporting user consultation questions, including but not limited to intelligent customer service robots, etc.
[0131] The server 505 may be a server that provides various services, such as a server that analyzes user questions and answers sent by users using the terminal devices 501, 502, and 503 to optimize the knowledge base. The backend management server may analyze and process the received data such as user questions and answers, and feed back the processing results to the terminal device.
[0132] It should be noted that the management method of the customer service robot knowledge base provided in the embodiment of the present invention is generally executed by the server 505. Accordingly, the management device of the customer service robot knowledge base is generally set in the server 505.
[0133] It should be understood that Figure 5 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0134] Reference below Figure 6 , which shows a schematic diagram of the structure of a computer system 600 of a terminal device suitable for implementing an embodiment of the present invention. Figure 6 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0135] like Figure 6 As shown, the computer system 600 includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0136] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0137] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present invention are executed.
[0138] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0139] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0140] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor, for example, it may be described as: a processor includes an information acquisition module, a diagnostic analysis module, and a knowledge base optimization module. The names of these modules do not constitute a limitation on the modules themselves in certain cases. For example, the knowledge base optimization module may also be described as "a module for optimizing the knowledge base according to the results of the diagnostic analysis".
[0141] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: obtaining one or more user questions received by the customer service robot and the answer results provided by the customer service robot for the user questions based on the knowledge base, the knowledge base includes one or more knowledge items, the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, the answer results indicate whether the user question matches the knowledge items, and the reason why the answer provided by the customer service robot does not match when the user question matches the knowledge items; diagnosing and analyzing the user question according to the answer results and the knowledge items hit by the user question in the knowledge base; optimizing the knowledge base according to the results of the diagnostic analysis.
[0142] According to the technical solution of the embodiment of the present invention, by dynamically acquiring the user questions received by the customer service robot and the answer results provided by the customer service robot based on the knowledge base, automatic diagnosis and analysis of the knowledge base is realized; based on the diagnosis and analysis results, new knowledge items are generated through a clustering algorithm to expand the knowledge base; at the same time, when the reason for the mismatch of the answer is that the product does not match or the product classification does not match, the product identification or product classification corresponding to the user question in the knowledge base is updated by counting the product identification or product classification appearing in the user question. In addition, by real-time monitoring whether the knowledge items in the knowledge base are configured with answers or backup answers, the management and optimization of the knowledge base is further realized, and the diagnosis and optimization efficiency of the knowledge base is improved.
[0143] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for managing a customer service robot knowledge base, characterized in that: include: Obtaining one or more user questions received by the customer service robot and answer results provided by the customer service robot for the user questions based on a knowledge base, wherein the knowledge base includes one or more knowledge items, the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, and the answer results indicate whether the user question matches the knowledge item, and the reason why the answer provided by the customer service robot does not match when the user question matches the knowledge item; Diagnose and analyze the user question according to the reply result and the knowledge item hit by the user question in the knowledge base; specifically including: when the reply result is that the user question matches the knowledge item, count the reasons for the mismatch of the answers corresponding to the user questions in the matched knowledge items and the number of corresponding user questions; when the reason for the mismatch of the answer is the mismatch of the commodity identification, update the commodity identification corresponding to the answer indicated by the knowledge item in the knowledge base according to the frequency of occurrence of the commodity identification in the user question; when the reason for the mismatch of the answer is the mismatch of the commodity classification, update the commodity classification corresponding to the answer indicated by the knowledge item in the knowledge base according to the frequency of occurrence of the commodity classification in the user question; The knowledge base is optimized according to the results of the diagnostic analysis.
2. The method for managing a customer service robot knowledge base according to claim 1, characterized in that: The user question and the reply result pushed to the message queue by the customer service robot are obtained through the message queue.
3. The method for managing a customer service robot knowledge base according to claim 2, characterized in that: Before the customer service robot pushes the user question and the reply result to the message queue, the customer service robot obtains the user question and the reply result through dynamic embedding technology.
4. The method for managing a customer service robot knowledge base according to claim 1, characterized in that: The step of performing diagnostic analysis on the user question according to the answer result and the knowledge items hit by the user question in the knowledge base further includes: When the answer result is that the user question does not match any of the knowledge items, a clustering algorithm is used to cluster the user question to generate new knowledge items.
5. The method for managing a customer service robot knowledge base according to claim 4, characterized in that: Also includes: Before clustering the user questions using a clustering algorithm to generate new knowledge items, determining whether the number of user questions that are not matched to the knowledge items is greater than a threshold number of user questions; When the number of user questions is greater than a threshold number of user questions, a clustering algorithm is used to cluster the user questions to generate new knowledge items.
6. The method for managing a customer service robot knowledge base according to claim 5, characterized in that: The reasons for the non-matching of the answer also include: mismatch of effective time and / or user dissatisfaction.
7. The method for managing a customer service robot knowledge base according to claim 1, characterized in that: Also includes: Determine whether the knowledge base has any knowledge entry that does not indicate an answer or does not indicate a fallback answer, so that if there is any knowledge entry that does not indicate an answer or does not indicate a fallback answer in the knowledge base, add the answer or fallback answer corresponding to the knowledge entry to the knowledge base.
8. A management device for a customer service robot knowledge base, characterized in that: include: Information acquisition module, diagnosis and analysis module, knowledge base optimization module; among them, The information acquisition module is used to acquire one or more user questions received by the customer service robot and the answer results provided by the customer service robot for the user questions based on the knowledge base, wherein the knowledge base includes one or more knowledge items, the knowledge items indicate one or more user questions and one or more answers that match the knowledge items, and the answer results indicate whether the user question matches the knowledge item, and the reason why the answer provided by the customer service robot does not match when the user question matches the knowledge item; The diagnostic analysis module is used to perform diagnostic analysis on the user question based on the reply result and the knowledge item hit by the user question in the knowledge base; specifically, when the reply result is that the user question matches the knowledge item, count the reasons for the mismatch of the answers corresponding to the user questions in the matched knowledge items and the number of corresponding user questions; when the reason for the mismatch of the answer is the mismatch of the commodity identification, update the commodity identification corresponding to the answer indicated by the knowledge item in the knowledge base according to the frequency of occurrence of the commodity identification in the user question; when the reason for the mismatch of the answer is the mismatch of the commodity classification, update the commodity classification corresponding to the answer indicated by the knowledge item in the knowledge base according to the frequency of occurrence of the commodity classification in the user question; The knowledge base optimization module is used to optimize the knowledge base according to the result of the diagnostic analysis.
9. An electronic device for managing a customer service robot knowledge base, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.
10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Updating method and device of intelligent question and answer knowledge base, equipment and storage medium
CN110188183A
Intelligent question-answering corpus updating method and device
CN110990546A
