Data generation method, service reply method and equipment
By obtaining user attribute feature data, determining the domain knowledge map and knowledge acceptance, screening and analyzing the business knowledge map, and generating a personalized reply data set, the problem of lack of personalized reply content in the intelligent customer service system is solved, and user satisfaction and experience are improved. .
Patent Information
- Application Number
- CN202410333977.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-21
- Publication Date
- 2024-09-17
AI Technical Summary
When the existing intelligent customer service system handles user inquiries, the reply content lacks personalization and fails to be differentiated and adjusted according to the user's knowledge level and domain characteristics, resulting in reduced user satisfaction and experience.
By obtaining the attribute characteristic data of the target user, determine its domain knowledge map and knowledge acceptance, thereby screening out the matching business knowledge map, conduct analogy analysis, and generate a reply data set that meets the user's needs, improving the accuracy of the reply and user satisfaction. Spend.
It achieves the generation of more accurate and relevant reply data based on the user's understanding and needs, improving user satisfaction and conversation experience.
Smart Images

Figure CN118656451A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of natural language processing, and in particular to a data generation method, a business response method and a device. Background Art
[0002] With the rapid development of artificial intelligence technology, more and more companies and institutions use online intelligent customer service systems to handle business inquiries for customers. During the business processing process, intelligent customer service (i.e. customer service robots) introduce the business that users inquire about and provide professional responses. Summary of the invention
[0003] Based on this, it is necessary to provide a data generation method, a business response method and a device that can improve the accuracy of response data in response to the above technical problems.
[0004] In a first aspect, the present application provides a data generation method. The method comprises:
[0005] According to the attribute feature data of the target user, determine the domain knowledge graph that matches the target user from the domain knowledge graph library, and determine the knowledge acceptance of the target user;
[0006] According to the knowledge acceptance, determine the target business knowledge graph that matches the knowledge acceptance from the business knowledge graph;
[0007] Conduct analogical analysis on the target business knowledge graph and domain knowledge graph to determine the target entity relationship;
[0008] Based on the target entity relationship, a response dataset of the target user is generated.
[0009] The above data generation method obtains the domain knowledge graph of the target user through the attribute feature data of the target user, which can make the obtained domain knowledge graph match the domain interests and needs of the target user, which is helpful to improve the accuracy of the reply. By determining the knowledge acceptance of the target user, the target business knowledge graph that matches the knowledge acceptance of the target user is screened out from the business knowledge graph, which can make the target business knowledge graph more in line with the user's cognitive level. Then, by analogy analysis of the target business knowledge graph and the domain knowledge graph, the similarity and correlation between entities and relationships are found, the target entity relationship is determined, and then a reply data set is generated based on the target entity relationship. Since the target business knowledge graph matches the knowledge acceptance of the target user, and the domain knowledge graph also matches the domain interests and needs of the target user, the reply data set generated by analogy analysis of the target business knowledge graph and the domain knowledge graph is more in line with the understanding ability and needs of the target user. In the subsequent dialogue process, based on the reply data set, more accurate reply data that meets the needs of the target user can be pushed.
[0010] In a second aspect, the present application also provides a service recovery method. The method includes:
[0011] Obtain a target question, where the target question carries a user ID of a target user;
[0012] Determine a reply data set of the target user according to the user identifier of the target user, where the reply data set is obtained by the steps in any of the above data generation method embodiments;
[0013] Based on the response data set and the target question, the response data is obtained and sent to the target user.
[0014] After obtaining the target question of the target user, the above-mentioned business reply method first determines the reply data set of the target user according to the target question carried in the target question, and then, based on the reply data set and the target question, it can quickly generate reply data that meets the user's needs. Since the reply data set is in line with the target user's understanding ability and needs, the reply data generated based on the reply data set can also be easy for the user to understand and meet the user's needs, thereby improving the accuracy of the reply data. Therefore, the above-mentioned scheme can push reply data that is more in line with the user's needs and improve user satisfaction.
[0015] In a third aspect, the present application also provides a data generation device. The device comprises:
[0016] A data determination module is used to determine a domain knowledge graph matching the target user from the domain knowledge graph library according to the attribute feature data of the target user, and to determine the knowledge acceptance of the target user;
[0017] A data screening module is used to determine a target business knowledge graph that matches the knowledge acceptance from the business knowledge graph according to the knowledge acceptance;
[0018] The data analogy module is used to perform analogy analysis on the target business knowledge graph and the domain knowledge graph to determine the target entity relationship;
[0019] The data generation module is used to generate a response dataset of the target user based on the target entity relationship.
[0020] In a fourth aspect, the present application provides a service recovery device. The device includes:
[0021] A data acquisition module, used to acquire a target question of a target user, where the target question carries a user ID of the target user;
[0022] A data determination module, used to determine a response data set of a target user according to a user identifier;
[0023] The data push module is used to obtain the response data according to the response data set and the target question, and send the response data to the target user;
[0024] The reply data set is obtained by using the steps in the above-mentioned data generation method embodiments.
[0025] In a fifth aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps in the above-mentioned data generation method embodiments or service recovery method embodiments are implemented.
[0026] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-mentioned data generation method embodiments or service recovery method embodiments.
[0027] In a seventh aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned data generation method embodiments or service recovery method embodiments are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] Figure 1 An application environment diagram of a data generation method or a business recovery method in an embodiment;
[0029] Figure 2 A schematic diagram of a flow chart of a data generation method in one embodiment;
[0030] Figure 3 A schematic diagram of a flow chart of a step of determining knowledge acceptance in one embodiment;
[0031] Figure 4 A flowchart of a step of determining knowledge acceptance in another embodiment;
[0032] Figure 5 is a detailed flowchart of a data generation method in an embodiment;
[0033] Figure 6 A flowchart of a service recovery method in one embodiment;
[0034] Figure 7 is a detailed flowchart of a service recovery method in an embodiment;
[0035] Figure 8 is a structural block diagram of a data generating device in one embodiment;
[0036] Fig. 9is a structural block diagram of a service recovery device in an embodiment;
[0037] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0039] With the rapid development of artificial intelligence technology, more and more companies and institutions use online intelligent customer service systems to handle business consultations for customers. Intelligent customer service systems can handle multiple rounds of conversations and maintain the continuity of the conversations. During the business processing process, after the user enters the business question for consultation, the intelligent customer service robot will introduce or explain the business that the user is consulting and provide the user with a professional response. However, when processing conversations, many intelligent customer service systems may push the same reply content to different users. They do not make differentiated adjustments based on the knowledge level, field, and other characteristics of different users to generate personalized reply content, making it difficult to meet user needs and reducing the user's satisfaction and experience in the conversation process with customer service.
[0040] Based on the above considerations, the present application provides a solution for generating reply data. Specifically, it can be to obtain the attribute feature data of the target user, obtain the domain knowledge graph that matches the target user from the domain knowledge graph library through the attribute feature data of the target user, and determine the knowledge acceptance of the target user, and then, based on the knowledge acceptance, screen out the target business knowledge graph that matches the knowledge acceptance of the target user, then, perform analogy analysis on the target business knowledge graph and the domain knowledge graph, understand the similarity and correlation between entities and relationships, screen out similar target entity relationships, and finally, generate the target user's reply data set based on the target entity relationship.
[0041] In the subsequent business consultation process, if the target user inputs the target question of the consultation, the response data set of the target user can be determined based on the user identifier carried in the target question. Then, based on the target question and the response data set of the target user, the response data for the target user can be quickly determined. The generated response data fits the user's cognitive level and needs, thereby improving the reliability of the response data and user satisfaction.
[0042] The data generation method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Specifically, during the registration process of the target user, the target user enters his own attribute feature data on the human-computer interaction interface of the terminal 102, and submits the attribute feature data to the server 104 through the terminal 102. The server 104 obtains the attribute feature data of the target user, and through the attribute feature data, determines the domain knowledge graph that matches the target user from the domain knowledge graph library, and determines the knowledge acceptance of the target user, and then, according to the knowledge acceptance, determines the target business knowledge graph that matches the knowledge acceptance from the business knowledge graph, and then, performs analogy analysis on the target business knowledge graph and the domain knowledge graph to understand the similarity and correlation between entities and relationships, determine the target entity relationship, and then generate a reply data set for the target user according to the target entity relationship.
[0043] The terminal 102 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, IoT devices, and portable wearable devices. The IoT devices may be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. The portable wearable devices may be smart watches, smart bracelets, head-mounted devices, etc. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers.
[0044] In some embodiments, Figure 2 As shown, a data generation method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, and the following steps are included:
[0045] S200, determining the knowledge acceptance of the target user according to the attribute feature data of the target user, and determining the domain knowledge graph matching the target user in the domain knowledge graph library.
[0046] Attribute feature data may include, but are not limited to, data such as gender, age, major, occupation, and geographic location. A domain knowledge graph is a knowledge graph that contains concepts, entities, relationships, and attributes in a specific domain. It is used to organize and display knowledge about a certain domain and describe the associations and hierarchical relationships between these knowledge. In this embodiment, the domain knowledge graph may be a knowledge graph that matches the profession and occupation of the target user. Knowledge acceptance refers to the user's understanding and acceptance of new knowledge. In this embodiment, it can be used to characterize the user's understanding and acceptance of the provided business knowledge or professional domain knowledge. Knowledge acceptance can be specifically used to determine the details of business knowledge response data in business consulting scenarios. For example, the higher the knowledge acceptance, the more detailed the business knowledge response data. The lower the knowledge acceptance, the more concise the business knowledge response data.
[0047] In specific implementation, during the registration process of the target user, the authorization server may obtain the authority of the target user's own attribute information. The server pushes the registration interface to the terminal. The target user enters the attribute information including age, educational background, occupation, etc. on the registration interface of the terminal, and submits a registration request carrying the attribute information to the server through the terminal. The server obtains the attribute information of the target user, extracts the attribute features in the attribute information of the target user, and obtains the attribute feature data.
[0048] After obtaining the attribute feature data of the target user, it is possible to match a domain knowledge graph that matches the target user's education background and occupation from the existing knowledge graph based on the education background and occupation in the attribute feature data. For example, if the target user's major is mathematics and his occupation is engineer, the mathematics knowledge graph and the engineer knowledge graph are matched from the existing knowledge graph library, and the mathematics knowledge graph and the engineer knowledge graph are integrated to obtain the domain knowledge graph of the target user. Then, the occupation and major of the target user can be analyzed, and the knowledge acceptance of the target user can be determined with the help of research data on the understanding ability of users in various industries for business knowledge. In this embodiment, the knowledge acceptance finally determined can be mapped to the interval [0, 10], and the higher the value, the higher the knowledge acceptance.
[0049] S400, based on the knowledge acceptance, determining a target business knowledge graph that matches the knowledge acceptance from the business knowledge graph.
[0050] The business knowledge graph can also be called a business graph, which refers to a knowledge graph that is pre-constructed based on the business knowledge of a specific business field. For example, when it is determined based on the attribute feature data of the target user that the user wants to consult about the financial business field, and the business field is the financial business field, then the knowledge graph constructed based on the business knowledge related to the financial business field can be called the financial business knowledge graph. The financial business knowledge graph can cover multiple business fields such as investment business, insurance business, and payment settlement, and contains business knowledge, business rules, and document materials in multiple business fields. It can be understood that in actual applications, the specific business fields covered by the business knowledge graph are determined based on actual business conditions. The target business knowledge graph is a business knowledge graph that matches the knowledge acceptance of the target user.
[0051] In practical applications, the business knowledge in the business knowledge graph can be pre-added with labels indicating whether it is easy to understand. After determining the knowledge acceptance, the target business knowledge that matches the knowledge acceptance can be screened out from the business knowledge graph by comparing the labels of the business knowledge and the knowledge acceptance, and then the target business knowledge graph can be constructed based on the target business knowledge.
[0052] In practical applications, a "complexity" label can be added to each piece of business knowledge in the business knowledge graph. The complexity can represent the complexity and difficulty of understanding of the knowledge contained in the node. Then, all business knowledge can be divided into multiple different levels according to the complexity of the business knowledge. For example, low-level business knowledge will explain business terms more easily, while high-level business knowledge will explain business terms more deeply, such as listing principles and related calculation formulas. In this way, the business knowledge graph constructed based on all business knowledge includes multiple business knowledge with different levels (regarded as knowledge nodes in the knowledge graph). The higher the level of the business knowledge, the greater the difficulty of understanding, and the higher the corresponding knowledge acceptance.
[0053] S600, performing analogical analysis on the target business knowledge graph and the domain knowledge graph to determine the target entity relationship.
[0054] The target entity relationship refers to the entity relationship whose similarity exceeds the preset similarity threshold.
[0055] In specific implementation, after obtaining the target business knowledge graph, analogy analysis can be performed on the target business knowledge graph and the domain knowledge graph to screen out target entity relationships whose similarity exceeds a preset similarity threshold.
[0056] In other embodiments, the association relationship between entities in the target business knowledge graph and the domain knowledge graph may be derived through the semantic information and reasoning rules in the knowledge graph, and then the target entity relationships with higher correlation may be screened out.
[0057] In some other embodiments, data mining technology can also be used to mine association rules between entities in the target business knowledge graph and the domain knowledge graph. The association rules can reveal potential relationships between entities. Then, according to the association rules, the relevant target entity relationships are screened.
[0058] In other embodiments, a machine learning model may be used to learn the relationship patterns between entities in the target business knowledge graph and the domain knowledge graph, and predict the entity relationship queue that suits the needs and preferences of the target user based on the attribute characteristics and context information of the target user. Specifically, supervised learning or reinforcement learning methods may be used for modeling and prediction.
[0059] S800, generating a response dataset of a target user based on the target entity relationship.
[0060] A reply data set refers to a data set used to generate reply data, which includes multiple target entity relationship data. The reply data set includes relationship data between multiple similar entities, which may include entity identifiers, entity attributes, relationship types, relationship attributes, and relationship strength or similarity data. In this embodiment, the reply data set may be a personalized reply data set.
[0061] In specific implementation, similar target entity relationship pairs can be added to the reply dataset to obtain a reply dataset corresponding to the target user. Alternatively, a personalized reply dataset for the target user can be generated based on the target entity relationship in combination with natural language processing technology. For example, the target entity relationship information can be mapped to the corresponding replies through a Seq2Seq model to obtain a reply dataset.
[0062] In the above data generation method, the target user's domain knowledge graph is obtained through the target user's attribute feature data, so that the obtained domain knowledge graph can be consistent with the target user's domain interests and needs, which helps to improve the accuracy of the reply. By determining the target user's knowledge acceptance, the target business knowledge graph that matches the target user's knowledge acceptance is screened out from the business knowledge graph, so that the target business knowledge graph can be more consistent with the user's cognitive level. Then, by analogy analysis of the target business knowledge graph and the domain knowledge graph, the similarity and correlation between entities and relationships are found, the target entity relationship is determined, and then a reply data set is generated based on the target entity relationship. Since the target business knowledge graph matches the target user's knowledge acceptance, and the domain knowledge graph also matches the target user's domain interests and needs, the reply data set generated by analogy analysis of the target business knowledge graph and the domain knowledge graph is more in line with the target user's understanding ability and needs. In the subsequent dialogue process, based on the reply data set, more accurate reply data that meets the needs of the target user can be pushed.
[0063] like Figure 3 As shown, in some embodiments, determining the knowledge acceptance of the target user according to the attribute feature data includes:
[0064] S220, determining the business knowledge memory score of the target user based on the age characteristic data and the occupation characteristic data.
[0065] S240, determining the business knowledge comprehension score of the target user based on the education background characteristic data and the occupation characteristic data.
[0066] S260, determining the target user's knowledge acceptance according to the business knowledge memory score and the business knowledge comprehension score.
[0067] In this embodiment, the attribute feature data includes age feature data, education background feature data, and occupation feature data, wherein the education background feature data includes academic qualifications, majors, and the university or school where the user graduated. The business knowledge memory score is used to characterize the user's memory of business knowledge. The business knowledge comprehension score is used to characterize the user's comprehension of business knowledge.
[0068] In practical applications, it is possible to conduct a memory survey or assessment on users of different ages and occupations in advance, and summarize and analyze the memory characteristics of users of different ages and occupations based on the survey or assessment results, and obtain the correspondence between age and memory score ranges, as well as the correspondence between occupation and memory score ranges. Similarly, it is possible to conduct a business knowledge comprehension survey or assessment on users with different educational backgrounds and occupations, and summarize and analyze the degree of business knowledge comprehension of users with different educational backgrounds and occupations based on the survey or assessment results, and obtain the correspondence between educational background and occupation and business knowledge comprehension score ranges. Then, based on experience, corresponding weights can be set for business knowledge memory scores and business knowledge comprehension scores, respectively, to determine knowledge acceptance, for example:
[0069] Knowledge acceptance = weight 1 * business knowledge memory score + weight 2 * business knowledge comprehension score
[0070] In specific implementation, it can be based on the age characteristic data and occupational characteristic data of the target user, and find out the business knowledge memory score that matches the age characteristic data and occupational characteristic data from the preset corresponding relationship. Then, based on the education background characteristic data and occupational characteristic data of the target user, find out the business knowledge comprehension score that matches the education background characteristic data and occupational characteristic data from the preset corresponding relationship. Then, by taking the weighted sum of the business knowledge memory score and the business knowledge comprehension score, the target user's knowledge acceptance is determined. In this embodiment, knowledge acceptance can be represented by a score, and the higher the score, the higher the knowledge acceptance. In other embodiments, knowledge acceptance can also be divided into three levels: high, medium and low according to the score size of knowledge acceptance.
[0071] In this embodiment, the user's business knowledge memory and comprehension are comprehensively evaluated by combining age characteristics, educational background characteristics and occupational characteristics data, which can provide a more comprehensive understanding of the user's knowledge level and more accurately evaluate the user's knowledge acceptance.
[0072] In some embodiments, determining the knowledge acceptance of the target user based on the attribute feature data includes: taking the attribute feature data as input, calling a trained knowledge acceptance prediction model to perform knowledge acceptance prediction, and obtaining the knowledge acceptance of the target user.
[0073] In this embodiment, the knowledge acceptance prediction model is obtained by training the classification model based on the historical attribute feature data of the target user. Specifically, it can be in the form of question and answer, to collect the historical attribute feature data of multiple target users including feature data such as age, occupation and major, and the knowledge acceptance of the target user, and use the knowledge acceptance as the model training label. The collected data is preprocessed, including data cleaning, data conversion and normalization, etc., to construct a model training set and a model test set. Then, the data in the model training set is input into the initial classification model for model training. The classification model includes but is not limited to a Bayesian model or a support vector machine, etc. Specifically, the model parameters can be optimized by methods such as gradient descent method and maximum likelihood estimation. During the training process, the model will learn the prediction mode of knowledge acceptance according to the attribute feature data. After the model training is completed, the test set can be used to evaluate the performance of the trained knowledge acceptance prediction model, for example, various evaluation indicators such as accuracy, precision, recall rate, F1-score, etc. are used to evaluate the classification performance of the model. Then, according to the evaluation results, the knowledge acceptance prediction model is tuned to obtain the final knowledge acceptance prediction model.
[0074] In specific implementation, after obtaining the attribute feature data of the target user, the attribute feature data can be input into the trained knowledge acceptance prediction model. The model predicts the knowledge acceptance based on the attribute feature data to obtain the knowledge acceptance of the target user. It can be understood that the knowledge acceptance is a predicted value. It can be understood that the knowledge acceptance prediction model can also be iterated and improved. As new data continues to accumulate, the model can be further optimized to improve the prediction performance. At the same time, according to changes in demand, the model can be flexibly adjusted again to adapt to different application scenarios.
[0075] In this embodiment, by constructing a knowledge acceptance prediction model to predict the knowledge acceptance of the target user, the knowledge acceptance of the target user can be predicted efficiently and accurately.
[0076] S220 includes: S222, determining a first memory score according to age characteristic data and the correspondence between preset age groups and memory scores, determining a second memory score according to occupation characteristic data and the correspondence between preset occupations and memory scores, and determining the business knowledge memory score of the target user based on the first memory score and the second memory score.
[0077] S240 includes: S242, determining a first comprehension score based on educational background characteristic data and the correspondence between a preset educational background and a comprehension score, determining a second comprehension score based on occupational characteristic data and the correspondence between a preset occupation and a comprehension score, and determining the business knowledge comprehension score of the target user based on the first comprehension score and the second comprehension score.
[0078] Generally speaking, older people, such as those over 60 years old, have lower memory than younger people, such as those under 50 years old. Different professions have different requirements for memory, such as lawyers and legal professionals, educators, and scientific researchers. Specifically, the memory strength of users in different age groups can be analyzed to set the corresponding relationship between different age groups and memory scores. According to the requirements for memory ability of different professions, and / or the results of memory assessment of users of various professions, the corresponding relationship between different professions and memory scores is set.
[0079] Generally speaking, users with higher education levels have stronger knowledge comprehension abilities. Different professions have different requirements for knowledge comprehension abilities. For example, researchers and financial practitioners have higher requirements for knowledge comprehension abilities. Therefore, for educational background feature data, the relationship between educational background features and comprehension scores can be set based on factors such as education level, major, and academic performance, and / or the results of comprehension tests on users with different educational backgrounds. For occupational feature data, the corresponding relationship between occupations and comprehension scores can be set based on the degree of business knowledge comprehension abilities required by different occupations, and / or the results of memory tests on users of each occupation.
[0080] In specific implementation, the first memory score corresponding to the target user's age can be determined based on the preset correspondence between the age group and the memory score; the second memory score corresponding to the target user's occupation can be determined based on the preset correspondence between the occupation and the memory score, and then the target user's business knowledge memory score can be determined based on the first memory score and the second memory score. Specifically, the first memory score and the second memory score can be summed, or the first memory score and the second memory score can be weighted summed to determine the target user's business knowledge memory score.
[0081] According to the preset correspondence between the educational background and the comprehension score, the first comprehension score corresponding to the educational background of the target user is determined, and according to the preset correspondence between the occupation and the comprehension score, the second comprehension score corresponding to the occupation of the target user is determined, and then, based on the first comprehension score and the second comprehension score, the business knowledge comprehension score of the target user is determined. Specifically, the first comprehension score and the second comprehension score may be summed, or the first comprehension score and the second comprehension score may be weighted and summed to determine the business knowledge comprehension score of the target user.
[0082] For example, if the target user A is 25 years old, his education background is a postgraduate degree, his major is finance, and his occupation is a financial practitioner. The server can determine that the age range of 25 years old is 20-30 years old. Through the above preset correspondence between the age range and the memory score, the corresponding first memory score is determined to be 8 points. According to the preset correspondence between the occupation and the memory score, the corresponding second memory score for financial practitioners is 10 points, and the business knowledge memory score = 0.6*8+0.4*10=8.8. According to the preset correspondence between the education background and the understanding score, the first understanding score corresponding to the postgraduate degree and the finance major is determined to be 10 points. According to the preset correspondence between the occupation and the understanding score, the corresponding second understanding score for financial practitioners is determined to be 8 points, and the business knowledge understanding score is == 0.6*10+0.4*8=9.2. Based on the business knowledge memory score and the business knowledge understanding score, the target user's business knowledge acceptance is determined to be (8.8+9.2) / 2=9 points.
[0083] In this embodiment, by combining age, education background and occupational characteristic data and comprehensively considering the impact of multiple factors on memory and comprehension, the user's knowledge acceptance can be more accurately evaluated. In addition, it can be adjusted and expanded according to specific business needs, adding new characteristic data or evaluation dimensions to adapt to different scenarios and user groups.
[0084] like Figure 4 As shown, in some embodiments, S400 includes:
[0085] S420, according to the preset mapping relationship between knowledge level and knowledge acceptance, determine the target knowledge level corresponding to the knowledge acceptance, based on the target knowledge level, filter out the target entity node from the business knowledge graph, the knowledge level of the target entity node is less than or equal to the target knowledge level, and obtain the target business knowledge graph according to the target entity node.
[0086] In practical applications, knowledge acceptance can be quantified into a numerical range corresponding to the knowledge level. For example, knowledge acceptance can be graded from 1 to 10, corresponding to different knowledge levels, and a mapping relationship between knowledge level and knowledge acceptance can be established to determine the range of knowledge acceptance corresponding to each knowledge level. For example, a primary knowledge level may correspond to a higher knowledge acceptance because primary knowledge is usually easier to understand and accept; while an advanced knowledge level may correspond to a lower knowledge acceptance because advanced knowledge is usually more complex and difficult to understand.
[0087] In specific implementation, as described in the above embodiment, each knowledge node in the business knowledge graph corresponds to a knowledge level. Therefore, after determining the knowledge acceptance of the target user, the target knowledge level corresponding to the knowledge acceptance of the target user is determined according to the preset mapping relationship between the knowledge level and the knowledge acceptance. For example, if the knowledge acceptance of the target user is 5, the corresponding target knowledge level is determined to be intermediate. Then, the target entity nodes with a knowledge level less than or equal to the intermediate level are screened out from the business knowledge graph, and the target business knowledge graph is constructed based on the target entity nodes. It can also be based on the target entity node, find out other entity nodes associated with the target entity node, and construct the target business knowledge graph based on the target entity node and other entity nodes associated with the target entity node.
[0088] In this embodiment, by screening out knowledge nodes and associated nodes that match the knowledge acceptance, business knowledge related to the target user's needs can be extracted in a targeted manner to avoid information overload and redundancy. Knowledge nodes and associated nodes are sorted according to the complexity of the knowledge nodes, so that the content in the knowledge graph can be more in line with the user's understanding and acceptance of knowledge. Based on the ratio of knowledge acceptance to a preset threshold, the target knowledge graph is screened out from the initial knowledge graph, so that the content provided to the user is more in line with his needs, thereby improving the accuracy and relevance of the information.
[0089] In some embodiments, based on the attribute feature data of the target user, a domain knowledge graph matching the target user is determined from the domain knowledge graph library, including: determining the field related to the target user based on the educational background feature data and the occupational feature data, and determining the domain knowledge graph matching the target user based on the field and the domain knowledge graph library.
[0090] If the target user has an engineering degree and works in the software industry, the relevant fields may include computer science, software engineering, and other fields. Then, based on the determined multiple fields, multiple field knowledge graphs matching the multiple fields are found from the field knowledge graph library, and then the multiple field knowledge graphs are merged to obtain a field knowledge graph matching the target user. If the field of the target object is determined to be one based on the educational background feature data and the occupational feature data, a field knowledge graph matching the field is found from the field knowledge graph library, and the found field knowledge graph is determined as the field knowledge graph of the target user.
[0091] In this embodiment, the domain knowledge graph library is matched according to the educational background and occupational characteristics of the target user, so that the domain knowledge graph corresponding to the user can be obtained quickly and accurately.
[0092] like Figure 4As shown, in some embodiments, S600 includes: S620, determining the similarity between the entity relationship in the target business knowledge graph and the entity relationship in the domain knowledge graph, and determining the entity relationship whose similarity is greater than or equal to a preset similarity threshold as the target entity relationship.
[0093] In this embodiment, the similarity between entities in the target business knowledge graph and the domain knowledge graph may be calculated, and entity relationship pairs whose similarity exceeds a preset similarity threshold, such as 80%, may be determined as target entity relationships. Specifically, text similarity calculation methods, such as cosine similarity or edit distance, may be used to measure the similarity between entities. It is understandable that in other embodiments, the Euclidean distance or other similarity calculation methods may be used to calculate the similarity between entities in the target business knowledge graph and the domain knowledge graph.
[0094] In this embodiment, by calculating the similarity between entity relationships, the entity relationships in the target business knowledge graph and the domain knowledge graph can be matched more accurately, thereby improving the accuracy of matching.
[0095] like Figure 4 As shown, in some embodiments, S800 includes: S820, obtaining an initial business response data set, and based on the target entity relationship, performing data expansion processing on the initial business response data set to generate a response data set for the target user.
[0096] The data expansion process includes at least one of replacing entities, adding synonyms, and expanding entity relationships.
[0097] The initial business response data set refers to general business response data that is different from response data. The initial business response data set includes questions and standard answers to the questions (i.e. standard response data), as well as conversation data in different scenarios. In actual applications, developers can define a series of common questions and standard response data corresponding to the questions for each business field in advance.
[0098] Specifically, the initial business response data can be pre-collected business conversation data between the user and the system, such as chat records between the user and customer service, and conversation records of the online customer service system. The collected conversation data is sorted to obtain the initial business response data set. In the absence of real business conversation data, simulated conversation generation technology can be used to generate virtual business conversation data to construct the initial business response data set.
[0099] In specific implementation, after obtaining the initial business response data set, for the dialogue containing the target entity relationship, the entity can be selected for replacement in the initial business response data set. For example, the initial entity A is replaced with entity B through the text replacement method to generate new dialogue data. In order to enrich the data set, synonyms or near synonyms of the entity can be added. By using a synonym dictionary or a natural language processing tool, synonyms or near synonyms of the entity are added to generate diversified dialogue data. In the dialogue data, more instances can be added or new entity relationships can be introduced, or the relationship between entities can be modified to expand the diversity of entity relationships. By performing the above-mentioned data expansion processing on the initial response data set, a personalized response data set for the target user is obtained. It can be understood that in other embodiments, the above-mentioned data expansion processing method can also include other processing methods, which can be determined according to actual conditions.
[0100] In this embodiment, by replacing entities, adding synonyms, and expanding entity relationships, more diverse and rich conversation data can be generated, thereby improving the diversity and richness of the response data set.
[0101] In order to more clearly illustrate the data generation method provided by the present application, the following is a specific embodiment and the attached Figure 5 To illustrate, this specific embodiment includes the following contents:
[0102] S202, acquiring attribute characteristic data of the target user, the attribute characteristic data including age characteristic data, educational background characteristic data and occupation characteristic data.
[0103] S210, determining the field related to the target user based on the educational background feature data and the occupational feature data, and determining the field knowledge graph matching the target user based on the field and the field knowledge graph library.
[0104] S220, determine the target user's business knowledge memory score based on the age characteristic data and the occupation characteristic data, determine the target user's business knowledge comprehension score based on the education background characteristic data and the occupation characteristic data, and determine the target user's knowledge acceptance based on the business knowledge memory score and the business knowledge comprehension score.
[0105] S420, according to the preset mapping relationship between knowledge level and knowledge acceptance, determine the target knowledge level corresponding to the knowledge acceptance, based on the target knowledge level, filter out the target entity nodes whose knowledge level is less than or equal to the target knowledge level from the business knowledge graph, and obtain the target business knowledge graph based on the target entity nodes.
[0106] S620, determine the similarity between the entity relationship in the target business knowledge graph and the entity relationship in the domain knowledge graph, and determine the entity relationship whose similarity is greater than or equal to a preset similarity threshold as the target entity relationship.
[0107] S820, obtaining an initial business response data set, and performing data expansion processing on the initial business response data set based on the target entity relationship to generate a response data set for the target user.
[0108] The data expansion process includes at least one of replacing entities, adding synonyms, and expanding entity relationships.
[0109] If the target user A is 25 years old, his education background is postgraduate degree, his major is finance, and his occupation is finance practitioner. The age range of 25 years old is 20-30 years old. According to the above preset correspondence between age range and memory score, the corresponding first memory score is determined to be 8 points. According to the preset correspondence between occupation and memory score, the corresponding second memory score of finance practitioner is 10 points, so the business knowledge memory score = 0.6*8+0.4*10=8.8. According to the preset correspondence between education background and understanding score, the first understanding score corresponding to postgraduate degree and finance major is determined to be 10 points. According to the preset correspondence between occupation and understanding score, the corresponding second understanding score of finance practitioner is determined to be 8 points, so the business knowledge understanding score == 0.6*10+0.4*8=9.2. The target user's business knowledge acceptance can be (8.8+9.2) / 2=9 points.
[0110] After determining that the target user's knowledge acceptance is 9 points, the corresponding target knowledge level is determined to be advanced according to the preset mapping relationship between the knowledge level and the knowledge acceptance. Then, the target entity nodes with a knowledge level less than or equal to the advanced level are screened out from the business knowledge graph, and the target business knowledge graph is constructed based on the target entity nodes. Alternatively, other entity nodes associated with the target entity node are found based on the target entity node, and the target business knowledge graph is constructed based on the target entity node and other entity nodes associated with the target entity node.
[0111] Then, the cosine similarity is used to calculate the similarity between the entities in the target business knowledge graph and the domain knowledge graph, and the entity relationship pairs whose similarity exceeds the preset similarity threshold, such as 80%, are determined as target entity relationships.
[0112] Finally, obtain the pre-built initial business response dataset. Based on the target entity relationship, for the dialogues containing the target entity relationship in the initial business response dataset, you can select entities to replace. For example, through the text replacement method, replace the initial entity A with entity B to generate new dialogue data. You can also add synonyms or near synonyms of entities by using a synonym dictionary or natural language processing tools to generate diversified dialogue data. In addition, in the dialogue data, add more instances or introduce new entity relationships, or modify the relationship between entities to expand the diversity of entity relationships. By performing the above data expansion processing on the initial response dataset, you can get the response dataset of the target user.
[0113] Based on the same inventive concept, the present application embodiment also provides a service recovery method, which can also be applied to Figure 1 In the application environment shown. Specifically, the server 104 may adopt the steps in any data generation method embodiment to generate a reply data set corresponding to each user and store the reply data set. If the target user needs to consult a service, he can input the target question to be consulted through the dialogue interface of the terminal 102, and submit the target question with the user ID to the server 104. The server 104 obtains the target question and the user ID of the target user, and then determines the reply data set of the target user according to the user ID. Finally, according to the reply data set and the target question, the reply data is obtained and pushed to the target user.
[0114] In some embodiments, Figure 6 As shown, a business reply method is provided, which is applied to Figure 1 The server 104 in the example is used as an example to illustrate, and the following steps are included:
[0115] S900: Obtain a target question of a target user, where the target question carries a user ID of the target user.
[0116] The target user is the user who sends the target question. User identification includes but is not limited to account ID (identify), specific number, and contact information. The target question is a problem event data that organizes the specific questions raised by the target user during the consultation process and the description data of the event related to the question. In this embodiment, the expression format of the target question can be:
[0117] Target question = consulting business + key consulting question + description of relevant events
[0118] In specific implementation, if the target user needs to consult a service, he or she can input the question to be consulted in the dialogue interface of the terminal. The target user can input the question to be consulted in the form of event description according to the expression format of the target question prompted by the interface, and submit a consultation request to the server. The consultation request carries the target question and the identification data of the target user. The server can parse the consultation request and extract the target question entered by the target user and the user identification of the target user.
[0119] S902: Determine a reply data set of the target user according to the user identifier.
[0120] In this embodiment, the reply data set is a reply data set generated by the server using the steps in any of the above data generation method embodiments. After the server generates a reply data set corresponding to the target user according to the attribute feature data of each target user using the steps in any of the above data generation method embodiments, the target user's identification data, such as the account ID, can be associated and stored with the reply data set.
[0121] As described in the above steps, the target question submitted by the user carries the user's identification data. In this embodiment, taking the identification data as an account ID as an example, a response data set corresponding to the account ID may be queried from the database.
[0122] S904, based on the response data set and the target question, obtain response data, and send the response data to the target user.
[0123] In specific implementation, after obtaining the response data set and target question corresponding to the user, the target question can be processed through natural language processing methods such as semantic understanding, lexical analysis and syntactic analysis to determine the consulting business and needs corresponding to the target question. Specifically, the keywords and key sentences in the target question can be extracted, and then the business knowledge data related to the keywords and key sentences can be queried in the business knowledge graph. Then, based on the consulting question description data and the queried business knowledge data, the specific consulting business and needs corresponding to the target question are determined. Subsequently, the response data corresponding to the consulting business and needs are matched from the response data set, and then the response data is pushed to the target user.
[0124] If the target question input by the user is too vague, the server cannot determine the corresponding consulting business, but it can identify the nature and related fields of the problem, and can transfer the target question to relevant manual experts or relevant departments for business identification, determine the business and needs that the target user wants to consult, and then send the consulting business and needs to the server.
[0125] In the above business response method, after obtaining the target question, the response data set of the target user is first determined according to the target question carried in the target question, and then, based on the response data set and the target question, the response data that meets the user's needs can be quickly generated. Since the response data set is consistent with the target user's understanding ability and needs, the response data generated based on the business data set can also be easy for the user to understand and close to the user's needs, thereby improving the accuracy and degree of the response data. Therefore, the above scheme can push more accurate response data and improve user satisfaction.
[0126] like Figure 7 As shown, in some embodiments, S904 includes: S924, determining the user intent according to the target question, searching for reply data matching the user intent from the reply data set, and sending the reply data to the target user.
[0127] User intent refers to the goal or intention that the user wants to achieve when asking questions or interacting with the system. The reply data includes but is not limited to business feature data and recommendation data. In specific implementation, after obtaining the target question, the server can perform semantic understanding of the target question, identify the keywords, key sentences and context information in the target question, and then query the business knowledge data related to the keywords and key sentences in the business knowledge graph. Then, based on the description data of the target question and the queried business knowledge data, the user intent is predicted. The user intent may include but is not limited to the business type and needs that the user wants to consult. Since the reply data set includes questions about different business areas generated for the user and the corresponding answers to the questions. Therefore, after determining the user intent, it is possible to directly find the reply data that matches the user intent from the reply data set, and then push the found reply data to the target user.
[0128] For example, the target question submitted by user A who works in the legal industry is: What is a hybrid fund?
[0129] The server identifies the intent of the target question and determines that the user's intention is: explain hybrid funds. Since user A is engaged in legal-related work, he has a high ability to understand and accept new knowledge, so he can give a more detailed and professional response. Specifically, the response data matching "Explain hybrid bond funds" queried from user A's response data set is "Hybrid funds refer to funds that invest in stocks, bonds, and money market instruments. This type of fund aims to balance the stability of bonds and the growth potential of stocks to achieve portfolio diversification and risk dispersion. Depending on the investment proportions of stocks and bonds and the investment strategies, hybrid funds can be divided into equity-oriented funds, debt-oriented funds, allocation funds and other types.".
[0130] In the above embodiment, based on the user intention, reply data that better meets the user's needs can be quickly matched from the reply data set, thereby improving the user experience and satisfaction.
[0131] In some embodiments, S904 includes: S944, taking the target question as input, calling the trained business identification model to perform business identification, obtaining a business identification result, and finding out the response data matching the business identification result from the response data set.
[0132] The business identification results include but are not limited to business types and related business knowledge consultation questions, etc. The business identification model is obtained by training the pre-trained language model based on the target knowledge graph and business inquiry data.
[0133] Specifically, the training process of the business identification model can be: using the corresponding relationship between the business terms and their explanations in the user's domain business knowledge graph as labels and training texts, constructing an annotated data set, and then, through text enhancement technology, expanding the text of each explanation to generate more annotated data. Input the annotated data into the pre-trained language model, perform the text classification task, record the trained model as model_1, input the unlabeled target question into the model model_1, obtain the business identification result label, and then hand over the data carrying the business identification result label to the annotator, who will correct the label by comparing the business terms and the corresponding explanations in the domain knowledge graph, and then input the corrected label together with its text data into the pre-trained language model, perform the text classification task, and record the trained model as model_2, i.e., the business identification model.
[0134] In specific implementation, it can be to load the trained business identification model and perform preprocessing operations on the target question, such as text segmentation, stop word removal, stemming or other text cleaning methods, so as to organize the target question into data that matches the input data format of the model. The preprocessed problem event is input into the loaded business identification model for business identification. The model will analyze and evaluate the target problem based on its learned features and parameters to obtain business identification results, including business types and requirements. Then, according to the business type and requirements, data matching is performed in the response data set to match the initial business response data that matches the business type and requirements.
[0135] Furthermore, the business identification results can be post-processed to optimize the business identification results, including threshold setting, data filtering and other operations to improve the accuracy of the business identification results. Then, the business identification results are visualized.
[0136] In this embodiment, accurate service identification results can be obtained efficiently by performing service identification using a trained service identification model.
[0137] In order to make a clearer description of the service recovery method provided in the embodiment of the present application, the following is a specific embodiment and the attached Figure 7 To illustrate, this specific embodiment includes the following steps:
[0138] S900: Obtain a target question of a target user, where the target question carries a user ID of the target user.
[0139] S902: Determine a reply data set of the target user according to the user identifier.
[0140] S924, determining the user intention according to the target question, finding the reply data matching the user intention from the reply data set, and sending the reply data to the target user.
[0141] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0142] Based on the same inventive concept, the embodiment of the present application also provides a data generation device for implementing the data generation method involved above, and a business recovery device for implementing the business recovery method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data generation device embodiments provided below can refer to the limitations on the data generation method above, and will not be repeated here. The specific limitations in one or more business recovery device embodiments provided by the present application can refer to the limitations on the business recovery method above, and will not be repeated here.
[0143] In some embodiments, Figure 8 As shown, a data generating device is provided, including: a data determining module 810, a data screening module 820, a data analogy module 830 and a data generating module 840, wherein:
[0144] The data determination module 810 is used to determine the domain knowledge graph matching the target user from the domain knowledge graph library according to the attribute feature data of the target user, and to determine the knowledge acceptance of the target user.
[0145] The data screening module 820 is used to determine a target business knowledge graph that matches the knowledge acceptance from the business knowledge graph according to the knowledge acceptance.
[0146] The data analogy module 830 is used to perform analogy analysis on the target business knowledge graph and the domain knowledge graph to determine the target entity relationship.
[0147] The data generation module 840 is used to generate a response data set of the target user based on the target entity relationship.
[0148] In some embodiments, the attribute characteristic data includes age characteristic data, education background characteristic data and occupational characteristic data; the data determination module 810 is also used to determine the business knowledge memory score of the target user based on the age characteristic data and the occupational characteristic data, determine the business knowledge comprehension score of the target user based on the education background characteristic data and the occupational characteristic data, and determine the knowledge acceptance of the target user based on the business knowledge memory score and the business knowledge comprehension score.
[0149] In some embodiments, the data screening module 820 is also used to determine the target knowledge level corresponding to the knowledge acceptance based on the preset mapping relationship between the knowledge level and the knowledge acceptance, and based on the target knowledge level, screen out the target entity node from the business knowledge graph, the knowledge level of the target entity node is less than or equal to the target knowledge level, and obtain the target business knowledge graph based on the target entity node.
[0150] In some embodiments, the data determination module 810 is also used to determine the fields related to the target user based on the educational background characteristic data and the occupational characteristic data, and to determine the domain knowledge graph that matches the target user based on the domain and the domain knowledge graph library.
[0151] In some embodiments, the data analogy module 830 is also used to determine the similarity between the entity relationship in the target business knowledge graph and the entity relationship in the domain knowledge graph, and determine the entity relationship whose similarity is greater than or equal to a preset similarity threshold as the target entity relationship.
[0152] In some embodiments, Fig. 9 As shown, a service recovery device 900 is provided, comprising: a data acquisition module 910, a data determination module 920, and a data push module 930, wherein:
[0153] The data acquisition module 910 is used to acquire a target question of a target user, where the target question carries a user identifier of the target user.
[0154] The data determination module 920 is used to determine the reply data set of the target user according to the user identifier.
[0155] The data push module 930 is used to obtain the reply data according to the reply data set and the target question, and send the reply data to the target user.
[0156] The reply data set is obtained by using the steps in the above-mentioned data generation method embodiments.
[0157] In some embodiments, the data push module 930 is further used to determine the user intent according to the target question, find the reply data matching the user intent from the reply data set, and push the reply data.
[0158] Each module in the above data generation device and business response device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0159] In some embodiments, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as attribute feature data, response data sets and target questions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data generation method or a business response method is implemented.
[0160] Those skilled in the art will understand that Fig.10The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0161] In some embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps in the above-mentioned data generation method embodiments or business response method embodiments are implemented.
[0162] In some embodiments, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned data generation method embodiments or business response method embodiments are implemented.
[0163] In some embodiments, a computer program product is provided, including a computer program, which, when executed by a processor, implements the steps in the above-mentioned data generation method embodiments or business response method embodiments.
[0164] It should be noted that the user information (including but not limited to attribute feature information, user personal information, etc.) and data (including but not limited to data used for analysis such as target questions, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0165] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0166] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0167] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A data generation method, characterized in that: The method comprises: Determine the knowledge acceptance of the target user according to the attribute feature data of the target user, and determine the domain knowledge graph matching the target user in the domain knowledge graph library; According to the knowledge acceptance, determining a target business knowledge graph that matches the knowledge acceptance from the business knowledge graph; Performing analogical analysis on the target business knowledge graph and the domain knowledge graph to determine the target entity relationship; Based on the target entity relationship, a reply dataset of the target user is generated.
2. The method according to claim 1, characterized in that The attribute characteristic data includes age characteristic data, education background characteristic data and occupation characteristic data; determining the knowledge acceptance of the target user according to the attribute characteristic data includes: Determining the business knowledge memory score of the target user according to the age characteristic data and the occupation characteristic data; Determining the business knowledge comprehension score of the target user according to the educational background characteristic data and the occupation characteristic data; The knowledge acceptance of the target user is determined according to the business knowledge memory score and the business knowledge comprehension score.
3. The method according to claim 1, characterized in that The step of determining, according to the knowledge acceptance, a target business knowledge graph that matches the knowledge acceptance from the business knowledge graph includes: Determining the target knowledge level of the target user according to a preset mapping relationship between the knowledge level and the knowledge acceptance; Based on the target knowledge level, a target entity node is screened out from the business knowledge graph, and the knowledge level to which the target entity node belongs is less than or equal to the target knowledge level; The target business knowledge graph is obtained according to the target entity node.
4. The method according to claim 2, characterized in that: The determining of the domain knowledge graph in the domain knowledge graph library that matches the target user includes: Determining a field related to the target user based on the educational background characteristic data and the occupation characteristic data; According to the domain and the domain knowledge graph library, a domain knowledge graph matching the target user is determined.
5. The method according to any one of claims 1 to 4, characterized in that: The analogy analysis of the target business knowledge graph and the domain knowledge graph to determine the target entity relationship includes: Determine the similarity between the entity relationships in the target business knowledge graph and the entity relationships in the domain knowledge graph; An entity relationship whose similarity is greater than or equal to a preset similarity threshold is determined as a target entity relationship.
6. The method according to claim 5, characterized in that The step of generating a reply data set of the target user based on the target entity relationship includes: Obtaining an initial business response data set; Based on the target entity relationship, data expansion processing is performed on the initial business response data set to generate a response data set for the target user.
7. A service recovery method, characterized in that: The method comprises: Acquire a target question of a target user, where the target question carries a user identifier of the target user; Determining a reply data set of the target user according to the user identifier, wherein the reply data set is obtained by the data generation method according to any one of claims 1 to 6; Based on the response data set and the target question, response data is obtained, and the response data is sent to the target user.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the processor implements the steps of the data generation method according to any one of claims 1 to 6, or implements the steps of the business recovery method according to claim 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the computer program implements the steps of the data generation method according to any one of claims 1 to 6, or implements the steps of the business recovery method according to claim 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the data generation method described in any one of claims 1 to 6, or implements the steps of the business recovery method described in claim 7.
Citation Information
Patent Citations
Intelligent customer service consultation reply method and device, computer equipment and storage medium
CN111782782A
Intelligent reply method and device based on multiple knowledge graphs and computer equipment
CN112650854A
Question and answer method and device based on knowledge graph, storage medium, and electronic equipment
CN113886535A
Business scene identification method and device, equipment and storage medium
CN116992397A
Question and answer consulting method and system based on user portraits
CN117539996A
