A method, system, device and medium for answering common questions

By obtaining the triplet information of the query text in the intelligent question and answer system, and combining the similarity matching of the knowledge base and the knowledge graph, the problems of low question and answer response efficiency and poor user experience in the intelligent question and answer system are solved, achieving more accuracy and diversity. Sexual Q&A responses.

CN115098655BActive Publication Date: 2024-09-17CHONGQING CHANGAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210730058.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-24
Publication Date
2024-09-17
Estimated Expiration
2042-06-24

AI Technical Summary

Technical Problem

The existing intelligent question answering system has low question and answer response efficiency and poor user experience. It is limited by the definition of question and answer pairs in the knowledge base, and the way users ask questions is limited, and cannot effectively handle the diversity and complexity of similar questions.

Method used

By obtaining the triplet information of the query text, and combining the preset knowledge base and knowledge graph to perform similarity matching, determine the similarity range, output the reply text in the knowledge base or knowledge graph, and use the similarity threshold for comparison to improve question answering. Response accuracy and user experience.

Benefits of technology

It improves the accuracy and user experience of question and answer responses, can better handle the diversity and complexity of users' problems, and provides more accurate answers and map relationships.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115098655B
    Figure CN115098655B
Patent Text Reader

Abstract

The present application proposes a method, system, device and medium for answering frequently asked questions, including: obtaining an inquiry text and triple information of the inquiry text; determining a first similarity range between the inquiry text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs; performing a first comparison between the triple information and the corresponding nodes in a preset knowledge graph to determine a second similarity range between the inquiry text and the nodes in the knowledge graph; performing a second comparison between the first similarity range and the second similarity range and a preset similarity range threshold to determine the output of the corresponding answer text in the knowledge base or the knowledge graph. The present application can greatly improve the output accuracy of question-answer interaction and enhance user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence, and in particular to a method, system, device and medium for answering frequently asked questions. Background Art

[0002] Currently, intelligent question-answering mostly adopts the form of knowledge base question-answering, which requires defining the question-answer pair in advance, storing the entities in the question in the database in the form of inverted index for retrieval, and finally searching based on the entities extracted from the user's question and matching the retrieved question with the user's question for similarity, and returning the matched answer. This type of question-answering method is limited by the definition of the question-answer pair, and the user's questioning method will also have certain limitations, which in turn affects the user experience.

[0003] Application Contents

[0004] In view of the above problems existing in the prior art, the present application proposes a method, system, device and medium for answering frequently asked questions, which mainly solves the problems of low efficiency of question and answer response and poor user experience in the existing question and answer method.

[0005] In order to achieve the above-mentioned purpose and other purposes, the technical solution adopted in this application is as follows.

[0006] This application provides a method to answer frequently asked questions, including:

[0007] Obtaining a query text and triple information of the query text;

[0008] Determining a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs;

[0009] Perform a first comparison between the triple information and a corresponding node in a preset knowledge graph to determine a second similarity range between the query text and the node in the knowledge graph;

[0010] A second comparison is performed between the first similarity range, the second similarity range and a preset similarity range threshold to determine and output a corresponding reply text in the knowledge base or the knowledge graph.

[0011] In one embodiment of the present application, determining a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base includes:

[0012] Comparing the query text with the standard questions in the knowledge base to obtain similarity values ​​of the standard questions;

[0013] The similarity value is used as the similarity value of the standard answer text corresponding to the standard question sentence, and the first similarity range is determined according to the maximum value of the similarity value.

[0014] In one embodiment of the present application, performing a first comparison between the triple information and a corresponding node in a preset knowledge graph to determine a second similarity range between the query text and the node in the knowledge graph includes:

[0015] constructing a first triple according to entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more;

[0016] Constructing a second triple according to entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more;

[0017] Compare the first triple and the second triple with the nodes in the knowledge graph respectively to obtain the similarity between each triple and the corresponding matching node;

[0018] The similarity is weighted according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph;

[0019] The second similarity range is determined according to the maximum value of the similarity between each entity information and the knowledge graph.

[0020] In one embodiment of the present application, the first triple and the second triple are respectively compared with the nodes in the knowledge graph to obtain the similarity between each triple and the corresponding matching node, including:

[0021] Obtaining entity information in the first triple, comparing the entity information with the nodes in the knowledge graph, and obtaining one or more first matching nodes that reach a preset similarity as matching nodes of the first triple;

[0022] Obtaining adjacent nodes of each of the first matching nodes, removing adjacent nodes with connection relationships, and forming the remaining adjacent nodes into an adjacent set;

[0023] The attribute values ​​in the second triplet are compared with the nodes in the adjacent set for similarity, and one or more second matching nodes reaching a preset similarity are obtained as matching nodes of the second triplet.

[0024] In one embodiment of the present application, the similarity is weighted according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph, including:

[0025] Preset the weight ratio of matching entities and the weight ratio of matching attribute values, and use the weight ratio as the node matching weight of the corresponding knowledge graph node;

[0026] The similarity between the corresponding entity information and the knowledge graph is obtained by multiplying the similarity values ​​of the matching nodes corresponding to the same entity information in the first triplet and the second triplet by the corresponding matching weight.

[0027] In one embodiment of the present application, performing a second comparison between the first similarity range, the second similarity range and a preset similarity range threshold to determine outputting a corresponding reply text in the knowledge base or the knowledge graph includes:

[0028] The preset similarity range includes a first preset range, a second preset range and a third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range;

[0029] If the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is used as output;

[0030] If the intersection of the first similarity range and the second similarity range with the first preset range is an empty set, and both have an intersection with the second preset range, then obtain the standard reply texts in the knowledge base and sort them from high to low according to similarity, and take the multiple standard reply texts ranked first as output, and obtain the reply text corresponding to the matching node in the knowledge graph as output;

[0031] If the intersections of the first similarity range and the second similarity range with the first preset range and the second preset range are both empty sets, and both have intersections with the third preset range, then the multiple standard reply texts ranked first in the knowledge base are taken as output, and the node relationship in the knowledge graph is obtained as the reply text output.

[0032] In an embodiment of the present application, performing a second comparison on the first similarity range, the second similarity range and a preset similarity range threshold to determine outputting a corresponding reply text in the knowledge base or the knowledge graph further includes:

[0033] When the first similarity range and the second similarity range are both lower than the preset similarity range threshold, an idle dialogue is started to obtain the general question and answer text in the knowledge base.

[0034] In an embodiment of the present application, after the idle session is started, the method further includes:

[0035] Acquire text data of user feedback in the idle conversation;

[0036] Compare the text data with the nodes in the knowledge graph to obtain one or more associated nodes;

[0037] A first question is generated according to the associated node and outputted to the user terminal to guide the user to complete the question-answering interaction.

[0038] In one embodiment of the present application, generating a first question sentence according to the associated node and outputting it to the user terminal to guide the user to complete the question-answering interaction includes:

[0039] Acquire the adjacent nodes of the associated node from the knowledge graph, and generate the first question according to the connection relationship between the associated node and the corresponding adjacent nodes;

[0040] Acquire one or more standard questions matching the first question in the knowledge base;

[0041] The first question and the matching standard question are output to the user end.

[0042] The present application also provides a frequently asked questions answering system, which is characterized by comprising:

[0043] An inquiry interaction module, used to obtain an inquiry text and triple information of the inquiry text;

[0044] A knowledge base retrieval module, used to determine a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs;

[0045] A knowledge graph retrieval module, used for performing a first comparison between the triple information and a corresponding node in a preset knowledge graph, and determining a second similarity range between the query text and the node in the knowledge graph;

[0046] A decision output module is used to perform a second comparison between the first similarity range, the second similarity range and a preset similarity range threshold to determine and output a corresponding reply text in the knowledge base or the knowledge graph.

[0047] A computer device comprises: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the frequently asked questions answering method when executing the computer program.

[0048] A computer-readable storage medium stores a computer program, which implements the steps of the FAQ system method when executed by a processor.

[0049] As described above, the present application provides a method, system, device and medium for answering common questions, which have the following beneficial effects:

[0050] The present application obtains the query text and triple information of the query text; determines the first similarity range between the query text and each standard answer text in the knowledge base according to the similarity matching threshold of the preset standard question in the preset knowledge base, wherein the knowledge base is composed of standard question and answer pairs; performs a first comparison between the triple information and the corresponding nodes in the preset knowledge graph to determine the second similarity range between the query text and the nodes in the knowledge graph; performs a second comparison between the first similarity range and the second similarity range and the preset similarity range threshold to determine the output of the corresponding answer text in the knowledge base or the knowledge graph. The present application combines the knowledge base and the knowledge graph for decision output, which can improve the accuracy of question and answer responses and thus improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 Schematic diagram of the structure of a frequently asked questions answering device in one embodiment of the present application.

[0052] Figure 2 This is a flowchart of an implementation scenario of frequently asked questions in one embodiment of the present application.

[0053] Figure 3 Schematic diagram of a process for answering frequently asked questions in one embodiment of the present application.

[0054] Figure 4 Schematic diagram of the knowledge base and knowledge graph threshold range division in one embodiment of the present application.

[0055] Figure 5 This is a module diagram of a frequently asked questions answering system in one embodiment of the present application.

[0056] Figure 6 It is a schematic diagram of the structure of a device in one embodiment of the present application. DETAILED DESCRIPTION

[0057] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0058] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application, and thus the drawings only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed at will, and the component layout may also be more complicated.

[0059] Currently, most Q&A methods use the form of knowledge base Q&A, which searches and matches defined Q&A pairs and returns matching results. This type of Q&A method has the following problems:

[0060] 1. The knowledge base needs to include all user questions to achieve better results, and the sentence length cannot be too long, otherwise it will affect the matching results when calculating sentence similarity, and the requirements for question and answer pairs are relatively high;

[0061] 2. The questioning methods in the knowledge base are limited. For example, for the same type of questions, "What should I do if the engine breaks down?", "What should I do if the wiper breaks down?", "What should I do if the tire breaks down?", etc., the corresponding fault questions for each part of the car need to be listed one by one in the knowledge base, which is very inefficient.

[0062] The present application proposes the following embodiments to solve the above-mentioned problems of the prior art.

[0063] See also Figure 1 , Figure 1 A schematic diagram of the structure of a frequently asked questions answering device 100 in an embodiment of the present application is provided. Only two terminals 410-1 and terminal 410-2 are shown in the figure, and multiple terminals may also be included, each of which is connected to the server 200 via a network 300. Taking the terminal 410-1 and the terminal 410-2 as an example, a visitor can choose to enter an inquiry text in any one of the terminals 410-1 and 410-2, and transmit the inquiry text to the server 200 via the network 300. The database 500 can be used to store a knowledge base and a knowledge graph. After receiving the inquiry text, the server 200 calls the knowledge base and the knowledge graph in the database 500 to perform question retrieval and result decision output. The terminal 410-1 and the terminal 410-2 may include a terminal device with a display interactive interface such as a computer, a mobile phone, a tablet, a question-and-answer robot, etc. The network 300 can be a wide area network or a local area network, or a combination of the two.

[0064] In another embodiment, the server 200 may also output the knowledge base and knowledge graph in the database 500 to the terminal according to the request of the terminal 410 - 1 , and the terminal performs retrieval decision output.

[0065] In one embodiment, the server 200 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal and the server may be directly or indirectly connected via wired or wireless communication, which is not limited in the embodiments of the present application.

[0066] In one embodiment, terminal 410-1 may also be directly connected to terminal 410-2. Terminal 410-1 is used to obtain the visitor's inquiry text and output the inquiry text to terminal 410-2 for text retrieval to obtain the reply text. Terminal 410-2 is used to create a standard question-answer pair and save the standard question-answer pair in a knowledge base. Terminal 410-2 may also be used to create a knowledge graph and save the knowledge graph locally.

[0067] In another embodiment, operations such as knowledge base creation, knowledge graph construction, and receiving visitor input for retrieval can also be completed on terminal 410-1 or terminal 410-2. All functions are integrated into one terminal, and the user only needs to interact with one terminal to quickly obtain response data.

[0068] See also Figure 2 , Figure 2 This is a schematic diagram of an implementation scenario in an embodiment of the present application. Visitors can interact with the terminal through the chat page provided by the terminal. After the visitor enters the question to be consulted, the central control engine of the terminal is triggered to feed back the visitor's question to the knowledge base through the interface for retrieval and comparison. The knowledge field contained in the knowledge base can be set according to the actual application needs. Here, the knowledge base of automobile failure is taken as an example. The visitor enters "What should I do if the car engine sound is abnormal" through the chat interface. The central control engine calls the data in the automobile failure knowledge base to query the problem. The knowledge base returns the query results to the central control engine. Similarly, the central control engine also transmits the visitor's input question to the knowledge graph through the interface for retrieval and analysis, and obtains the query results fed back by the knowledge graph. The central control engine arbitrates based on the query results of the knowledge base and the knowledge graph, and determines whether the answer to the question output from the knowledge base is more accurate or the answer output from the knowledge graph is more accurate, and then feeds back the arbitration result to the visitor.

[0069] See also Figure 3 The present application proposes a frequently asked questions answering method to be applied to the aforementioned frequently asked questions answering device and real-time scenarios, and the method includes the following steps.

[0070] Step S101, obtaining a query text and triple information of the query text.

[0071] The user can enter the query text through the interactive interface provided by the terminal, or collect the user's voice through a voice collection device, etc., and convert the voice into the corresponding query text. At the same time, the entity, entity relationship, attribute and other information in the query text are extracted to construct triples.

[0072] Step S102, determining a first similarity range between the inquiry text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs.

[0073] In one embodiment, the step S102 determines the first similarity range between the query text and each standard answer text in the knowledge base according to the similarity matching threshold of the preset standard question in the preset knowledge base, and further includes the following steps:

[0074] Step S1021, performing a similarity comparison between the query text and the standard questions in the knowledge base to obtain a similarity value of each standard question;

[0075] Step S1022: taking the similarity value as the similarity value of the standard answer text corresponding to the standard question, and determining the first similarity range according to the maximum value of the similarity value.

[0076] The question-answering system first needs to build a comprehensive question-answer pair dataset, and then use similarity matching to match questions. Based on the visitor's question obtained by the question-answering system, several standard questions that may be similar to the visitor's question are retrieved from the knowledge base. These standard questions are called candidate similar questions; then the similarity between the visitor's question and each standard question is calculated to determine whether the question is a synonym of the visitor's question. If it is a synonym, the answer to the synonym is the answer to the visitor's question. At this point, the system will return this question-answer pair to the visitor as an answer.

[0077] However, it is worth noting that no matter how good the candidate similar questions recalled by the retrieval module are, the similar standard question selection module will find a standard question with the "highest" similarity for the visitor's question. However, this "most similar" standard question is sometimes not necessarily a similar question to the visitor's question. To avoid this, a threshold can be configured for text similarity, and then there are three situations based on the matching results:

[0078] ① If the matching degree is high with a question in the knowledge base, the answer to the question will be returned directly;

[0079] ② If the matching degree with multiple questions in the knowledge base exceeds a certain threshold, the top N questions are returned, and the user can choose the most accurate question;

[0080] ③ If the similarity of all questions in the knowledge base does not exceed the threshold, it will be converted into a chat robot.

[0081] In order to facilitate comparison with the threshold, it is necessary to first obtain the similarity value between the query text and the standard question in the knowledge base according to steps S1021 and S1022, and select the maximum similarity value as the upper limit of the first similarity range. For example, if the maximum similarity between the standard question in the knowledge base and the query text is 0.85, the first similarity range can be set to 0 to 0.85.

[0082] Step S103: perform a first comparison between the triple information and the corresponding nodes in a preset knowledge graph to determine a second similarity range between the query text and the nodes in the knowledge graph.

[0083] The knowledge graph of the corresponding field can be pre-built. The advantage of the knowledge graph is that it is universal for the same type of questions. Under the same type of questions, it can be directly parsed into the pattern of graph data query statements. For example, similar questions are: "What should I do if the engine is broken?", "What should I do if the wiper is broken?", "What should I do if the tire is broken?" The aforementioned similar questions can be represented by the knowledge graph as: "Fault + Engine", "Fault + Wiper", "Fault + Tire", and the answer of the knowledge graph can be directly returned. Taking the automotive field as an example, when building a knowledge graph, documents such as driving manuals can be directly input into the system. Through system parsing, information can be extracted from unstructured, semi-structured and structured data. It is necessary to extract entities, attributes and relationships between entities from various data sources, and form ontological knowledge expressions based on this; for many entities obtained in information extraction, they are discrete, redundant or even partially wrong, and knowledge fusion is required to eliminate redundant errors and perform entity association. It mainly includes entity linking and knowledge merging. Entity linking refers to the operation of correctly linking newly extracted entity objects to existing entity objects. The above-mentioned process of information extraction and knowledge fusion only processes factual data. In order to obtain usable knowledge expressed in a structured network, knowledge processing must be performed. Knowledge processing mainly includes three aspects: ontology construction, knowledge reasoning, and quality assessment. Connections between entity nodes are established based on entity information and the relationship between entities. Similarly, connections between entity nodes and attributes are established based on entities, attributes, and corresponding attribute values. Attributes may include date, number of repairs, service life, etc. Attribute values ​​may be specific dates, specific number of repairs such as 2 times, specific service life such as 3 years, etc. After completing the construction of the knowledge graph, the knowledge graph is stored in the database.

[0084] In one embodiment, step S103 further includes the following steps:

[0085] Step S1031, constructing a first triple according to entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more;

[0086] Step S1032, constructing a second triple according to entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more;

[0087] Step S1033, comparing the first triple and the second triple with the nodes in the knowledge graph respectively, and obtaining the similarity between each triple and the corresponding matching node;

[0088] Step S1034, weighting the similarity according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph;

[0089] Step S1035: determine the second similarity range according to the maximum value of the similarity between each entity information and the knowledge graph.

[0090] In one embodiment, after obtaining the query text input by the visitor, the triple information contained in the query text can be further extracted. Since the query text may contain more than one query statement or a query statement may contain multiple entities at the same time, the entire query text can be represented by triples. Specifically, the entity and the attribute can be split, and the relationship between the two entities can be represented by the first triple, and the relationship between the entity and the attribute can be represented by the second triple. The corresponding nodes are matched from the knowledge graph through the first triple and the second triple, and the similarity value between the node in the knowledge graph and the first triple or the second triple is recorded.

[0091] In one embodiment, step S1033 compares the first triple and the second triple with the nodes in the knowledge graph respectively to obtain the similarity between each triple and the corresponding matching node, including the following steps:

[0092] Step S10331, obtaining entity information in the first triple, comparing the entity information with the nodes in the knowledge graph, and obtaining one or more first matching nodes that reach a preset similarity as matching nodes of the first triple;

[0093] Step S10332, obtaining adjacent nodes of each of the first matching nodes, removing adjacent nodes with connection relationships, and forming an adjacent set with the remaining adjacent nodes;

[0094] Step S10333: perform a similarity comparison between the attribute value in the second triple and the nodes in the adjacent set, and obtain one or more second matching nodes that reach a preset similarity as matching nodes of the second triple.

[0095] An entity set can be constructed based on the entity information in the query text. The entity information in the entity set is used as a unit, and a similarity comparison is performed in advance with the entity nodes in the knowledge graph, and the entity nodes that reach the preset similarity threshold are obtained as the first matching nodes of the entity set, that is, the matching nodes of each first triple. Further, the adjacent nodes of each first matching node in the knowledge graph can be obtained, and an adjacent set is established based on the adjacent nodes. Since the first matching nodes may be adjacent nodes to each other, that is, the two entities with entity relationships in the first triple correspond to two entity nodes with connection relationships in the knowledge graph, when forming an adjacent set, there will be redundancy of the first matching nodes. When performing retrieval matching for the attributes of the query text, redundant first matching nodes will greatly reduce the efficiency of retrieval matching. Therefore, it is necessary to remove the adjacent nodes with connection relationships in the adjacent set to facilitate the subsequent retrieval and comparison of the second triple.

[0096] In one embodiment, the attribute value in the second triplet is compared with the nodes in the adjacent set for similarity, a second matching node whose similarity with the second triplet reaches a set threshold is obtained, and the similarity value between the attribute value and the second matching node is recorded. Based on the above steps, the matching nodes and matching similarity values ​​of other entity information having an entity relationship with each entity information in the query text, as well as the matching nodes and matching similarity values ​​of the attribute values ​​of each entity information can be obtained. Since entity information may have multiple meanings, and attribute values ​​have higher certainty, it can be preset that the matching weight ratio of the matching node obtained from the knowledge graph according to the attribute value is higher than the matching weight ratio of the matching node obtained from the knowledge graph for the entity information. The specific matching weight ratio configuration can be selected according to the actual application requirements and is not limited here.

[0097] In one embodiment, in step S1034, weighted processing is performed on the similarity according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph, including the following steps:

[0098] Step S10341, preset the weight ratio of matching entities and the weight ratio of matching attribute values, and use the weight ratio as the node matching weight of the corresponding knowledge graph node;

[0099] Step S10342: Multiply the similarity values ​​of the matching nodes corresponding to the same entity information in the first triple and the second triple by the corresponding matching weight to obtain the similarity between the corresponding entity information and the knowledge graph.

[0100] In one embodiment, the comprehensive similarity of each entity information in the query text is determined according to the matching weight ratio. For example, assume that the query text contains entity information A1, A2, A3 and attribute values ​​B1 and B2, A1 and A2 form an entity triple, B1 is the attribute value of A1, B2 is the attribute value of A3, and A3 has no entity relationship with A1 and A2. A1, A2, A3 obtain the corresponding matching nodes a1, a2 and a3 from the knowledge graph respectively; B1 and B2 obtain the matching nodes b1 and b2 from the knowledge graph respectively. Let the similarity between A1 and a1 be s1, the similarity between A2 and a2 be s2, the similarity between A3 and a3 be s3, the similarity between B1 and b1 be s4, and the similarity between B2 and b2 be s5. The comprehensive similarity of entity information A1 can be expressed as: α*(s1+s2)+β*s4, the comprehensive similarity of entity information A2 can be expressed as: α*s2, and the comprehensive similarity of entity information A3 can be expressed as: α*s3+β*s5. Among them, α is the matching weight corresponding to the entity information, and β is the matching weight corresponding to the attribute value. The weight value can be set to ensure that the comprehensive similarity is between 0 and 1, so that the data is normalized, which is convenient for subsequent application and calculation.

[0101] After the above steps, entity information with the greatest comprehensive similarity can be selected from each entity information, and the greatest comprehensive similarity value is used as the upper limit of the second similarity range. The lower limit can be set to 0 or other appropriate values ​​according to requirements, and is not limited here.

[0102] Step S104: perform a second comparison of the first similarity range, the second similarity range and a preset similarity range threshold to determine and output a corresponding reply text in the knowledge base or the knowledge graph.

[0103] In one embodiment, step S104 performs a second comparison of the first similarity range, the second similarity range, and a preset similarity range threshold to determine and output a corresponding reply text in the knowledge base or the knowledge graph, including the following steps:

[0104] Step S1041, the preset similarity range includes a first preset range, a second preset range and a third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range;

[0105] Step S1042: if the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is output;

[0106] Step S1043, if the intersection of the first similarity range and the second similarity range with the first preset range is an empty set, and both have an intersection with the second preset range, then obtain the standard reply texts in the knowledge base and sort them from high to low according to similarity, and take the multiple standard reply texts ranked first as output, and obtain the reply text corresponding to the matching node in the knowledge graph as output;

[0107] Step S1044, if the intersections of the first similarity range and the second similarity range with the first preset range and the second preset range are both empty sets, and both have intersections with the third preset range, then the multiple standard reply texts ranked first in the knowledge base are output as output, and the node relationship in the knowledge graph is obtained as the reply text output.

[0108] According to the similarity between the entity information in the query text and the nodes in the knowledge graph, the matching results obtained from the knowledge graph are divided into three categories: precise reply, graph relationship and no matching results. Furthermore, the priority of returning matching results can be set according to the similarity: precise reply > graph relationship > no matching results. The answers obtained from the knowledge base are divided into three types: precise answer, topN, and greetings. Among them, topN is the N standard answers in the knowledge base ranked from the highest to the lowest similarity. Different similarity range thresholds can be defined for the knowledge base and knowledge graph, such as Figure 4 shown.

[0109] See also Figure 4 In one example, the graph threshold rule can be set as follows:

[0110] Knowledge base: direct response [0.96, 1], topN (0, 0.96), greetings [0];

[0111] Knowledge graph: accurate response [0.7, 1], graph relationship [0.4, 0.7), unknown [0, 0.4).

[0112] In one embodiment, if the threshold range is [0.96, 1], the hit is a knowledge base (direct response) / knowledge graph (precise response), and the result given is a knowledge base (direct response);

[0113] If the threshold range is [0.7, 0.96), the hits are knowledge base (topN) and knowledge graph (accurate response), then the results are knowledge base (topN) and knowledge graph (accurate response);

[0114] If the threshold range is [0.4, 0.7), the hits are knowledge base (topN) and knowledge graph (relationship), then the results are knowledge base (topN) and knowledge graph (relationship);

[0115] If the threshold range is (0, 0.4), the knowledge base (topN) and the knowledge graph (no matching results) are hit, and the result given is the knowledge base (topN);

[0116] If the threshold range is [0], the knowledge base (chit-chat) is hit, and the result given is the knowledge base (chit-chat).

[0117] In one embodiment, a batch of test sets can be sorted out, and the answer types of the matching knowledge base and graph, as well as the final results, can be uploaded. After export and manual review, the thresholds corresponding to the three answer types of the graph, as well as the ranges of the three types of precise replies, graph relationships, and no matching results can be adjusted.

[0118] In one embodiment, step S104 further includes: step S4015, when the first similarity range and the second similarity range are both lower than the preset similarity range threshold, starting an idle conversation to obtain the general question and answer text in the knowledge base.

[0119] In one embodiment, after the idle session is started, the following steps are also included:

[0120] Acquire text data of user feedback in the idle conversation;

[0121] Compare the text data with the nodes in the knowledge graph to obtain one or more associated nodes;

[0122] A first question is generated according to the associated node and outputted to the user terminal to guide the user to complete the question-answering interaction.

[0123] In one embodiment, generating a first question sentence according to the associated node and outputting it to the user terminal to guide the user to complete the question-answering interaction includes the following steps:

[0124] Acquire the adjacent nodes of the associated node from the knowledge graph, and generate the first question according to the connection relationship between the associated node and the corresponding adjacent nodes;

[0125] Acquire one or more standard questions matching the first question in the knowledge base;

[0126] The first question and the matching standard question are output to the user end.

[0127] Specifically, based on the data records of small talk, the features that the user is interested in are extracted, nodes are matched from the knowledge graph, adjacent nodes of the matched nodes are obtained to form associated nodes, and questions or reply texts are generated based on the associated nodes for visitors to refer to. When the sentence generated by the associated node is a question, it can be combined with the knowledge base to determine whether there is a matching standard question in the knowledge base for the generated question, and one or more similar standard questions are output together with the sentence generated by the knowledge graph to the visitor's corresponding terminal for the visitor to screen, guide the visitor to complete the question-answering interaction, and improve the interaction achievement rate.

[0128] In one embodiment, if Figure 5 As shown, a frequently asked questions answering system is provided, the system comprising: an inquiry interaction module 10, for obtaining an inquiry text and triple information of the inquiry text; a knowledge base retrieval module 11, for determining a first similarity range between the inquiry text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question and answer pairs; a knowledge graph retrieval module 12, for performing a first comparison between the triple information and the corresponding nodes in a preset knowledge graph to determine a second similarity range between the inquiry text and the nodes in the knowledge graph; and a decision output module 13, for performing a second comparison between the first similarity range, the second similarity range and a preset similarity range threshold to determine and output the corresponding answer text in the knowledge base or the knowledge graph.

[0129] In one embodiment, the knowledge base retrieval module 11 is also used to compare the similarity of the inquiry text with the standard questions in the knowledge base to obtain the similarity value of each standard question; use the similarity value as the similarity value of the standard answer text corresponding to the standard question, and determine the first similarity range according to the maximum value of the similarity value.

[0130] In one embodiment, the knowledge graph retrieval module 12 is also used to construct a first triple based on the entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more; construct a second triple based on the entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more; compare the first triple and the second triple with the nodes in the knowledge graph respectively to obtain the similarity between each triple and the corresponding matching node; weight the similarity according to the preset node matching weight to obtain the similarity between each entity information and the knowledge graph; determine the second similarity range according to the maximum value of the similarity between each entity information and the knowledge graph.

[0131] In one embodiment, the knowledge graph retrieval module 12 is also used to compare the first triple and the second triple with the nodes in the knowledge graph respectively, and take the similarity between each triple and the corresponding matching node, including: obtaining entity information in the first triple, comparing the entity information with the nodes in the knowledge graph, and obtaining one or more first matching nodes that reach a preset similarity as matching nodes for the first triple; obtaining adjacent nodes of each of the first matching nodes, eliminating adjacent nodes with connection relationships, and forming the remaining adjacent nodes into an adjacent set; performing a similarity comparison between the attribute values ​​in the second triple and the nodes in the adjacent set, and obtaining one or more second matching nodes that reach a preset similarity as matching nodes for the second triple.

[0132] In one embodiment, the knowledge graph retrieval module 12 is also used to perform weighted processing on the similarity according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph, including: presetting the weight ratio of matching the entity and the weight ratio of matching the attribute value, and using the weight ratio as the node matching weight of the corresponding knowledge graph node; multiplying the similarity value of the matching node corresponding to the same entity information in the first triple and the second triple by the corresponding matching weight to obtain the similarity between the corresponding entity information and the knowledge graph.

[0133] In one embodiment, the decision output module 13 is also used for the preset similarity range including a first preset range, a second preset range and a third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range; if the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is used as output; if the intersection of the first similarity range and the second similarity range with the first preset range is an empty set, and both have an intersection with the second preset range, the standard reply text in the knowledge base is obtained and sorted from high to low according to similarity, and the multiple standard reply texts sorted in front are used as output, and the reply text corresponding to the matching node in the knowledge graph is obtained as output; if the intersection of the first similarity range and the second similarity range with the first preset range and the second preset range are both empty sets, and both have an intersection with the third preset range, the multiple standard reply texts sorted in front in the knowledge base are used as output, and the node relationship in the knowledge graph is obtained as the reply text output.

[0134] In one embodiment, the decision output module 13 is further configured to start an idle dialogue to obtain the general question and answer text in the knowledge base when both the first similarity range and the second similarity range are lower than the preset similarity range threshold.

[0135] In one embodiment, the decision output module 13 is also used to start an idle conversation and further include: obtaining text data of user feedback in the idle conversation; comparing the text data with the nodes in the knowledge graph to obtain one or more associated nodes; generating a first question sentence based on the associated nodes and outputting it to the user end to guide the user to complete the question-and-answer interaction.

[0136] In one embodiment, the decision output module 13 is also used to generate a first question sentence based on the associated node and output it to the user end to guide the user to complete the question-answer interaction, including: obtaining the adjacent nodes of the associated node from the knowledge graph, and generating the first question sentence based on the connection relationship between the associated node and the corresponding adjacent node; obtaining one or more standard questions matching the first question sentence in the knowledge base; and outputting the first question sentence and the matching standard questions to the user end.

[0137] The above FAQ system can be implemented in the form of a computer program. Figure 6 The computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor.

[0138] Each module in the above FAQ system can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the terminal's memory in the form of hardware, or can be stored in the terminal's memory in the form of software, so that the processor can call and execute the operations corresponding to each module. The processor can be a central processing unit (CPU), a microprocessor, a single-chip microcomputer, etc.

[0139] like Figure 6 The figure shows a schematic diagram of the internal structure of a computer device in one embodiment. A computer device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program: obtaining an inquiry text and triple information of the inquiry text; determining a first similarity range between the inquiry text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs; performing a first comparison between the triple information and the corresponding node in a preset knowledge graph to determine a second similarity range between the inquiry text and the node in the knowledge graph; performing a second comparison between the first similarity range, the second similarity range, and the preset similarity range threshold to determine outputting the corresponding answer text in the knowledge base or the knowledge graph.

[0140] In one embodiment, when the above-mentioned processor is executed, the first similarity range between the inquiry text and each standard answer text in the knowledge base is determined according to the similarity matching threshold of the preset standard question in the preset knowledge base, including: performing a similarity comparison between the inquiry text and the standard questions in the knowledge base to obtain the similarity value of each standard question; using the similarity value as the similarity value of the standard answer text corresponding to the standard question, and determining the first similarity range according to the maximum value of the similarity value.

[0141] In one embodiment, when the above-mentioned processor is executed, the first comparison of the triple information with the corresponding node in the preset knowledge graph is implemented to determine the second similarity range between the query text and the node in the knowledge graph, including: constructing a first triple based on the entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more; constructing a second triple based on the entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more; comparing the first triple and the second triple with the nodes in the knowledge graph respectively to obtain the similarity between each triple and the corresponding matching node; weighting the similarity according to the preset node matching weight to obtain the similarity between each entity information and the knowledge graph; determining the second similarity range according to the maximum value of the similarity between each entity information and the knowledge graph.

[0142] In one embodiment, when the above-mentioned processor is executed, the first triple and the second triple are respectively compared with the nodes in the knowledge graph to obtain the similarity between each triple and the corresponding matching node, including: obtaining entity information in the first triple, comparing the entity information with the nodes in the knowledge graph, and obtaining one or more first matching nodes that reach a preset similarity as matching nodes of the first triple; obtaining adjacent nodes of each of the first matching nodes, eliminating adjacent nodes with a connection relationship, and forming the remaining adjacent nodes into an adjacent set; performing a similarity comparison between the attribute values ​​in the second triple and the nodes in the adjacent set, and obtaining one or more second matching nodes that reach a preset similarity as matching nodes of the second triple.

[0143] In one embodiment, when the above-mentioned processor is executed, the similarity is weighted according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph, including: presetting the weight ratio of matching to the entity and the weight ratio of matching to the attribute value, and using the weight ratio as the node matching weight of the corresponding knowledge graph node; multiplying the similarity value of the matching node corresponding to the same entity information in the first triple and the second triple by the corresponding matching weight to obtain the similarity between the corresponding entity information and the knowledge graph.

[0144] In one embodiment, when the above-mentioned processor is executed, the second comparison of the first similarity range, the second similarity range and the preset similarity range threshold is implemented to determine the output of the corresponding reply text in the knowledge base or the knowledge graph, including: the preset similarity range includes a first preset range, a second preset range and a third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range; if the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is output; if the first similarity range has an intersection, the matching standard reply text in the knowledge base is output; If the intersection of a similarity range and the second similarity range with the first preset range is an empty set, and both have an intersection with the second preset range, then the standard reply texts in the knowledge base are obtained and sorted from high to low according to similarity, and the multiple standard reply texts sorted in front are used as output, and the reply text corresponding to the matching node in the knowledge graph is obtained as output; if the intersection of the first similarity range and the second similarity range with the first preset range and the second preset range are both empty sets, and both have an intersection with the third preset range, then the multiple standard reply texts sorted in front in the knowledge base are used as output, and the node relationship in the knowledge graph is obtained as the reply text output.

[0145] In one embodiment, when the above-mentioned processor is executed, the second comparison of the first similarity range, the second similarity range and the preset similarity range threshold is implemented to determine the output of the corresponding reply text in the knowledge base or the knowledge graph, and also includes: when the first similarity range and the second similarity range are both lower than the preset similarity range threshold, starting an idle conversation to obtain the general question and answer text in the knowledge base.

[0146] In one embodiment, when the above-mentioned processor is executed, after the idle conversation is started, it also includes: obtaining text data of user feedback in the idle conversation; comparing the text data with the nodes in the knowledge graph to obtain one or more associated nodes; generating a first question sentence based on the associated nodes and outputting it to the user end to guide the user to complete the question-and-answer interaction.

[0147] In one embodiment, when the above-mentioned processor is executed, the first question sentence is generated according to the associated node and output to the user end to guide the user to complete the question-answer interaction, including: obtaining the adjacent nodes of the associated node from the knowledge graph, and generating the first question sentence according to the connection relationship between the associated node and the corresponding adjacent node; obtaining one or more standard questions matching the first question sentence in the knowledge base; and outputting the first question sentence and the matching standard questions to the user end.

[0148] In one embodiment, the above-mentioned computer device can be used as a server, including but not limited to an independent physical server, or a server cluster composed of multiple physical servers. The computer device can also be used as a terminal, including but not limited to a mobile phone, a tablet computer, a personal digital assistant or a smart device. Figure 6 As shown, the computer device includes a processor, a non-volatile storage medium, an internal memory, a display screen, and a network interface connected via a system bus.

[0149] Among them, the processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The non-volatile storage medium of the computer device stores an operating system and a computer program. The computer program can be executed by the processor to implement the common problem solving methods provided in the above embodiments. The internal memory in the computer device provides a cache operating environment for the operating system and computer program in the non-volatile storage medium. The display interface can display data through a display screen. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, and can generate corresponding instructions by receiving a click operation acting on a control displayed on the touch screen.

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

[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented: obtaining a query text and triple information of the query text; determining a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question and answer pairs; performing a first comparison between the triple information and the corresponding nodes in a preset knowledge graph to determine a second similarity range between the query text and the nodes in the knowledge graph; performing a second comparison between the first similarity range, the second similarity range and the preset similarity range threshold to determine and output the corresponding answer text in the knowledge base or the knowledge graph.

[0152] In one embodiment, when the computer program is executed by a processor, the first similarity range between the inquiry text and each standard answer text in the preset knowledge base is determined according to a similarity matching threshold of a preset standard question in the preset knowledge base, including: performing a similarity comparison between the inquiry text and the standard questions in the knowledge base to obtain a similarity value for each standard question; using the similarity value as the similarity value of the standard answer text corresponding to the standard question, and determining the first similarity range according to the maximum value of the similarity value.

[0153] In one embodiment, when the computer program is executed by a processor, the first comparison of the triple information with the corresponding node in the preset knowledge graph is implemented to determine the second similarity range between the query text and the node in the knowledge graph, including: constructing a first triple based on the entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more; constructing a second triple based on the entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more; comparing the first triple and the second triple with the nodes in the knowledge graph respectively to obtain the similarity between each triple and the corresponding matching node; weighting the similarity according to the preset node matching weight to obtain the similarity between each entity information and the knowledge graph; determining the second similarity range according to the maximum value of the similarity between each entity information and the knowledge graph.

[0154] In one embodiment, when the computer program is executed by a processor, the first triple and the second triple are respectively compared with the nodes in the knowledge graph to obtain the similarity between each triple and the corresponding matching node, including: obtaining entity information in the first triple, comparing the entity information with the nodes in the knowledge graph, and obtaining one or more first matching nodes that reach a preset similarity as matching nodes for the first triple; obtaining adjacent nodes of each of the first matching nodes, eliminating adjacent nodes with a connection relationship, and forming the remaining adjacent nodes into an adjacent set; performing a similarity comparison between the attribute values ​​in the second triple and the nodes in the adjacent set, and obtaining one or more second matching nodes that reach a preset similarity as matching nodes for the second triple.

[0155] In one embodiment, when the computer program is executed by a processor, the similarity is weighted according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph, including: presetting a weight ratio for matching the entity and a weight ratio for matching the attribute value, and using the weight ratio as the node matching weight of the corresponding knowledge graph node; and multiplying the similarity value of the matching node corresponding to the same entity information in the first triple and the second triple by the corresponding matching weight to obtain the similarity between the corresponding entity information and the knowledge graph.

[0156] In one embodiment, when the computer program is executed by a processor, the second comparison of the first similarity range, the second similarity range and the preset similarity range threshold is implemented to determine the output of the corresponding reply text in the knowledge base or the knowledge graph, including: the preset similarity range includes a first preset range, a second preset range and a third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range; if the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is output; if If the intersection of the first similarity range and the second similarity range with the first preset range is an empty set, and both have an intersection with the second preset range, the standard reply texts in the knowledge base are obtained and sorted from high to low according to similarity, and the multiple standard reply texts sorted first are used as output, and the reply text corresponding to the matching node in the knowledge graph is obtained as output; if the intersection of the first similarity range and the second similarity range with the first preset range and the second preset range are both empty sets, and both have an intersection with the third preset range, the multiple standard reply texts sorted first in the knowledge base are used as output, and the node relationship in the knowledge graph is obtained as the reply text output.

[0157] In one embodiment, when the instruction is executed by the processor, a second comparison is performed on the first similarity range, the second similarity range, and the preset similarity range threshold to determine the output of the corresponding reply text in the knowledge base or the knowledge graph, and also includes: when the first similarity range and the second similarity range are both lower than the preset similarity range threshold, an idle conversation is started to obtain the general question and answer text in the knowledge base.

[0158] In one embodiment, when the instruction is executed by the processor, after the idle conversation is started, it also includes: obtaining text data of user feedback in the idle conversation; comparing the text data with the nodes in the knowledge graph to obtain one or more associated nodes; generating a first question sentence based on the associated nodes and outputting it to the user end to guide the user to complete the question-and-answer interaction.

[0159] In one embodiment, when the instruction is executed by the processor, the generated first question sentence is output to the user terminal according to the associated node to guide the user to complete the question-answering interaction, including: obtaining the adjacent node of the associated node from the knowledge graph, and generating the first question sentence according to the connection relationship between the associated node and the corresponding adjacent node; obtaining one or more standard questions matching the first question sentence in the knowledge base; outputting the first question sentence and the matching standard question sentence to the user terminal

[0160] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM), etc.

[0161] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A method for answering common questions, characterized in that: include: Obtaining a query text and triple information of the query text; Determining a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs; Performing a first comparison between the triple information and the corresponding nodes in a preset knowledge graph to determine a second similarity range between the query text and the nodes in the knowledge graph, including: constructing a first triple based on the entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more; constructing a second triple based on the entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more; comparing the first triple and the second triple with the nodes in the knowledge graph respectively to obtain the similarity between each triple and the corresponding matching node; weighting the similarity according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph; determining the second similarity range according to the maximum value of the similarity between each entity information and the knowledge graph; The first similarity range, the second similarity range and the preset similarity range threshold are compared for the second time to determine the output of the corresponding reply text in the knowledge base or the knowledge graph, including: the preset similarity range includes the first preset range, the second preset range and the third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range; if the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is output; if the first similarity range and the third similarity range do not intersect, the matching standard reply text in the knowledge base is output; If the intersection of the two similarity ranges with the first preset range is an empty set, and both have an intersection with the second preset range, then the standard reply texts in the knowledge base are obtained and sorted from high to low according to similarity, and the multiple standard reply texts sorted in front are used as output, and the reply texts corresponding to the matching nodes in the knowledge graph are obtained as output; if the intersection of the first similarity range and the second similarity range with the first preset range and the second preset range are both empty sets, and both have an intersection with the third preset range, then the multiple standard reply texts sorted in front in the knowledge base are used as output, and the node relationship in the knowledge graph is obtained as the reply text output.

2. The FAQ method according to claim 1, characterized in that: Determining a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base includes: Comparing the query text with the standard questions in the knowledge base to obtain similarity values ​​of the standard questions; The similarity value is used as the similarity value of the standard answer text corresponding to the standard question sentence, and the first similarity range is determined according to the maximum value of the similarity value.

3. The FAQ method according to claim 1, characterized in that: Comparing the first triple and the second triple with the nodes in the knowledge graph respectively, and obtaining the similarity between each triple and the corresponding matching node, including: Obtaining entity information in the first triple, comparing the entity information with the nodes in the knowledge graph, and obtaining one or more first matching nodes that reach a preset similarity as matching nodes of the first triple; Obtaining adjacent nodes of each of the first matching nodes, removing adjacent nodes with connection relationships, and forming the remaining adjacent nodes into an adjacent set; The attribute values ​​in the second triplet are compared with the nodes in the adjacent set for similarity, and one or more second matching nodes reaching a preset similarity are obtained as matching nodes of the second triplet.

4. The FAQ method according to claim 1, characterized in that: The similarity is weighted according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph, including: Preset the weight ratio of matching entities and the weight ratio of matching attribute values, and use the weight ratio as the node matching weight of the corresponding knowledge graph node; The similarity between the corresponding entity information and the knowledge graph is obtained by multiplying the similarity values ​​of the matching nodes corresponding to the same entity information in the first triplet and the second triplet by the corresponding matching weight.

5. The FAQ method according to claim 1, characterized in that: The first similarity range, the second similarity range and a preset similarity range threshold are compared for the second time to determine to output the corresponding reply text in the knowledge base or the knowledge graph, further comprising: When the first similarity range and the second similarity range are both lower than the preset similarity range threshold, an idle dialogue is started to obtain the general question and answer text in the knowledge base.

6. The FAQ method according to claim 5, characterized in that: After starting an idle conversation, it also includes: Acquire text data of user feedback in the idle conversation; Compare the text data with the nodes in the knowledge graph to obtain one or more associated nodes; A first question is generated according to the associated node and outputted to the user terminal to guide the user to complete the question-answering interaction.

7. The FAQ method according to claim 6, characterized in that: Generating a first question sentence according to the associated node and outputting it to the user terminal to guide the user to complete the question-answering interaction includes: Acquire the adjacent nodes of the associated node from the knowledge graph, and generate the first question according to the connection relationship between the associated node and the corresponding adjacent nodes; Acquire one or more standard questions matching the first question in the knowledge base; The first question and the matching standard question are output to the user end.

8. A frequently asked questions answering system, characterized in that: include: An inquiry interaction module, used to obtain an inquiry text and triple information of the inquiry text; A knowledge base retrieval module, used to determine a first similarity range between the query text and each standard answer text in the knowledge base according to a similarity matching threshold of a preset standard question in a preset knowledge base, wherein the knowledge base is composed of standard question-answer pairs; A knowledge graph retrieval module, used for performing a first comparison between the triple information and the corresponding nodes in a preset knowledge graph, and determining a second similarity range between the query text and the nodes in the knowledge graph, including: constructing a first triple based on the entity information in the query text and the relationship between the entity information, wherein the first triple includes one or more; constructing a second triple based on the entity information, attributes and corresponding attribute values ​​in the query text, wherein the second triple includes one or more; comparing the first triple and the second triple with the nodes in the knowledge graph respectively, and obtaining the similarity between each triple and the corresponding matching node; weighting the similarity according to a preset node matching weight to obtain the similarity between each entity information and the knowledge graph; determining the second similarity range according to the maximum value of the similarity between each entity information and the knowledge graph; A decision output module, used for performing a second comparison between the first similarity range, the second similarity range and a preset similarity range threshold to determine to output the corresponding reply text in the knowledge base or the knowledge graph, including: the preset similarity range includes a first preset range, a second preset range and a third preset range; wherein the similarity value corresponding to the first preset range is greater than the similarity value corresponding to the second preset range, and the similarity value corresponding to the second preset range is greater than the similarity value corresponding to the third preset range; if the first similarity range and the first preset range have an intersection, the matching standard reply text in the knowledge base is output; if the first similarity range does not intersect, the matching standard reply text in the knowledge base is output; If the intersection of the first similarity range and the second similarity range with the first preset range is an empty set, and both have an intersection with the second preset range, then the standard reply texts in the knowledge base are obtained and sorted from high to low according to similarity, and the multiple standard reply texts sorted in front are taken as output, and the reply text corresponding to the matching node in the knowledge graph is obtained as output; if the intersection of the first similarity range and the second similarity range with the first preset range and the second preset range is an empty set, and both have an intersection with the third preset range, then the multiple standard reply texts sorted in front in the knowledge base are taken as output, and the node relationship in the knowledge graph is obtained as the reply text output.

9. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program.

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