Knowledge retrieval method, device, electronic device and computer-readable storage medium

By calculating user characteristics and edit distance similarity and semantic similarity in the knowledge graph library, a fusion similarity is generated, which solves the problem of low retrieval efficiency in the existing technology, achieves retrieval results that are more in line with user habits, and improves retrieval. efficiency and user experience.

CN115269815BActive Publication Date: 2024-08-27CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210946407.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-08
Publication Date
2024-08-27
Estimated Expiration
2042-08-08

AI Technical Summary

Technical Problem

Existing knowledge retrieval methods are inefficient in information screening and cannot adapt to the usage habits of different users, resulting in inaccurate retrieval results.

Method used

By receiving the user's content and features to be retrieved, combined with the preset knowledge graph library, the edit distance similarity and semantic similarity are calculated, and the predicted fusion coefficient is generated, and the edit distance similarity, semantic similarity and predicted fusion coefficient are combined to calculate the fusion similarity, and then sort the candidate knowledge to obtain the retrieval results.

Benefits of technology

The retrieval efficiency is improved, the retrieval results are more in line with the user's usage habits, and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115269815B
    Figure CN115269815B
Patent Text Reader

Abstract

The present disclosure provides a knowledge retrieval method, device, electronic device and computer-readable storage medium, which relate to the field of natural language processing technology. The method includes: receiving the user's content to be retrieved and the user's retrieval features; calculating the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library according to the preset knowledge graph library and the content to be retrieved; generating a predicted fusion coefficient according to the user's retrieval features; obtaining the fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient; sorting the multiple candidate knowledge according to the fusion similarity to obtain the retrieval results. The present disclosure considers both the edit distance similarity and the semantic similarity when calculating the fusion similarity, and also considers the user's retrieval features. Different users use different fusion similarities, and the retrieval is more in line with the user's usage habits, thereby improving the retrieval efficiency and enhancing the user's usage experience.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] In industries such as communications and finance, it is often necessary to search for professional knowledge in a large number of documents to obtain knowledge content and knowledge paths. In the era of information explosion, the use of knowledge retrieval technology can greatly reduce the time of information screening.

[0003] In the related art, edit distance similarity or semantic similarity is generally used for retrieval. Different users may return the same search content for the same search content, which cannot fit the user's usage habits, resulting in low retrieval efficiency.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present disclosure provides a knowledge retrieval method, device, electronic device and computer-readable storage medium, which at least to some extent overcome the problem of low retrieval efficiency.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, a knowledge retrieval method is provided, the method comprising:

[0008] Receiving the user's to-be-searched content and the user's search characteristics;

[0009] According to a preset knowledge graph library and the content to be searched, calculating the edit distance similarity and semantic similarity between the content to be searched and multiple candidate knowledge in the knowledge graph library;

[0010] generating a predicted fusion coefficient according to the user retrieval feature;

[0011] Obtaining fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient;

[0012] The multiple candidate knowledge are sorted according to the fusion similarity to obtain the retrieval result.

[0013] In one embodiment of the present disclosure, the user search features include: user click rate, user click return knowledge order, historical search typo probability and historical search semantic similarity;

[0014] The generating a prediction fusion coefficient according to the user retrieval feature comprises:

[0015] The user click rate, the order of knowledge returned by the user click, the probability of wrong characters in the historical search and the semantic similarity of the historical search are processed according to the pre-trained target regression model to obtain a predicted fusion coefficient.

[0016] In one embodiment of the present disclosure, before receiving the user's to-be-searched content and the user's search characteristics, the method further includes:

[0017] Obtaining a model training set, wherein the model training set includes historical retrieval features of multiple users and corresponding fusion coefficient labels;

[0018] An initial regression model is trained according to the historical retrieval features of the multiple users and the fusion coefficient labels, and if a preset training stop condition is met, the initial regression model is used as a target regression model.

[0019] In one embodiment of the present disclosure, the method for obtaining the user click rate is as follows:

[0020] Constructing a first retrieval system according to the edit distance similarity;

[0021] constructing a second retrieval system according to the semantic similarity;

[0022] The probability of returning the candidate knowledge of the first data volume ranked first when the user clicks the search on the first retrieval system and the second retrieval system is counted respectively, wherein the first retrieval system and the second retrieval system are online for the same length of time.

[0023] In one embodiment of the present disclosure, the expression of fusion similarity is as follows:

[0024] c=σb+(1-σ)a

[0025] Among them, c is the fusion similarity, σ is the predicted fusion coefficient, a is the semantic similarity, and b is the edit distance similarity.

[0026] In one embodiment of the present disclosure, the multiple candidate knowledge is sorted according to the fusion similarity to obtain the search result, including:

[0027] Sort multiple candidate knowledge from large to small according to fusion similarity;

[0028] The candidate knowledge of the second data volume ranked first is determined as the search result.

[0029] In one embodiment of the present disclosure, the method further includes:

[0030] Obtaining the user's personal information, the personal information including one or more of the user's click rate, the order of knowledge returned by the user's clicks, the probability of wrong characters in historical searches, the semantic similarity of historical searches, years of work experience, expert level, years of professional experience, age and gender;

[0031] Processing the personal information according to a preset decision matrix to obtain an information value;

[0032] According to the information value, a third data amount is obtained;

[0033] The step of sorting the plurality of candidate knowledge according to the fusion similarity to obtain the search result further includes:

[0034] The candidate knowledge of the third data volume ranked first is determined as the search result.

[0035] According to another aspect of the present disclosure, a knowledge retrieval device is provided, the device comprising:

[0036] A receiving module, used for receiving the user's to-be-searched content and the user's search characteristics;

[0037] A processing module, used for calculating the edit distance similarity and semantic similarity between the content to be retrieved and a plurality of candidate knowledge in the knowledge graph library according to a preset knowledge graph library and the content to be retrieved;

[0038] A prediction fusion coefficient generation module, used to generate a prediction fusion coefficient according to the user retrieval feature;

[0039] A fusion similarity generation module, used to obtain fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient;

[0040] The sorting module is used to sort the multiple candidate knowledge according to the fusion similarity to obtain the retrieval result.

[0041] According to another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the above-mentioned knowledge retrieval method by executing the executable instructions.

[0042] According to another aspect of the present disclosure, 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 above-mentioned knowledge retrieval method is implemented.

[0043] According to another aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises a computer program or computer instructions, wherein the computer program or the computer instructions are loaded and executed by a processor so that a computer implements any of the above-mentioned knowledge retrieval methods.

[0044] The embodiments of the present disclosure provide a knowledge retrieval method, device, electronic device, and computer-readable storage medium, which receive the user's content to be retrieved and the user's retrieval features, calculate the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library based on the preset knowledge graph library and the content to be retrieved, and generate a predicted fusion coefficient based on the user's retrieval features; obtain the fusion similarity based on the edit distance similarity, semantic similarity, and predicted fusion coefficient, and sort the multiple candidate knowledge based on the fusion similarity to obtain the retrieval result. The present disclosure considers both the edit distance similarity and the semantic similarity when calculating the fusion similarity, and also considers the user's retrieval features. Different users use different fusion similarities, and the retrieval is more in line with the user's usage habits, thereby improving the retrieval efficiency and enhancing the user's usage experience.

[0045] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0047] Figure 1 A schematic diagram showing a system architecture in an embodiment of the present disclosure;

[0048] Figure 2 A flow chart of a knowledge retrieval method in an embodiment of the present disclosure is shown;

[0049] Figure 3 A regression model training flow chart of a knowledge retrieval method in an embodiment of the present disclosure is shown;

[0050] Figure 4 A flowchart of determining the number of retrieval results of a knowledge retrieval method according to an embodiment of the present disclosure is shown;

[0051] Figure 5 A schematic diagram of a knowledge retrieval device in an embodiment of the present disclosure is shown;

[0052] Figure 6 A schematic diagram of a knowledge retrieval device in another embodiment of the present disclosure is shown;

[0053] Figure 7 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0054] Figure 8 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0055] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0056] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0057] The specific implementation of the embodiment of the present disclosure is described in detail below with reference to the accompanying drawings.

[0058] Figure 1 A schematic diagram showing an exemplary system architecture that can be applied to the knowledge retrieval method or knowledge retrieval device of the embodiments of the present disclosure is shown.

[0059] like Figure 1 As shown, the system architecture includes a terminal 101, a network 102 and a server 103; the network 102 is used to provide a medium for a communication link between the terminal 101 and the server 103, and can be a wired network or a wireless network.

[0060] Optionally, the wireless network or wired network described above uses standard communication technology and / or protocol. The network is typically the Internet, but may also be any network, including but not limited to a local area network (LAN), a metropolitan area network (MAN), a wide area network (WAN), a mobile, wired or wireless network, a dedicated network or any combination of a virtual private network). In some embodiments, technologies and / or formats including Hyper Text Mark-up Language (HTML), Extensible Markup Language (XML), etc. are used to represent data exchanged over the network. In addition, conventional encryption technologies such as Secure Socket Layer (SSL), Transport Layer Security (TLS), Virtual Private Network (VPN), Internet Protocol Security (IPsec), etc. may be used to encrypt all or some links. In other embodiments, customized and / or dedicated data communication technologies may also be used to replace or supplement the above data communication technologies.

[0061] Figure 1 Any terminal 101 shown can be used as a remote terminal or a relay terminal. Communication based on proximity service can be established between the remote terminal and the relay terminal. The remote terminal can access the network directly or through the relay terminal.

[0062] Optionally, the terminal 101 in the embodiment of the present disclosure may also be referred to as UE (User Equipment). In a specific implementation, the terminal 101 may be a terminal-side device such as a mobile phone, a tablet computer (Tablet Personal Computer), a laptop computer (Laptop Computer), a personal digital assistant (Personal Digital Assistant, PDA), a mobile Internet device (Mobile Internet Device, MID), a wearable device (Wearable Device) or a vehicle-mounted device.

[0063] Optionally, the client of the application installed in different terminals 101 is the same, or the client of the same type of application based on different operating systems. Based on the different terminal platforms, the specific form of the client of the application can also be different, for example, the application client can be a mobile client, a PC client, etc.

[0064] The server 103 may be a server that provides various services, such as a background management server that provides support for the device operated by the user using the terminal 101. The background management server may analyze and process the received request and other data, and feed back the processing results to the terminal.

[0065] Optionally, the server 103 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 (Content Delivery Network), and big data and artificial intelligence platforms. The server 103 and the terminal 101 may be directly or indirectly connected via wired or wireless communication, which is not limited in this application.

[0066] In the related art, the existing knowledge retrieval methods generally use edit distance similarity or semantic similarity to perform retrieval according to the actual situation. The same retrieval content will return the same content to different users. In fact, some users are prone to typos when searching for target knowledge, and some users are prone to switching between different expressions when searching for target knowledge, which cannot fit the user's usage habits, resulting in low retrieval efficiency.

[0067] In the embodiment of the present disclosure, a knowledge retrieval method is provided. The user inputs the content to be retrieved through the terminal 101, and the server 103 receives the content to be retrieved and the user's retrieval features through the network 102. According to the preset knowledge graph library and the content to be retrieved, the edit distance similarity and semantic similarity between the content to be retrieved and the multiple candidate knowledge in the knowledge graph library are calculated; the predicted fusion coefficient is generated according to the user's retrieval features; the fusion similarity is obtained according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient; the multiple candidate knowledge is sorted according to the fusion similarity to obtain the retrieval result. This method can be applied in the scene of knowledge retrieval, such as the communication field staff searching for professional knowledge in a large number of documents, the financial field staff searching for professional knowledge in a large number of documents, etc. When calculating the fusion similarity, the present disclosure considers both the edit distance similarity and the semantic similarity, and also considers the user's retrieval features. Different users use different fusion similarities, and the retrieval is more in line with the user's usage habits, thereby improving the retrieval efficiency and enhancing the user's usage experience.

[0068] Those skilled in the art will know that Figure 1 The number of terminals 101, networks 102 and servers 103 is only illustrative, and any number of terminals 101, networks 102 and servers 103 may be provided according to actual needs. The embodiments of the present disclosure are not limited to this.

[0069] Under the above system architecture, the present disclosure provides a knowledge retrieval method in an embodiment, which can be executed by any electronic device with computing and processing capabilities. In some embodiments, the knowledge retrieval method provided in the present disclosure can be performed on Figure 1 Executed in the server 103 shown.

[0070] Figure 2 A flow chart of a knowledge retrieval method in an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the knowledge retrieval method provided in the embodiment of the present disclosure includes the following S201 to S205.

[0071] S201, receiving the content to be searched and the user's search characteristics.

[0072] Among them, the content to be retrieved is the content input by the user into the search box of the terminal application, and the candidate knowledge corresponding to the content to be retrieved is queried in the candidate knowledge using the content to be retrieved; the user search features include user click rate, user click return knowledge order, historical search typo probability and historical search semantic similarity, and the user search features are used to determine the predicted fusion coefficient. In one embodiment, the predicted fusion coefficient result can be between 0-1.

[0073] S202. Based on a preset knowledge graph library and content to be retrieved, calculate the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library.

[0074] Among them, multiple candidate knowledge and path information for forming candidate knowledge are obtained by constructing a knowledge graph, and the multiple candidate knowledge and path information for forming candidate knowledge are stored in a knowledge graph library.

[0075] In this embodiment, the edit distance similarity is calculated by Levenshtein ratio. In addition, other methods that can obtain the edit distance similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library are also applicable. The smaller the edit distance similarity, the greater the similarity between the content to be retrieved and the candidate knowledge. Semantic similarity can be calculated using one or more algorithms such as BERT (Bidirectional Encoder Representation from Transformers, language representation model), word2vec (language model), GloVe (Global Vector), etc.

[0076] S203: Generate a predicted fusion coefficient based on the user's search features.

[0077] The user retrieval features are input into a pre-trained regression model to generate a prediction fusion coefficient, wherein the regression model is one of a deep neural network, a decision tree, and a SVM (support vector machines).

[0078] S204: Obtain fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient.

[0079] In one embodiment, the fusion similarity c is expressed as follows:

[0080] c=σb+(1-σ)a (Formula 1)

[0081] Among them, c is the fusion similarity, σ is the predicted fusion coefficient, a is the semantic similarity, and b is the edit distance similarity.

[0082] The value range of the prediction fusion coefficient σ is 0-1. The larger the σ is, the more likely users are to make typos in their daily search habits. Therefore, the edit distance similarity is more important in the returned search results. On the contrary, it means that users are more likely to switch expressions. Therefore, semantic similarity is more important in the recommended results, making the search more in line with the user's usage habits.

[0083] In another embodiment, the fusion similarity c is expressed as follows:

[0084] c=σb+(1-σ)a±d (Formula 2)

[0085] Among them, c is the fusion similarity, σ is the predicted fusion coefficient, a is the semantic similarity, b is the edit distance similarity, and d is the error constant.

[0086] The value range of the prediction fusion coefficient σ is 0-1. The larger the σ is, the easier it is for users to make typos in their daily search habits. Therefore, the edit distance similarity is more important in the returned search results. On the contrary, it means that users are more likely to switch expressions. Therefore, semantic similarity is more important in the recommended results, making the search more in line with the user's usage habits. In addition, the setting of the error constant d can improve the calculation accuracy of the fusion similarity c.

[0087] In another embodiment, the fusion similarity c is expressed as follows:

[0088] c=A 1 σb+A 2 (1-σ)a (Formula 3)

[0089] Among them, c is the fusion similarity, σ is the predicted fusion coefficient, a is the semantic similarity, b is the edit distance similarity, A 1 is the first weight, A 2 is the second weight.

[0090] The value range of the prediction fusion coefficient σ is 0-1. The larger the σ is, the easier it is for users to make typos in their daily search habits. Therefore, the edit distance similarity is more important in the returned search results. On the contrary, it means that users are more likely to switch expressions. Therefore, semantic similarity is more important in the recommended results, making the search more in line with the user's usage habits. In addition, according to the importance of semantic similarity and edit distance similarity, A 1 Weighting the edit distance similarity, A 2 The semantic similarity is weighted so that the feedback retrieval results are more in line with user needs.

[0091] S205. Sort multiple candidate knowledge according to fusion similarity to obtain retrieval results.

[0092] Among them, the fusion similarity is calculated according to the edit distance similarity, semantic similarity and predicted fusion coefficient, so that the retrieved candidate knowledge is sorted according to the fusion similarity to obtain the retrieval result. Since the predicted fusion coefficient is generated by the user's retrieval features, the fusion similarity is calculated by the edit distance similarity, semantic similarity and predicted fusion coefficient. The obtained retrieval results are more in line with the user's usage habits, thereby improving the retrieval efficiency and enhancing the user's usage experience.

[0093] Sort multiple candidate knowledge according to the fusion similarity to obtain the retrieval results, including:

[0094] Sort multiple candidate knowledge from large to small according to fusion similarity;

[0095] The candidate knowledge of the second data volume ranked first is determined as the search result.

[0096] Exemplarily, sort the multiple candidate knowledge according to the fusion similarity from large to small, and determine the top 10 candidate knowledge in the sorting as the retrieval results.

[0097] In one embodiment, before receiving the content to be retrieved by the user and the user retrieval features, it is necessary to construct a knowledge graph library.

[0098] Exemplarily, in the communication field, convert multi-source heterogeneous data such as expert cases, instruction manuals, and index systems in this field into text data uniformly. The specific operations include converting PDF to word, extracting and replacing pictures with paths, converting picture tables to text tables, etc. Finally, convert them into a tree structure of the general title, first-level, second-level, and third-level titles and candidate knowledge (text blocks, picture blocks, text table blocks). Then import them into the knowledge graph. The root node of the knowledge graph is the file name, and downward are the first-level, second-level, and third-level titles respectively. The leaf nodes are the content of each candidate knowledge. The attribute path of each node stores the path of the current node in the tree structure diagram. For example, the path information form of a certain candidate knowledge is: file name / first-level title / second-level title / third-level title. Store all the candidate knowledge and the corresponding path information of the candidate knowledge to form a knowledge graph library.

[0099] In one embodiment, according to the preset knowledge graph library and the content to be retrieved, calculate the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library, including:

[0100] Calculate the edit distance similarity between the user input retrieval content and the candidate knowledge, which is represented by the Levenshtein ratio.

[0101] The edit distance similarity r is expressed as follows:

[0102]

[0103] Among them, sum refers to the total length of the user input content string to be retrieved and the candidate knowledge string. Idist is the class edit distance. In the class edit distance, deletion and insertion still add 1, but replacement adds 2.

[0104] Exemplarily, if the content to be retrieved S1 is communication technology and the candidate knowledge S2 is near-field communication technology, then S1 can be made consistent with S2 by inserting the three Chinese characters "near", "neighbor", and "field" into S1. Therefore, the class edit distance between S1 and S2 is 3, sum is 11, and the value of r is approximately 0.7273. For the convenience of calculating the fusion similarity, the edit distance similarity r is expressed as a percentage, which is expressed as 72.73%.

[0105] In one embodiment, based on a preset knowledge graph library and content to be retrieved, the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library are calculated, including:

[0106] Calculate the semantic similarity between the user input search content and the candidate knowledge. The semantic similarity can be calculated using one or more algorithms such as BERT, word2vec, and GloVe.

[0107] It should be noted that the semantic similarity is between 0 and 1, 1 means the most similar, that is, there is candidate knowledge in the knowledge graph library that is consistent with the content to be retrieved, and 0 means dissimilar, that is, there is no candidate knowledge in the knowledge graph library that is similar to the content to be retrieved. In order to facilitate the calculation of fusion similarity, the semantic similarity is expressed as a percentage.

[0108] In one embodiment, the user search features include: user click rate, user click return knowledge order, historical search typo probability and historical search semantic similarity;

[0109] Generate prediction fusion coefficients based on user retrieval features, including:

[0110] According to the pre-trained target regression model, the user click rate, the order of knowledge returned by the user's click, the probability of typos in historical retrieval and the semantic similarity of historical retrieval are processed to obtain the prediction fusion coefficient.

[0111] The regression model may be a deep neural network, a decision tree, or a SVM.

[0112] In one embodiment, the method for obtaining the user click rate is as follows:

[0113] Constructing a first retrieval system according to the edit distance similarity;

[0114] constructing a second retrieval system according to the semantic similarity;

[0115] The probability of returning the candidate knowledge of the first data volume ranked first when the user clicks the search on the first retrieval system and the second retrieval system is counted respectively, wherein the first retrieval system and the second retrieval system are online for the same length of time.

[0116] Among them, the first retrieval system is constructed based on the edit distance similarity, that is, the retrieval results sort the candidate knowledge according to the edit distance similarity; the second retrieval system is constructed based on the semantic similarity, that is, the retrieval results sort the candidate knowledge according to the semantic similarity; the switching between the first retrieval system and the second retrieval system is realized through the server system background.

[0117] Exemplarily, the first retrieval system and the second retrieval system are online for 2 minutes respectively, and the probability of users clicking on the search on the first retrieval system and the second retrieval system to return the top 3 candidate knowledge is counted respectively. For example, if the first retrieval system is online, the total number of clicks is 10, and the number of clicks on the top 3 candidate knowledge is 7, then the user click rate of the first retrieval system is 70%.

[0118] The order in which the user clicks to return knowledge is the order in which the user clicks on the recommended candidate knowledge on the two systems, for example, clicking on the first candidate knowledge is 1, and clicking on the second candidate knowledge is 2.

[0119] The probability of typos in historical searches is the statistics of historical search data of users by the server system background, which can be used to check the probability of historical searches containing typos.

[0120] The historical search semantic similarity is the proportion of data with different expressions but the same semantics in the user's historical search data.

[0121] The user click rate, the order of knowledge returned by user clicks, the probability of typos in historical retrievals, and the semantic similarity in historical retrievals are input into the pre-trained regression model, and the predicted fusion coefficient is output.

[0122] Figure 3 A regression model training flow chart of a knowledge retrieval method in an embodiment of the present disclosure is shown as follows: Figure 3 As shown, before generating the prediction fusion coefficient according to the user retrieval feature, the initial regression model needs to be trained. The regression model training steps of a knowledge retrieval method include the following S301 to S302.

[0123] S301. Obtain a model training set, where the model training set includes historical retrieval features of multiple users and corresponding fusion coefficient labels.

[0124] It should be noted that the user's historical search features include the user's historical click-through rate, the user's historical click-through knowledge order, the user's historical search typo probability and the user's historical search semantic similarity. The user's historical search features are used to train the regression model, in which the user may include the user who inputs the content to be detected, or may not include the user who inputs the content to be detected.

[0125] The model training set includes a training data set for model training and a test data set for model verification. The training data set and the test data set are divided according to a preset ratio.

[0126] For example, the model training set contains historical retrieval features of 2,000 users and their corresponding fusion coefficient labels, that is, the model training set contains 2,000 pieces of data, of which 1,600 pieces of data are training data sets and 400 pieces of data are test data sets.

[0127] S302: train an initial regression model based on historical retrieval features and fusion coefficient labels of multiple users, and if a preset training stop condition is met, use the initial regression model as a target regression model.

[0128] Exemplarily, the historical retrieval features and the fusion coefficient labels corresponding to the historical retrieval features are used as data pairs, the initial regression model uses the historical retrieval features in the training data set as input, and the fusion coefficient labels corresponding to the historical retrieval features as target outputs, and the data pairs in the training data set are traversed to train the initial regression model;

[0129] Traverse the data pairs in the test data set, test the trained initial regression model, and calculate the loss function of the test data set;

[0130] Determine whether the loss function is less than the preset value. If so, stop testing the initial regression model and obtain the target regression model. If not, continue training and testing the initial regression model until the loss function is less than the preset value.

[0131] It should be noted that the initial regression model can be a convolutional neural network model, and the preset value is preset in advance on the server. Exemplarily, the preset value can be 0.1. The value of the preset value is only an example provided to illustrate the embodiment of the present disclosure and should not be regarded as limiting the scope of protection of the present disclosure.

[0132] Figure 4 A flowchart of determining the number of retrieval results of a knowledge retrieval method in an embodiment of the present disclosure is shown. Figure 4 As shown, the plurality of candidate knowledge are sorted according to the fusion similarity to obtain the search results, which also includes the following S401 to S404.

[0133] S401. Obtaining the user's personal information, the personal information includes one or more of the user's click rate, the order of knowledge returned by the user's clicks, the probability of typos in historical searches, the semantic similarity of historical searches, years of work experience, expert level, years of professional experience, age, and gender.

[0134] S402: Process the personal information according to a preset decision matrix to obtain an information value.

[0135] Among them, the decision matrix represents the matrix expression of the relationship between the decision plan and relevant factors. The decision matrix is ​​constructed through personal information. The personal information includes user click rate, user click return knowledge order, historical search typo probability, historical search semantic similarity, working years, expert level, professional years, age and gender as relevant factors of the decision matrix, and the information value is the decision plan.

[0136] S403: Obtain a third data amount according to the information value.

[0137] A preset relationship correspondence table is queried according to the information value to obtain the third data volume. The preset relationship correspondence table stores the correspondence between the information value and the third data volume. For example, when the information value is less than or equal to 20, the corresponding third data volume is 20; when the information value is greater than 20 and less than or equal to 40, the corresponding third data volume is 10; when the information value is greater than 40 and less than or equal to 60, the corresponding third data volume is 5; when the information value is greater than 60 and less than or equal to 80, the corresponding third data volume is 3; when the information value is greater than 80 and less than or equal to 100, the corresponding third data volume is 1.

[0138] S404: Determine the candidate knowledge of the third data volume ranked first as the search result.

[0139] The present disclosure determines the number of search results based on a decision matrix. The decision matrix is ​​constructed using the user's basic information (age, gender, professional years, etc.) to predict the number of search results that best suit the user and improve the user experience. Exemplarily, the decision matrix is ​​constructed by historically retrieving the probability of typos, age, gender, years of work, expert level, and professional years, and the final third amount of candidate knowledge is output. For example, a senior expert in communications has a good memory of professional knowledge and very accurate search statements. Usually, the first candidate knowledge returned by the search is the content required by the expert, so only one is recommended, which reduces the time for experts to filter information and improves efficiency. Some experts are prone to typos in their searches and need to find the required content from multiple recommendations, so multiple contents are returned to improve the return recall rate.

[0140] For example, the user's to-be-retrieved content S1 is "how does a computer run", and the knowledge graph library stores the first candidate knowledge and the second candidate knowledge. The first candidate knowledge S2 is "how does a computer run", and the second candidate knowledge S3 is "how does a computer work". The edit distance similarity and semantic similarity between S1 and S2, as well as the edit distance similarity and semantic similarity between S1 and S3 are calculated. The edit distance similarity between S1 and S2 is 66.7%, the edit distance similarity between S1 and S3 is 71.4%, the semantic similarity between S1 and S2 is 40%, and the semantic similarity between S1 and S3 is 60%. By inputting the user's click rate, the order of knowledge returned by user clicks, the probability of historical retrieval typos, and the historical retrieval semantic similarity into the trained regression model, the predicted fusion coefficient is 0.8.

[0141] The expression of fusion similarity is as follows:

[0142] c=σb+(1-σ)a (Formula 1)

[0143] The fusion similarity of the first candidate knowledge S2 is:

[0144] c=0.8*66.7%+(1-0.8)*40%=61.36;

[0145] The fusion similarity of the second candidate knowledge S3 is:

[0146] c=0.8*71.4%+(1-0.8)*60%=69.12;

[0147] The first candidate knowledge and the second candidate data are sorted from large to small according to the fusion similarity, and the sorting result is {second candidate data, first candidate knowledge}.

[0148] The user basic information is processed according to the decision matrix, and the information value obtained is 98. According to the preset relationship correspondence table, the query information value is 98, and the corresponding third data amount returned is 1, so the returned detection result is the second candidate data.

[0149] Based on the same inventive concept, the present disclosure also provides a knowledge retrieval device in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0150] Figure 5 A schematic diagram of a knowledge retrieval device in an embodiment of the present disclosure is shown. Figure 5 As shown, the device includes a receiving module 51, a processing module 52, a prediction fusion coefficient generation module 53, a fusion similarity generation module 54 and a sorting module 55, wherein:

[0151] A receiving module 51, used for receiving the content to be searched and the user's search characteristics;

[0152] A processing module 52 is used to calculate the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library according to the preset knowledge graph library and the content to be retrieved;

[0153] A prediction fusion coefficient generation module 53, used to generate a prediction fusion coefficient according to user retrieval features;

[0154] A fusion similarity generation module 54, used to obtain fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient;

[0155] The sorting module 55 is used to sort multiple candidate knowledge according to the fusion similarity to obtain the retrieval result.

[0156] In one embodiment, the user search features include: user click rate, order of knowledge returned by user clicks, probability of wrong characters in historical searches, and semantic similarity in historical searches.

[0157] The prediction fusion coefficient generation module 53 is also used to process the user click rate, the user click return knowledge order, the historical search typo probability and the historical search semantic similarity according to the pre-trained target regression model to obtain the prediction fusion coefficient.

[0158] In one embodiment, Figure 6 As shown, the device further includes an acquisition module 61 and a training module 62, wherein:

[0159] An acquisition module 61 is used to acquire a model training set, wherein the model training set includes historical search features of multiple users and corresponding fusion coefficient labels;

[0160] The training module 62 is used to train an initial regression model based on the historical retrieval features and fusion coefficient labels of multiple users. If a preset training stop condition is met, the initial regression model is used as a target regression model.

[0161] In one embodiment, the prediction fusion coefficient generation module 53 is also used to

[0162] Constructing a first retrieval system based on edit distance similarity;

[0163] Constructing a second retrieval system based on semantic similarity;

[0164] The probability of returning the candidate knowledge of the first data volume ranked first when the user clicks the search on the first search system and the second search system is counted respectively, wherein the first search system and the second search system are online for the same length of time.

[0165] In one embodiment, the expression of fusion similarity is as follows:

[0166] c=σb+(1-σ)a

[0167] Among them, c is the fusion similarity, σ is the predicted fusion coefficient, a is the semantic similarity, and b is the edit distance similarity.

[0168] In one embodiment, the sorting module 55 is further used to sort the plurality of candidate knowledge from large to small according to the fusion similarity;

[0169] The candidate knowledge of the second data volume ranked first is determined as the search result.

[0170] In one embodiment, the ranking module 55 is further used to obtain the user's personal information, which includes one or more of the user's click rate, the order of knowledge returned by the user's click, the probability of wrong characters in historical searches, the semantic similarity of historical searches, years of work, expert level, years of professional experience, age and gender;

[0171] Process the personal information according to the preset decision matrix to obtain the information value;

[0172] According to the information value, a third data amount is obtained;

[0173] Sort multiple candidate knowledge according to the fusion similarity to obtain the retrieval results, which also include:

[0174] The candidate knowledge of the third data volume ranked first is determined as the search result.

[0175] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0176] Refer to the following Figure 7 An electronic device 700 according to this embodiment of the present disclosure is described. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0177] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include but are not limited to: at least one processing unit 710, at least one storage unit 720, and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710).

[0178] Among them, the storage unit stores a program code, and the program code can be executed by the processing unit 710, so that the processing unit 710 executes the steps described in the above "Exemplary Method" section of this specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 can execute the following steps of the above method embodiment: receiving the user's content to be retrieved and the user's search features; calculating the edit distance similarity and semantic similarity between the content to be retrieved and multiple candidate knowledge in the knowledge graph library based on the preset knowledge graph library and the content to be retrieved; generating a predicted fusion coefficient based on the user's search features; obtaining the fusion similarity based on the edit distance similarity, semantic similarity and predicted fusion coefficient; sorting multiple candidate knowledge based on the fusion similarity to obtain the retrieval result.

[0179] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .

[0180] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0181] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0182] The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0183] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0184] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, which may be a readable signal medium or a readable storage medium. Figure 8 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present disclosure is shown. Figure 8As shown, a program product capable of implementing the above method of the present disclosure is stored on the computer-readable storage medium 800. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.

[0185] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0186] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0187] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0188] In an exemplary embodiment of the present disclosure, a computer program product is also provided. The computer program product includes a computer program or computer instructions. The computer program or computer instructions are loaded and executed by a processor to enable a computer to implement any of the above-mentioned knowledge retrieval methods.

[0189] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0190] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0191] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0192] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0193] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope of the present disclosure is indicated by the appended claims.

Claims

1. A knowledge retrieval method, characterized in that: include: Receiving the content to be searched and the user's search characteristics, wherein the user's search characteristics include: user click rate, order of knowledge returned by user clicks, probability of wrong characters in historical searches, and semantic similarity of historical searches; According to a preset knowledge graph library and the content to be searched, calculating the edit distance similarity and semantic similarity between the content to be searched and multiple candidate knowledge in the knowledge graph library; generating a predicted fusion coefficient according to the user retrieval feature; Obtaining fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient; The multiple candidate knowledge are sorted according to the fusion similarity to obtain the retrieval result.

2. The knowledge retrieval method according to claim 1, characterized in that: The generating a prediction fusion coefficient according to the user retrieval feature comprises: The user click rate, the order of knowledge returned by the user click, the probability of wrong characters in the historical search and the semantic similarity of the historical search are processed according to the pre-trained target regression model to obtain a predicted fusion coefficient.

3. The knowledge retrieval method according to claim 2, characterized in that: Before receiving the content to be searched and the user search characteristics of the user, the method further includes: Obtaining a model training set, wherein the model training set includes historical retrieval features of multiple users and corresponding fusion coefficient labels; An initial regression model is trained according to the historical retrieval features of the multiple users and the fusion coefficient labels, and if a preset training stop condition is met, the initial regression model is used as a target regression model.

4. The knowledge retrieval method according to claim 2, characterized in that: The method for obtaining the user click rate is as follows: Constructing a first retrieval system according to the edit distance similarity; constructing a second retrieval system according to the semantic similarity; The probability of returning the candidate knowledge of the first data volume ranked first when the user clicks the search on the first retrieval system and the second retrieval system is counted respectively, wherein the first retrieval system and the second retrieval system are online for the same length of time.

5. The knowledge retrieval method according to claim 1, characterized in that: The expression of fusion similarity is as follows: c=σb+(1-σ)a Among them, c is the fusion similarity, σ is the predicted fusion coefficient, a is the semantic similarity, and b is the edit distance similarity.

6. The knowledge retrieval method according to claim 1, characterized in that: The step of sorting the plurality of candidate knowledge according to the fusion similarity to obtain the search results includes: Sort multiple candidate knowledge from large to small according to fusion similarity; The candidate knowledge of the second data volume ranked first is determined as the search result.

7. The knowledge retrieval method according to claim 1, characterized in that: The method further comprises: Obtaining the user's personal information, the personal information including one or more of the user's click rate, the order of knowledge returned by the user's clicks, the probability of wrong characters in historical searches, the semantic similarity of historical searches, years of work experience, expert level, years of professional experience, age and gender; Processing the personal information according to a preset decision matrix to obtain an information value; According to the information value, a third data amount is obtained; The step of sorting the plurality of candidate knowledge according to the fusion similarity to obtain the search result further includes: The candidate knowledge of the third data volume ranked first is determined as the search result.

8. A knowledge retrieval device, characterized in that: include: A receiving module, used for receiving the content to be searched and the user's search characteristics, wherein the user's search characteristics include: user click rate, order of knowledge returned by user clicks, probability of wrong characters in historical searches, and semantic similarity of historical searches; A processing module, used for calculating the edit distance similarity and semantic similarity between the content to be retrieved and a plurality of candidate knowledge in the knowledge graph library according to a preset knowledge graph library and the content to be retrieved; A prediction fusion coefficient generation module, used to generate a prediction fusion coefficient according to the user retrieval feature; A fusion similarity generation module, used to obtain fusion similarity according to the edit distance similarity, the semantic similarity and the predicted fusion coefficient; The sorting module is used to sort the multiple candidate knowledge according to the fusion similarity to obtain the retrieval result.

9. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; Wherein, the processor is configured to execute the knowledge retrieval method described in any one of claims 1-7 by executing the executable instructions.

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 knowledge retrieval method described in any one of claims 1 to 7 is implemented.