Digital human interaction system based on knowledge graph and large model
Through the digital human interaction system based on knowledge graphs and large models, it solves the problem of insufficient flexibility of traditional systems in dealing with complex problems, achieves precise matching of user inquiries and accuracy of responses, and provides real-time optimization of user feedback. A richer and more interactive experience that meets your needs.
Patent Information
- Application Number
- CN202410995617.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-24
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional digital human interaction systems lack flexibility when dealing with complex and diverse problems, cannot provide optional information, and cannot flexibly match relevant content based on the user's inquiry content.
A digital human interaction system based on knowledge graphs and large models is used to collect and match user input data in real time through the knowledge graph building module, data collection module, interactive evaluation module, user feedback module and knowledge update module, and evaluate the confidence of the response information. Provide preferred and alternative responses, and update the knowledge graph based on user feedback.
It achieves precise matching of user inquiry information, provides richer and more accurate responses, ensures that the response information meets user needs, and continuously optimizes system performance through user feedback.
Smart Images

Figure CN118535022A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of digital human interaction technology, and specifically relates to a digital human interaction system based on knowledge graph and large model. Background Art
[0002] Traditional digital human interaction systems mainly rely on fixed rules and templates for responding, and their interactive effects are limited. They can only deal with some simple and fixed questions, but are unable to cope with complex and diverse questions and lack corresponding flexibility. That is, the same inquiry content may involve multiple fields or multiple knowledge nodes, and traditional systems can only give a fixed response and cannot provide optional information, and thus cannot flexibly match relevant content according to the user's inquiry content. In order to overcome the limitations of the above-mentioned traditional digital human interaction systems, the present invention proposes a digital human interaction system based on knowledge graphs and large models to solve the above problems. Summary of the invention
[0003] The purpose of the present invention is to provide a digital human interaction system based on knowledge graph and large model, which can flexibly match the knowledge nodes in the knowledge graph according to the query information input by the user, and provide the user with richer and more accurate response information.
[0004] The technical solution adopted by the present invention is as follows: A digital human interaction system based on knowledge graph and big model, including a knowledge graph construction module, a data collection module, an interaction evaluation module, a user feedback module and a knowledge update module; The knowledge graph construction module is used to collect and integrate knowledge data from multiple sources and convert the knowledge data into a structured knowledge graph; The data collection module is used to collect the user's input data in real time, convert the input data into a data format that matches the knowledge graph, and then output response information based on the knowledge graph; The interactive evaluation module is used to obtain the confidence score of each of the response information in real time, screen the response information according to the confidence score, and output preferred response information and alternative response information; The user feedback module is used to receive user feedback satisfaction on the preferred answer information and the alternative answer information, and re-output the preferred answer information and the alternative answer information according to the feedback satisfaction; The knowledge updating module is used to collect user feedback content, update the knowledge graph according to the user feedback content, and reintegrate the updated knowledge graph.
[0005] In a preferred embodiment, the knowledge graph construction module includes a knowledge preprocessing unit and a graph structure construction unit. The knowledge preprocessing unit is used to collect original knowledge data from multiple sources, and clean, deduplicate and convert the original knowledge data to obtain prerequisite benchmark data in a unified format. The graph structure construction unit is used to perform semantic analysis on the prerequisite benchmark data to construct a knowledge graph with a hierarchical structure and semantic relationships.
[0006] In a preferred embodiment, the data acquisition module includes a data capture unit, a format conversion unit and a knowledge matching unit. The data capture unit is used to capture the user's query information, wherein the query information includes voice data, text data and action data. The format conversion unit is used to convert the captured query information into a data format consistent with the knowledge graph. The knowledge matching unit is used to match the query information after format conversion with the knowledge graph, and output response information corresponding to the query information in the knowledge graph.
[0007] In a preferred embodiment, when the knowledge matching unit is executed, feature extraction is performed on the query information to obtain key features and non-key features, and then the key features and non-key features are compared with knowledge nodes in the knowledge graph, and an associated node associated with the query information is output according to the comparison result; The connection relationships between all the associated nodes are collected, and a response path of the query information is output according to the connection relationships.
[0008] In a preferred solution, after the key features and non-key features are output, the key features and non-key features are mapped into numerical vectors and recorded as primary feature parameters and secondary feature parameters respectively; An evaluation function is preset in the knowledge matching unit, and the evaluation function is used to calculate the similarity between the primary feature parameter, the secondary feature parameter and the knowledge node, and record it as an evaluation score; The knowledge matching unit also has an evaluation threshold preset therein, and the evaluation threshold is used for comparison with the evaluation score; If the evaluation score is higher than or equal to the evaluation threshold, it indicates that the knowledge node is associated with the query information, and the knowledge node is recorded as an associated node, and response information is output according to the associated node; If the evaluation score is lower than the evaluation threshold, it indicates that the knowledge node is not associated with the query information, and the knowledge node is ignored; If the evaluation scores of all the knowledge nodes are lower than the evaluation threshold, a prompt message for re-questioning is sent to the user.
[0009] In a preferred embodiment, the connection relationship between the associated nodes includes an independent relationship and a subordinate relationship; The response path between the associated nodes under the independent relationship is greater than 1, or equal to 0, and the response path between the associated nodes under the subordinate relationship is 1; Among them, when there is a subordinate relationship between the associated nodes, the knowledge matching unit will directly output the data under the associated nodes under the subordinate relationship as response information, and when there is an independent relationship between the associated nodes, the knowledge matching unit will output the data under each associated node as response information.
[0010] In a preferred embodiment, the interactive evaluation module includes a confidence calculation unit and a response screening unit, wherein the confidence calculation unit is used to construct an evaluation period, and collect the number of clicks and browsing time of the response information under the inquiry information within the evaluation period, and mark the number of clicks as the first condition parameter, and mark the browsing time as the second condition parameter; The confidence calculation unit is provided with a confidence calculation function, and the confidence calculation function is used to calculate the confidence score of the response information according to the first condition parameter and the second condition parameter; A screening threshold is preset in the response screening unit. After the confidence score is output, it is output to the response screening unit for comparison with the screening threshold, and confidence scores higher than or equal to the screening threshold are screened out, and the response information is marked as candidate response information, and then the candidate response information with the largest confidence score value is marked as preferred response information, and the remaining candidate response information is marked as alternative response information.
[0011] In a preferred solution, the user feedback module includes a feedback collection unit and a feedback processing unit, wherein the feedback collection unit is used to capture the user's feedback satisfaction during the interaction process in real time and quantify it into a satisfaction score; The feedback processing unit summarizes the satisfaction score and the confidence score, and outputs the summary result as an updated score, and arranges the updated scores in order from large to small, and records the response information with the largest updated score value as the preferred response information, and records the remaining response information as the alternative response information.
[0012] In a preferred solution, the knowledge update module includes a knowledge update processing unit and an effect evaluation unit. The knowledge update processing unit amends, supplements or deletes the knowledge nodes and relationships in the knowledge graph according to the user feedback content, compares the updated knowledge graph with the original knowledge graph, outputs the updated content, and feeds back the updated content to the administrator for review; The effect evaluation unit is used to collect user satisfaction scores after using the updated knowledge graph, and compare the collected satisfaction scores with the satisfaction scores before the update; If the satisfaction score after the update is higher than or equal to the satisfaction score before the update, it means that the knowledge update is effective, and the updated knowledge graph is used as the new benchmark knowledge graph; If the satisfaction score after the update is lower than the satisfaction score before the update, it means that the knowledge update is invalid, and the knowledge graph is rolled back to the state before the update.
[0013] The present invention also provides an electronic device, the electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; Among them, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned digital human interaction system based on knowledge graph and large model.
[0014] The technical effects achieved by the present invention are: The present invention can convert the format of captured user query information into a data format compatible with the knowledge graph by combining it with the knowledge graph. Through the knowledge matching unit, the system can accurately match the knowledge nodes related to the query information and output the corresponding response information. In addition, the system also introduces the numerical vector mapping of key features and non-key features, and outputs rich response information based on it. Especially when dealing with complex queries, the system can quickly screen out knowledge nodes that are highly relevant to the query information based on the evaluation scores, thereby providing more accurate responses. At the same time, by collecting and analyzing the user's behavioral data during the interaction process, such as the number of clicks and browsing time, the confidence of the response information is evaluated to ensure that the response information output by the system is not only accurate but also meets the actual needs of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the system execution flow of the present invention; Figure 2 It is a schematic diagram of the system module of the present invention; Figure 3 It is a structural diagram of an electronic device of the present invention. DETAILED DESCRIPTION
[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0017] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0018] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure or characteristic that may be included in at least one implementation of the present invention. The phrase "in a preferred embodiment" that appears in different places in this specification does not refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0019] See also Figure 1 and Figure 2 As shown, the present invention provides a digital human interaction system based on knowledge graph and large model, including a knowledge graph construction module, a data collection module, an interaction evaluation module, a user feedback module and a knowledge update module; The knowledge graph construction module is used to collect and integrate knowledge data from multiple sources and transform the knowledge data into a structured knowledge graph; The data collection module is used to collect the user's input data in real time, convert the input data into a data format that matches the knowledge graph, and then output the response information based on the knowledge graph; The interactive evaluation module is used to obtain the confidence score of each response information in real time, screen the response information according to the confidence score, and output the preferred response information and the alternative response information; The user feedback module is used to receive the user's feedback satisfaction on the preferred answer information and the alternative answer information, and re-output the preferred answer information and the alternative answer information according to the feedback satisfaction; The knowledge update module is used to collect user feedback content, update the knowledge graph based on the user feedback content, and reintegrate the updated knowledge graph.
[0020] In the present invention, as human-computer interaction becomes more and more in-depth and extensive, users' expectations for digital human interaction systems are also constantly increasing. This requires that the digital human interaction system should not only be able to accurately understand the user's intentions, but also be able to make real-time adjustments and optimizations based on user feedback. In this embodiment, the system is composed of a knowledge graph construction module, a data acquisition module, an interaction evaluation module, a user feedback module, and a knowledge update module. The knowledge graph construction module is responsible for collecting and integrating knowledge data from multiple channels. These knowledge data may come from various professional fields or from various information in daily life. The knowledge graph construction module integrates these data and converts them into structured knowledge graphs to provide support for subsequent data processing. The data acquisition module is responsible for real-time collection of user input data. These input data include user questions, instructions, or other forms of interactive information. The data acquisition module converts these input data into knowledge graphs. The interactive evaluation module screens the response information according to these confidence scores and outputs the preferred response information and the alternative response information to ensure the accuracy of subsequent responses. At the same time, it can also provide users with a variety of choices. The user feedback module is responsible for receiving user feedback satisfaction on the preferred response information and the alternative response information, and re-outputs the preferred response information and the alternative response information based on the user's feedback satisfaction to improve the user's interactive experience. The role of the knowledge update module is to collect user feedback content and update the knowledge graph based on the user feedback content. This self-optimization mechanism enables the system to continuously adapt to user needs and improve the intelligence level of the system.
[0021] In a preferred embodiment, the knowledge graph construction module includes a knowledge preprocessing unit and a graph structure construction unit. The knowledge preprocessing unit is used to collect original knowledge data from multiple sources, and clean, deduplicate and convert the original knowledge data to obtain prerequisite benchmark data in a unified format. The graph structure construction unit is used to perform semantic analysis on the prerequisite benchmark data to construct a knowledge graph with a hierarchical structure and semantic relationships.
[0022] In this embodiment, the knowledge graph construction module mainly includes a knowledge preprocessing unit and a graph structure construction unit. The knowledge preprocessing unit is mainly responsible for collecting original knowledge data from multiple sources, and then performing a series of processing on these original data, such as cleaning, deduplication and format conversion, to ensure the uniformity and accuracy of the data format, and finally obtain the prerequisite benchmark data that meets the requirements. The graph structure construction unit is responsible for performing in-depth semantic analysis on the prerequisite benchmark data, and forming a complete and semantically rich knowledge graph by constructing a hierarchical structure and semantic relationships. This can be achieved by adopting natural language processing technology and graph database technology. Natural language processing technology can deeply understand the meaning of the text and extract the key information therein, while graph database technology can effectively store and query these data with complex relationships, thereby constructing an efficient and accurate knowledge graph, providing effective support for the storage, retrieval and application of knowledge.
[0023] In a preferred embodiment, the data acquisition module includes a data capture unit, a format conversion unit and a knowledge matching unit. The data capture unit is used to capture the user's query information, wherein the query information includes voice data, text data and action data. The format conversion unit is used to convert the captured query information into a data format consistent with the knowledge graph. The knowledge matching unit is used to match the query information after format conversion with the knowledge graph, and output response information corresponding to the query information in the knowledge graph.
[0024] As mentioned above, the data acquisition module includes a data capture unit, a format conversion unit and a knowledge matching unit. The data capture unit is mainly responsible for capturing the user's query information. In this process, multiple types of data need to be processed, including voice data, text data and action data. After the data capture unit, the format conversion unit converts the captured query information into a data format consistent with the knowledge graph to ensure that the query information can be correctly parsed and matched in the knowledge graph. Therefore, different types of data need to be accurately converted to meet the requirements of the knowledge graph for data format. The knowledge matching unit is responsible for in-depth matching of the query information after format conversion with the knowledge graph to find out which information in the knowledge graph corresponds to the query information. Once the match is successful, the knowledge matching unit will output the response information in the knowledge graph corresponding to the query information, and provide the user with the required data and answers.
[0025] In a preferred embodiment, when the knowledge matching unit is executed, feature extraction is performed on the query information to obtain key features and non-key features, and then the key features and non-key features are compared with the knowledge nodes in the knowledge graph, and the associated nodes associated with the query information are output according to the comparison result; Collect the connection relationship between all related nodes, and output the response path of the query information based on the connection relationship.
[0026] In this implementation, during the execution of the knowledge matching unit, a corresponding feature extraction operation is performed on the received query information, and key features and non-key features are simultaneously identified and screened out, wherein key features are information that is crucial to answering the question, while non-key features are information that has a certain auxiliary role in answering the question. For example, in a sentence of text information, keywords or key phrases may constitute key features, while some modifiers or auxiliary descriptions may constitute non-key features. After completing the feature extraction, the key features and non-key features are carefully compared and matched with the numerous knowledge nodes in the knowledge graph to find the associated nodes related to the query information. Subsequently, the connection relationships between all these associated nodes are collected. These connection relationships reflect the interactions and connections between different entities or concepts. Based on these connection relationships, the knowledge matching unit will output the response path of the query information, and an answer that matches the query information can be obtained through the response path, thereby meeting the needs of the user.
[0027] In a preferred embodiment, after the key features and non-key features are output, the key features and non-key features are mapped into numerical vectors and recorded as primary feature parameters and secondary feature parameters respectively; An evaluation function is preset in the knowledge matching unit, and the evaluation function is used to calculate the similarity between the primary feature parameter, the secondary feature parameter and the knowledge node, and record it as an evaluation score; The knowledge matching unit also presets an evaluation threshold, which is used to compare with the evaluation score; If the evaluation score is higher than or equal to the evaluation threshold, it indicates that the knowledge node is associated with the query information, and the knowledge node is recorded as an associated node, and the response information is output according to the associated node; If the evaluation score is lower than the evaluation threshold, it indicates that the knowledge node is not related to the query information and the knowledge node is ignored; If the evaluation scores of all knowledge nodes are lower than the evaluation threshold, a prompt message for re-questioning is sent to the user.
[0028] In this implementation, after the key features and non-key features are output, the key features and non-key features need to be firstly converted, that is, converted into numerical vectors, for further quantitative analysis. The key features are recorded as primary feature parameters, and the non-key features are recorded as secondary feature parameters. In the knowledge matching unit, an evaluation function is pre-set. The function of the evaluation function is to calculate the similarity between the primary feature parameters and the secondary feature parameters and each knowledge node, wherein a corresponding benchmark feature vector is also preset under each knowledge node, and the similarity calculation result is recorded as an evaluation score, wherein the expression of the evaluation function is: , where Indicates the evaluation score. and Represents the weight factor of the primary and secondary feature parameters, and > , Represents the number of features of the primary feature parameters, secondary feature parameters, and baseline feature vectors, represents the first-level characteristic parameter, represents the base eigenvector, Represents the secondary feature parameter. In addition, an evaluation threshold is set in the knowledge matching unit. The evaluation threshold is used to compare with the evaluation score. When the evaluation score is higher than or equal to this threshold, it is considered that the knowledge node has a certain correlation with the query information. At this time, the knowledge node will be recorded as an associated node, and the response information will be output based on this associated node. On the contrary, if the evaluation score is lower than the evaluation threshold, it is considered that there is no correlation between the knowledge node and the query information. At this time, the knowledge node will be ignored and will not be used as the basis for outputting the response information. It should be clear that if the evaluation scores of all knowledge nodes are lower than the evaluation threshold, this means that the current query information has no matching knowledge nodes. At this time, the system will send a prompt message to the user to re-ask so that the user can provide more accurate information and get a more satisfactory answer.
[0029] In a preferred embodiment, the connection relationship between the associated nodes includes an independent relationship and a subordinate relationship; The response path between the associated nodes in an independent relationship is greater than 1, or equal to 0, and the response path between the associated nodes in a subordinate relationship is 1; Among them, when there is a subordinate relationship between associated nodes, the knowledge matching unit will directly output the data under the associated nodes under the subordinate relationship as response information. When there is an independent relationship between associated nodes, the knowledge matching unit will output the data under each associated node as response information.
[0030] In this embodiment, after the associated nodes related to the query information are output, the connection relationship between each associated node will be further determined. This embodiment classifies the connection relationship into an independent relationship and a subordinate relationship. The independent relationship represents that there is no connection between the knowledge data of the two associated nodes, or there is an indirect connection between the two associated nodes, while the subordinate relationship represents that there is a direct connection between the two associated nodes, and one associated node is a subset or a specific part of another associated node. This classification method helps to more accurately understand the relationship between the associated nodes and generate more reasonable response information accordingly. When there is a subordinate relationship between the associated nodes, it means that the information between the two nodes is closely related, and one node is the specific details or specific aspects of the other node. In this case, the knowledge matching unit will directly output the knowledge data under the subordinate associated nodes under the subordinate relationship as the response information, which can ensure that the user gets the most direct and relevant answer. When there is an independent relationship between the associated nodes, the situation is different. At this time, it is determined that the knowledge data between the two associated nodes is independent, or there is only an indirect connection. In this case, the knowledge matching unit will output the knowledge data under each associated node as the response information to facilitate the user's subsequent selection, thereby improving the intelligence and practicality of the system, so that the user can more easily obtain the required knowledge and data.
[0031] In a preferred embodiment, the interactive evaluation module includes a confidence calculation unit and a response screening unit, the confidence calculation unit is used to construct an evaluation period, and collect the number of clicks and browsing time of the response information under the inquiry information within the evaluation period, and mark the number of clicks as the first condition parameter, and mark the browsing time as the second condition parameter; The confidence calculation unit is provided with a confidence calculation function, and the confidence calculation function is used to calculate the confidence score of the response information according to the first condition parameter and the second condition parameter; A screening threshold is preset in the response screening unit. After the confidence score is output, it is output to the response screening unit to be compared with the screening threshold, and the confidence score higher than or equal to the screening threshold is screened out, and the response information is marked as candidate response information. The candidate response information with the largest confidence score is then marked as the preferred response information, and the remaining candidate response information is marked as alternative response information.
[0032] In this implementation, the interactive evaluation module includes a confidence calculation unit and an answer screening unit, wherein the confidence calculation unit is used to establish an evaluation period and to collect data within the evaluation period. Specifically, it collects the number of clicks and browsing time of the answer information corresponding to each inquiry information within the evaluation period, and uses the number of clicks as the first condition parameter and the browsing time as the second condition parameter. Inside the confidence calculation unit, a confidence measurement function for calculating the confidence score is preset. The confidence measurement function calculates the confidence score of the answer information based on the first condition parameter and the second condition parameter, wherein the expression of the confidence measurement function is: , where represents the confidence score, and Represent the weight coefficients of the first condition parameter and the second condition parameter respectively, and They represent the first condition parameter and the second condition parameter respectively. A screening threshold is preset inside the answer screening unit. The purpose of setting the screening threshold is to screen out high-quality answer information. When the confidence score is output, it will be passed to the answer screening unit and compared with the preset screening threshold. If the confidence score is higher than or equal to the screening threshold, then the answer information will be marked as candidate answer information. In this process, the candidate answer information with the largest confidence score will be found and marked as the preferred answer information. As for other candidate answer information, they will be regarded as alternative answer information. In this way, the interactive evaluation module can effectively screen out high-quality answer information and improve the evaluation accuracy.
[0033] In a preferred embodiment, the user feedback module includes a feedback collection unit and a feedback processing unit, wherein the feedback collection unit is used to capture the user's feedback satisfaction during the interaction process in real time and quantify it into a satisfaction score; The feedback processing unit summarizes the satisfaction score and the confidence score, and outputs the summary result as an updated score, and arranges the updated scores in order from large to small, and records the response information with the largest updated score value as the preferred response information, and records the remaining response information as the alternative response information.
[0034] In this implementation, the user feedback module is mainly divided into two parts, a feedback collection unit and a feedback processing unit. The function of the feedback collection unit is to monitor and capture the satisfaction feedback of the user in the process of interacting with the system in real time, and then quantify these feedbacks and convert them into specific satisfaction scores. Specifically, a scoring system can be used to quantify user satisfaction. The feedback processing unit is responsible for summarizing and processing the collected satisfaction scores and confidence scores to generate an update score. Specifically, the satisfaction score can be added to the confidence score to achieve this. In this way, it can not only reflect the user's satisfaction with the interaction, but also reflect the user's trust in the system's response. After completing the summary processing, the feedback processing unit will output these results for subsequent use. These results will be arranged in order from large to small according to the update score. In this sorting process, the response information with the highest update score will be identified as the preferred response information, and as for other response information with lower update scores, they will be classified as alternative response information. Although these response information are not as popular as the preferred response information, they will still meet the needs of some users, thereby avoiding ignoring other answers that may be equally effective due to over-reliance on a certain response information.
[0035] In a preferred embodiment, the knowledge update module includes a knowledge update processing unit and an effect evaluation unit. The knowledge update processing unit amends, supplements or deletes the knowledge nodes and relationships in the knowledge graph according to the user feedback content, compares the updated knowledge graph with the original knowledge graph, outputs the updated content, and feeds back the updated content to the administrator for review; The effect evaluation unit is used to collect the user's satisfaction score after using the updated knowledge graph, and compare the collected satisfaction score with the satisfaction score before the update; If the satisfaction score after the update is higher than or equal to the satisfaction score before the update, it means that the knowledge update is effective, and the updated knowledge graph is used as the new benchmark knowledge graph; If the satisfaction score after the update is lower than the satisfaction score before the update, it means that the knowledge update is invalid, and the knowledge graph is rolled back to the state before the update.
[0036] In this implementation, the knowledge update module mainly includes two parts, namely a knowledge update processing unit and an effect evaluation unit. The knowledge update processing unit mainly makes necessary corrections, supplements or deletions to the knowledge nodes and relationships in the knowledge graph based on the content of user feedback to ensure the accuracy and timeliness of the knowledge graph. That is, if the user feedback mentions that a certain knowledge node is wrong, the knowledge update processing unit will correct the node; if the user feedback mentions that a certain knowledge node is missing, the knowledge update processing unit will supplement the node; if the user feedback mentions that a certain knowledge node or relationship is outdated, the knowledge update processing unit will delete the node or relationship. After completing the above operations, the knowledge update processing unit will compare the updated knowledge graph with the original knowledge graph and output the results. The updated content is output and fed back to the administrator for review to ensure the rationality and accuracy of the updated content. The role of the effect evaluation unit is to collect the user's satisfaction scores when using the updated knowledge graph, and compare these scores with the satisfaction scores before the update. If the satisfaction score after the update is higher than or equal to the satisfaction score before the update, then the knowledge update is considered to be valid. At this time, the effect evaluation unit will use the updated knowledge graph as the new baseline knowledge graph so that subsequent knowledge updates can be carried out on this basis. However, if the satisfaction score after the update is lower than the satisfaction score before the update, then the knowledge update is considered to be invalid. In this case, the effect evaluation unit will roll back the knowledge graph to the state before the update to avoid adverse effects on users due to improper updates.
[0037] See also Figure 3 , an electronic device, the electronic device comprising: at least one processor; and a memory communicatively coupled to the at least one processor; Among them, the memory stores a computer program that can be executed by at least one processor, and the computer program is executed by at least one processor so that the at least one processor can execute the above-mentioned digital human interaction system based on knowledge graph and large model.
[0038] The processor of the above electronic device can be a central processing unit (CPU), a graphics processing unit (GPU), a field programmable gate array (FPGA), a digital signal processor (DSP) or any other device suitable for executing computer program instructions. These processors can execute various algorithms when processing complex computing tasks, including but not limited to semantic analysis, feature extraction, vector calculation, confidence calculation, etc. In addition, the memory is a component used to store data and computer programs in electronic devices. It can be a random access memory (RAM), a read-only memory (ROM), a flash memory or any other medium that can store computer program instructions and data. When the computer program stored in the memory is executed, it can guide the processor to complete the knowledge graph. The electronic device can also include various input and output devices, such as a touch screen, keyboard, mouse, display, speaker, etc., to provide an interface for users to interact with the digital human. Through these devices, users can send inquiries to the digital human and obtain corresponding responses, as well as an operator. The operator can be an arithmetic logic unit (ALU) for performing various arithmetic and logical operations, such as addition, subtraction, multiplication, division, etc., as well as comparison, bit operation and other operations. In the digital human interaction system, the operator can be used to process the parsing results of user inquiries, perform tasks such as feature vector calculation and similarity calculation, and provide corresponding support for knowledge matching and answer generation.
[0039] In addition, the electronic device can also be connected to the Internet or other networks through a network interface to obtain more knowledge and data, so as to continuously update and improve its own knowledge graph. At the same time, it can also send user feedback data and satisfaction ratings and other information to cloud servers or other remote devices for analysis and processing.
[0040] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.
[0041] The above is only a preferred embodiment of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention. The structures, devices and operating methods not specifically described and explained in the present invention shall be implemented according to the conventional means in the art unless otherwise specified and limited.
Claims
1. A digital human interaction system based on knowledge graph and large model, including a knowledge graph construction module, a data collection module, an interaction evaluation module, a user feedback module and a knowledge update module, characterized in that: The knowledge graph construction module is used to collect and integrate knowledge data from multiple sources and convert the knowledge data into a structured knowledge graph; The data collection module is used to collect the user's input data in real time, and convert the input data into a data format that matches the knowledge graph, and then output response information based on the knowledge graph; The interactive evaluation module is used to obtain the confidence score of each of the response information in real time, screen the response information according to the confidence score, and output preferred response information and alternative response information; The user feedback module is used to receive user feedback satisfaction on the preferred answer information and the alternative answer information, and re-output the preferred answer information and the alternative answer information according to the feedback satisfaction; The knowledge updating module is used to collect user feedback content, update the knowledge graph according to the user feedback content, and reintegrate the updated knowledge graph.
2. According to claim 1, a digital human interaction system based on knowledge graph and large model is characterized by: The knowledge graph construction module includes a knowledge preprocessing unit and a graph structure construction unit. The knowledge preprocessing unit is used to collect original knowledge data from multiple sources, and clean, deduplicate and convert the format of the original knowledge data to obtain preliminary benchmark data with a unified format. The graph structure construction unit is used to perform semantic analysis on the preliminary benchmark data to construct a knowledge graph with a hierarchical structure and semantic relationships.
3. According to claim 1, a digital human interaction system based on knowledge graph and large model is characterized by: The data acquisition module includes a data capture unit, a format conversion unit and a knowledge matching unit. The data capture unit is used to capture the user's query information, wherein the query information includes voice data, text data and action data. The format conversion unit is used to convert the captured query information into a data format consistent with the knowledge graph. The knowledge matching unit is used to match the query information after format conversion with the knowledge graph, and output response information corresponding to the query information in the knowledge graph.
4. A digital human interaction system based on knowledge graph and large model according to claim 3, characterized in that: When the knowledge matching unit is executed, feature extraction is performed on the query information to obtain key features and non-key features, and then the key features and non-key features are compared with knowledge nodes in the knowledge graph, and the associated nodes associated with the query information are output according to the comparison result; The connection relationships between all the associated nodes are collected, and a response path of the query information is output according to the connection relationships.
5. According to claim 4, a digital human interaction system based on knowledge graph and large model is characterized in that: After the key features and non-key features are output, the key features and non-key features are mapped into numerical vectors and recorded as primary feature parameters and secondary feature parameters respectively; An evaluation function is preset in the knowledge matching unit, and the evaluation function is used to calculate the similarity between the primary feature parameter, the secondary feature parameter and the knowledge node, and record it as an evaluation score; The knowledge matching unit also has an evaluation threshold preset therein, and the evaluation threshold is used for comparison with the evaluation score; If the evaluation score is higher than or equal to the evaluation threshold, it indicates that the knowledge node is associated with the query information, and the knowledge node is recorded as an associated node, and response information is output according to the associated node; If the evaluation score is lower than the evaluation threshold, it indicates that the knowledge node is not associated with the query information, and the knowledge node is ignored; If the evaluation scores of all the knowledge nodes are lower than the evaluation threshold, a prompt message for re-questioning is sent to the user.
6. A digital human interaction system based on knowledge graph and large model according to claim 4, characterized in that: The connection relationship between the associated nodes includes an independent relationship and a subordinate relationship; The response path between the associated nodes under the independent relationship is greater than 1, or equal to 0, and the response path between the associated nodes under the subordinate relationship is 1; Among them, when there is a subordinate relationship between the associated nodes, the knowledge matching unit will directly output the data under the associated nodes under the subordinate relationship as response information, and when there is an independent relationship between the associated nodes, the knowledge matching unit will output the data under each associated node as response information.
7. The digital human interaction system based on knowledge graph and large model according to claim 1, characterized in that: The interactive evaluation module includes a confidence calculation unit and a response screening unit. The confidence calculation unit is used to construct an evaluation period, and collect the number of clicks and browsing time of the response information under the inquiry information within the evaluation period, and mark the number of clicks as the first condition parameter and the browsing time as the second condition parameter; The confidence calculation unit is provided with a confidence calculation function, and the confidence calculation function is used to calculate the confidence score of the response information according to the first condition parameter and the second condition parameter; A screening threshold is preset in the response screening unit. After the confidence score is output, it is output to the response screening unit for comparison with the screening threshold, and confidence scores higher than or equal to the screening threshold are screened out, and the response information is marked as candidate response information, and then the candidate response information with the largest confidence score value is marked as preferred response information, and the remaining candidate response information is marked as alternative response information.
8. The digital human interaction system based on knowledge graph and large model according to claim 1, characterized in that: The user feedback module includes a feedback collection unit and a feedback processing unit. The feedback collection unit is used to capture the user's feedback satisfaction during the interaction process in real time and quantify it into a satisfaction score; The feedback processing unit summarizes the satisfaction score and the confidence score, and outputs the summary result as an updated score, and arranges the updated scores in order from large to small, and records the response information with the largest updated score value as the preferred response information, and records the remaining response information as the alternative response information.
9. The digital human interaction system based on knowledge graph and large model according to claim 1, characterized in that: The knowledge update module includes a knowledge update processing unit and an effect evaluation unit. The knowledge update processing unit amends, supplements or deletes knowledge nodes and relationships in the knowledge graph according to user feedback, compares the updated knowledge graph with the original knowledge graph, outputs updated content, and feeds back the updated content to the administrator for review; The effect evaluation unit is used to collect user satisfaction scores after using the updated knowledge graph, and compare the collected satisfaction scores with the satisfaction scores before the update; If the satisfaction score after the update is higher than or equal to the satisfaction score before the update, it means that the knowledge update is effective, and the updated knowledge graph is used as the new benchmark knowledge graph; If the satisfaction score after the update is lower than the satisfaction score before the update, it means that the knowledge update is invalid, and the knowledge graph is rolled back to the state before the update.
10. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively coupled to the at least one processor; In which, the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the digital human interaction system based on the knowledge graph and the large model as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Method and device for combining entities in knowledge map
CN104484459A
Interaction method and device based on knowledge graph, terminal and storage medium
CN113204626A
Multi-engine intelligent question answering system for multi-type knowledge base
CN115238101A
Cited By
Legal consultation report generation system and method based on legal knowledge graph
CN119514657A
Method for establishing knowledge database based on language model
CN119990291A
