An information retrieval method and system based on multi-hop knowledge reasoning
By constructing an information retrieval method for multi-hop knowledge reasoning, and using the knowledge graph model and prior knowledge of path selection, the problem of insufficient and unreliable information retrieval in massive data is solved, and efficient and reliable information retrieval and reasoning path are achieved. supply.
Patent Information
- Application Number
- CN202111609942.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Existing information retrieval methods cannot make full use of knowledge graphs in massive data, resulting in insufficient and unreliable retrieval results and a lack of reasoning basis.
Adopting an information retrieval method based on multi-hop knowledge reasoning, by establishing a retrieval database, constructing a knowledge graph model, using the prior knowledge and policy network of path selection to improve the accuracy and credibility of the reasoning path, and integrating user queries with the retrieval database information for matching and aggregation.
It effectively improves the utilization value of massive data, provides interpretable reasoning paths, ensures the accuracy and reliability of retrieval results, and solves the problems of insufficient and invisible retrieval results in traditional methods.
Smart Images

Figure CN114398895B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information retrieval, and in particular to an information retrieval method and system based on multi-hop knowledge reasoning. Background Art
[0002] Information Retrieval (IR) is a process of finding relevant information in a retrieval database based on specific user needs. With the advent of the big data era, the size of data continues to increase, and the types of data have become more diverse. How to accurately and efficiently search in massive amounts of data is an important issue. Traditional information retrieval methods, such as Boolean logic retrieval, proximity retrieval, phrase retrieval, truncation retrieval, field restriction retrieval, etc., are just simple matching and do not fully explore the correlation between data in the context of big data.
[0003] Knowledge graph is a structured form that describes concepts, entities and their relations in the objective world. It expresses Internet information in a form closer to the human cognitive world and provides a better way to organize, manage and understand information. Knowledge representation learning is a technology that represents various knowledge in the knowledge graph in a way that can be stored and calculated by computers. The current mainstream knowledge representation method is to represent entities and relations in the knowledge graph as dense low-dimensional vectors. And reasoning about information is performed through the connection of dense vectors in high-dimensional space. However, this method of reasoning based on embedded vectors cannot provide a basis for model reasoning.
[0004] Explainable knowledge graph reasoning methods have been widely studied in recent years, and the multi-hop knowledge reasoning model based on reinforcement learning is the mainstream model in this research direction. Compared with the traditional embedded model, this multi-hop knowledge reasoning model can not only provide the result of reasoning, but also provide a reasoning path to explain the reasoning process.
[0005] In the context of big data, the amount of information in the search database is also expanding rapidly, but the existing information retrieval methods do not use this data to build a knowledge graph, so they cannot use the information in the search database for reasoning and prediction. This makes it impossible to fully utilize the information in the search database, and under some search conditions, the search results will become insufficient and unreliable. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the present invention provides an information retrieval method and system based on multi-hop knowledge reasoning.
[0007] In order to solve the above technical problems, the technical solution adopted by the present invention is: an information retrieval method and system based on multi-hop knowledge reasoning, comprising the following steps:
[0008] Step 1: Establish a search database and pre-process the information in the search database;
[0009] The information in the retrieval library includes: database information and multimodal information. The preprocessing method of the multimodal information is as follows:
[0010] S1: Obtain text data from multimodal information;
[0011] S2: Use known named entities to identify entities in annotated text;
[0012] S3: Use known relationship extraction methods to obtain the relationship between entities;
[0013] S4: Convert unstructured text data into structured data in the form of (entity, relationship, entity).
[0014] Step 2: Build a knowledge base document based on the information in the retrieval library. The process is as follows:
[0015] Step 2.1: For the database information, reconstruct each piece of data in the form of (noun, attribute, attribute value) in the form of (entity, relationship, entity), obtain the reconstructed data, and then add it to the knowledge base document;
[0016] Step 2.2: For multimodal information, the structured data in the converted (entity, relationship, entity) format is directly added to the knowledge base document in the form of (entity, relationship, entity);
[0017] Step 2.3: Get the entity list and relationship list related to the knowledge base document, and define the data appearing in the knowledge base document as a triple in the form of (h, r, t), where h is the head entity, r is the relationship, and t is the tail entity. The specific process is as follows:
[0018] Step 2.3.1: Each piece of data in the form of (entity, relationship, entity) in the knowledge base document is defined as (e, r, e);
[0019] Step 2.3.2: Organize all entities that appear in the knowledge base documents into a set and define this set as E;
[0020] Step 2.3.3: Organize the relationships between entities into a set and define it as R;
[0021] Step 2.3.4: Define the entity that appears in the first position as the head entity, denoted by h, and define the entity that appears in the third position as the tail entity, denoted by t, where h, t∈E; r∈R;
[0022] Step 2.3.5: Define all data appearing in the knowledge base document as (h, r, t) forms, called triples.
[0023] Step 3: Construct a knowledge graph model for multi-hop knowledge reasoning to discover the relationship between knowledge in the retrieval library;
[0024] Furthermore, when constructing the knowledge graph model of the multi-hop knowledge reasoning, the prior knowledge of path selection is introduced, and then the prior knowledge of path selection is integrated into the policy network P. When the policy network P outputs the path selection probability, the output probability is adjusted according to the prior information, and the weight of the prior information is gradually reduced as the number of model training times increases.
[0025] The method for acquiring the prior knowledge of the path selection is as follows:
[0026] S1: Find multiple translation paths for each relationship r for translation. Each translation path pi consists of a relationship sequence, expressed as pi = [ri1, ri2, ..., rin], where ri1 is the first relationship in the translation path pi, ri2 is the second relationship in the translation path pi, and rin is the nth relationship in the translation path pi;
[0027] S2: For each translation path pi, the path-constrained resource allocation PCRA algorithm is used to calculate the degree of resource loss on the path when translating with the help of path pi, which is used to reflect the reliability of the translation;
[0028] S3: Eliminate translation paths with reliability levels below a threshold from multiple translation paths, and add the remaining translation paths as prior knowledge for path selection into the subsequent training of the multi-hop reasoning model.
[0029] Step 4: Match the user's query content with the content in the search database. If a match is successful, search for all corresponding matching information in the search database;
[0030] The matching methods used to match the content of the user's query with the content in the search library include: Boolean logic search, proximity search, phrase search, truncation search, field restriction search, etc.
[0031] Step 5: Use the knowledge graph model of multi-hop knowledge reasoning built in step 3 to predict the content of the user's query and obtain the credibility of the predicted content;
[0032] Step 6: Sort the prediction contents according to the credibility values and eliminate the prediction contents with low credibility;
[0033] Step 7: After removing the prediction content with low credibility in step 6, the prediction content remaining is searched for corresponding matching information in the search library, and is aggregated with the matching information obtained in step 4, and the final result is compiled and fed back to the user.
[0034] On the other hand, the present invention also designs an information retrieval system based on multi-hop knowledge reasoning for the above-mentioned information retrieval method based on multi-hop knowledge reasoning, the system comprising: a retrieval library information processing module, an information retrieval module, a knowledge graph learning module and an interactive interface;
[0035] The retrieval library information processing module processes the database information in the retrieval library and the text data in the multimodal information, processes the information in the retrieval library into triples for representation learning, reconstructs it into a knowledge base document with rich content, obtains the relevant entity list and relationship list, and transmits it to the knowledge graph learning module;
[0036] The knowledge graph learning module takes the knowledge base file transmitted by the retrieval library information processing module as input, and learns the distributed structured information between entities and relations in the triples in the knowledge base file through the knowledge representation learning method; at the same time, the knowledge graph model of multi-hop knowledge reasoning is trained to improve the accuracy of reasoning path selection;
[0037] The interactive interface allows the user to input the information they want to retrieve and transmit it to the information retrieval module;
[0038] The information retrieval module provides users with an efficient, comprehensive and reliable information retrieval method, that is, using steps 4 to 7 of the information retrieval method based on multi-hop knowledge reasoning to implement information retrieval and display the retrieval results to users.
[0039] The beneficial effects of adopting the above technical solution are:
[0040] 1. The method provided by the present invention uses the information in the search library to build a knowledge base, which can effectively improve the utilization value of the massive data in the search library. Compared with the traditional search method, the information retrieval method with the help of the knowledge graph can fully explore the hidden knowledge in the search library. It solves the problem that the search results of the traditional search method are insufficient, and the search basis is invisible and unreliable in the search process of specific search conditions.
[0041] 2. The method provided by the present invention aims to solve the problem that the existing knowledge graph cannot provide a basis for reasoning. It introduces explainable factors into the reasoning process, namely, a multi-hop knowledge reasoning model: after using the knowledge graph for reasoning, the corresponding reasoning path can be obtained to explain the process of knowledge graph reasoning.
[0042] 3. The present invention also provides an information retrieval system based on multi-hop knowledge reasoning, through which users can retrieve system information accurately and efficiently. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flow chart of an information retrieval method based on multi-hop knowledge reasoning in an embodiment of the present invention;
[0044] Figure 2 This is a flow chart of a multi-hop reasoning algorithm in an embodiment of the present invention;
[0045] Figure 3 Schematic diagram of the structure of an information retrieval system based on multi-hop knowledge reasoning in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.
[0047] like Figure 1 As shown, the information retrieval method based on multi-hop knowledge reasoning in this embodiment is described as follows.
[0048] Step 1: Establish a search database and pre-process the information in the search database;
[0049] The information in the retrieval library includes: database information and multimodal information. The preprocessing method of the multimodal information is as follows:
[0050] S1: Obtain text data from multimodal information;
[0051] S2: Use known named entities to identify entities in annotated text;
[0052] S3: Use known relationship extraction methods to obtain the relationship between entities;
[0053] S4: Convert unstructured text data into structured data in the form of (entity, relationship, entity).
[0054] Step 2: Build a knowledge base document based on the information in the retrieval library. The process is as follows:
[0055] Step 2.1: For the database information, reconstruct each piece of data in the form of (noun, attribute, attribute value) in the form of (entity, relationship, entity), obtain the reconstructed data, and then add it to the knowledge base document;
[0056] Step 2.2: For multimodal information, the structured data in the converted (entity, relationship, entity) format is directly added to the knowledge base document in the form of (entity, relationship, entity);
[0057] Step 2.3: Get the entity list and relationship list related to the knowledge base document, and define the data appearing in the knowledge base document as a triple in the form of (h, r, t), where h is the head entity, r is the relationship, and t is the tail entity. The specific process is as follows:
[0058] Step 2.3.1: Each piece of data in the form of (entity, relationship, entity) in the knowledge base document is defined as (e, r, e);
[0059] Step 2.3.2: Organize all entities that appear in the knowledge base documents into a set and define this set as E;
[0060] Step 2.3.3: Organize the relationships between entities into a set and define it as R;
[0061] Step 2.3.4: Define the entity that appears in the first position as the head entity, denoted by h, and define the entity that appears in the third position as the tail entity, denoted by t, where h, t∈E; r∈R;
[0062] Step 2.3.5: All data appearing in the knowledge base document are defined as (h, r, t) forms, which are called triples. In this embodiment, taking the text "Paris is the capital of France" as an example, through the method of named entity recognition, we can mark the information such as "Paris" and "France" in the text as entities, and extract the relationship between the two entities. There is a "located in" relationship between the entities "Paris" and "France". The institutional information (Paris, located in, France) can be extracted from the original text data, and organized into structured documents, stored in a structured manner, and further organized into knowledge base documents and relationship and entity lists.
[0063] As for the database information, it is structured data and can be directly added to the search content database. For example, for the data of national geographical relationship in Table 1 below, the data in the table is converted into a triple (h, r, t) form such as (Paris, located in, France) and (Paris, adjacent to, Villers-Cotterês).
[0064] Table 1 Geographical relationship of countries
[0065] Place name relation Place name Paris lie in France Paris Neighborhood villescotrets … … …
[0066] Step 3: Construct a knowledge graph model for multi-hop knowledge reasoning to discover the relationship between knowledge in the retrieval library;
[0067] Furthermore, when constructing the knowledge graph model of multi-hop knowledge reasoning, the prior knowledge of path selection is introduced to increase the accuracy of model prediction and the reliability of the reasoning path. The prior knowledge of path selection is then integrated into the policy network P, as shown in Figure 2 As shown in the figure, when the policy network P outputs the path selection probability, the output probability is adjusted according to the prior information, and the weight of the prior information is gradually reduced as the number of model training times increases.
[0068] The method for acquiring the prior knowledge of the path selection is as follows:
[0069] S1: Find multiple translation paths for each relationship r for translation. Each translation path pi consists of a relationship sequence, expressed as pi = [ri1, ri2, ..., rin], where ri1 is the first relationship in the translation path pi, ri2 is the second relationship in the translation path pi, and rin is the nth relationship in the translation path pi;
[0070] S2: For each translation path pi, the path-constrained resource allocation PCRA algorithm is used to calculate the degree of resource loss on the path when translating with the help of path pi, which is used to reflect the reliability of the translation;
[0071] S3: Eliminate translation paths with reliability levels below a threshold from multiple translation paths, and add the remaining translation paths as prior knowledge for path selection into the subsequent training of the multi-hop reasoning model.
[0072] In this embodiment, before training the multi-hop reasoning model, it is preferred to pre-train an embedded model using the data in the knowledge base document. In this embodiment, the knowledge representation learning method TransE is used as the embedded model. Through the pre-trained embedded model, the vectors of each entity and relationship in the entity list and relationship list in the low-dimensional dense space can be obtained. Since they have been pre-trained, the vectors of these entities and relationships have integrated a lot of information in the knowledge base. For example, for the vector e1 of "Paris", the vector r of "located", and the vector e2 of "France", e1+r≈e2.
[0073] The reasoning process of the multi-hop reasoning model is essentially a sequential decision-making process, which can be implemented through a deep reinforcement learning framework. 1q R q The entity corresponding to the relationship is denoted as (e 1q ,rq ,? ), we need to define the model's states as S, actions as A, transitions as T, and rewards as R. The states will include the node e that the model has currently reached. t , the head node e that you want to infer 1q And the questions you want to reason about q , denoted as (e t ,e 1q ,r q ). Actions include the relationship (inverse relationship) contained in the current node and the node at the other end of the relationship (inverse relationship). In addition, it also includes a special relationship, that is, the action from the current node to the current node itself. Transition is when the policy network P selects an action based on the current state S, action As, and prior path selection information, and transfers to the next state S based on the selected action A, denoted as S×A→S. Rewards is when the model is given a reward score based on the association between the last inferred state and the target state, denoted as R(S T )=Rb(S T )+(1-Rb(S T ))f(e 1q ,r q ,e t ), R(S T )=I{et=e 2q}. Where I{true}=1,{false}=0. f(e 1q ,r q ,e t ) is an evaluation of the correlation between the inferred state and the target state based on the pre-trained embedded model. The deep reinforcement learning framework will strengthen the path to obtain the reward based on the final reward.
[0074] The above processing is performed on all r in the knowledge base document, and the PCRA algorithm is used to calculate the paths with higher reliability, so that the reliable translation path of each relationship can be screened out.
[0075] In this embodiment, the specific method of adjusting the output probability according to the prior information is as follows:
[0076] ~relation_att=clamp(relation_att+pa_att*pa_factor,max=1)
[0077] Among them, relation_att is the prediction result of the policy network P, pa_att is the prior knowledge, pa_factor is the parameter that controls the weight of the prior information, ~relation_att is the prediction result combined with the prior knowledge, and clamp is the formula that limits the adjusted prediction value to no more than 1. The parameter pa_factor that controls the weight of the prior information gradually decreases with the increase in the number of training times.
[0078] In this embodiment, during the training of the multi-hop reasoning model, for the training data (Villers-Cottereis, located in France), the multi-hop reasoning model will first start from the entity "Villers-Cottereis", denoted as e 维莱科特雷 , start looking for the reasoning path and initialize the state S = (e 维莱科特雷 , e 维莱科特雷 , r 位于 ), the historical selection record is H = LSTM[0,(r0,e 维莱科特雷 )]. Find all the actions that can be performed in the graph according to the current node (Villers-Cotterei), which is recorded as the action space The policy network P selects the current state S, the historical record H and the action space A. 维莱科特雷 To calculate the probability a of each action being selected in the action space 维莱科特雷 ~ =[0.1,0.5,0.3,0.01…], where ||a 维莱科特雷 ~||1=1Then according to the statistical prior knowledge, a 维莱科特雷 ~Adjust to get a 维莱科特雷 =[0.05,0.7,0.2,0.01…], where ||a 维莱科特雷 ||1=1. Then the model samples actions according to the adjusted probability. Since the probability of action (Villers-Cotteres, Neighborhood, Paris) is the highest, it is assumed here that the action (Villers-Cotteres, Neighborhood, Paris) is selected and jumps to the next state Paris. At this time, the state is updated to (e 巴黎 , e 维莱科特雷 , r 位于 )The historical selection record is updated to H = LSTM [H, (r 邻近 ,e 巴黎 )]. Then the action space is obtained based on the knowledge graph And use the policy network and prior knowledge to obtain the probability a of the action being selected in the current state 巴黎 = [0.8, 0.1, 0.0.05, 0.01…]. Finally, the model can jump to the entity France, at which point the reward function R(S T )=Rb(S T)+(1-Rb(S T ))f(e 1q ,r q ,e t ), R(S T )=I{et=e 2q}. Reasoning Path [Villers-Cotterêt- 邻近 —>Paris— 位于 —>France] will be awarded 1 point, and the model will therefore strengthen the probability of this path being chosen.
[0079] Step 4: Match the user's query content with the content in the search database. If a match is successful, search for all corresponding matching information in the search database;
[0080] The matching methods used to match the content of the user's query with the content in the search library include: Boolean logic search, proximity search, phrase search, truncation search, field restriction search, etc.
[0081] Step 5: Use the knowledge graph model of multi-hop knowledge reasoning built in step 3 to predict the content of the user's query and obtain the credibility of the predicted content;
[0082] During the prediction process, the trained multi-hop model is used to perform beam search to obtain the prediction results, prediction paths, and prediction credibility rankings of the corresponding questions.
[0083] Step 6: Sort the prediction contents according to the credibility values and eliminate the prediction contents with low credibility;
[0084] Step 7: After removing the prediction content with low credibility in step 6, the prediction content remaining is searched for corresponding matching information in the search library, and is aggregated with the matching information obtained in step 4, and the final result is compiled and fed back to the user.
[0085] On the other hand, this embodiment also designs an information retrieval system based on multi-hop knowledge reasoning for the above-mentioned information retrieval method based on multi-hop knowledge reasoning. The system structure is as follows: Figure 3 As shown, it includes: a retrieval library information processing module, an information retrieval module, a knowledge graph learning module and an interactive interface;
[0086] The retrieval library information processing module processes the database information in the retrieval library and the text data in the multimodal information, processes the information in the retrieval library into triples for representation learning, reconstructs it into a knowledge base document with rich content, and obtains the relevant entity list and relationship list, saves this information in a file, and transmits it to the knowledge graph learning module;
[0087] The knowledge graph learning module takes the knowledge base file transmitted by the retrieval library information processing module as input, and learns the distributed structured information between entities and relations in the triples in the knowledge base file through the knowledge representation learning method; at the same time, the knowledge graph model of multi-hop knowledge reasoning is trained to improve the accuracy of reasoning path selection;
[0088] The interactive interface allows the user to input the information they want to retrieve and transmit it to the information retrieval module;
[0089] The information retrieval module provides users with an efficient, comprehensive and reliable information retrieval method, that is, using the method of steps 4 to 7 in the information retrieval method based on multi-hop knowledge reasoning to realize information retrieval and display the retrieval results to users. When displaying, the results are displayed from high to low according to the reliability of reasoning, so that users can extract more relevant information.
[0090] In this embodiment, if "Jordan's teammates" are searched, the traditional search method will give the search results [(Pippen is undoubtedly the greatest teammate of Jordan's career. Among all the people on this list, he is the only teammate that remains unchanged in all of Jordan's championship seasons. Although the Bulls...), (Although Vincent's greatest contribution to the Bulls may be his brief point guard career under Jordan, he was a stable starter for the Chicago Bulls in the early stages of Jordan's career. In)...].
[0091] In addition to the traditional retrieval method, this system will use the multi-hop reasoning model to reason (Jordan, teammates,?), and obtain the prediction results [Kukoc 0.4, Grant 0.2,...] and the prediction path ([Jordan— 队员 —>Chicago Bulls— 队员 - —>Kukoc], [Jordan— 队友 —>Armstrong— 队友 —>Grant],…), and retrieve relevant information from the search database based on the prediction results, and sort out the inference results [(Kukoc, born on September 18, 1968, inducted into the Basketball Hall of Fame in 2021…), (Grant, born on October 9, 1992, MVP of the 2016 Las Vegas Summer League Finals…)]
[0092] From the above description, it can be seen that the present invention makes use of the massive amount of information in the search library and uses a multi-hop knowledge reasoning model to explore the relationship between various knowledge in the search library. In the search process, the multi-hop knowledge reasoning model is used to reason about the search answer and provide the user with a reasoning path to obtain the search result. The problem that the search results are insufficient and the search basis is invisible and unreliable under some search conditions is solved. A corresponding information retrieval system application is also provided, providing users with an accurate and efficient search method.
Claims
1. An information retrieval method based on multi-hop knowledge reasoning, characterized in that: The steps include: Step 1: Establish a search database and pre-process the information in the search database; Step 2: Build a knowledge base document based on the information in the retrieval database; Step 3: Construct a knowledge graph model for multi-hop knowledge reasoning to discover the relationship between knowledge in the retrieval library; Step 4: Match the user's query content with the content in the search database. If a match is successful, search for all corresponding matching information in the search database; Step 5: Use the knowledge graph model of multi-hop knowledge reasoning built in step 3 to predict the content of the user's query and obtain the credibility of the predicted content; Step 6: Sort the prediction contents according to the credibility values and eliminate the prediction contents with low credibility; Step 7: After removing the prediction contents with low credibility in step 6, the prediction contents remaining are searched for corresponding matching information in the search library, and are aggregated with the matching information obtained in step 4, and the final results are sorted and fed back to the user; When constructing the knowledge graph model of the multi-hop knowledge reasoning, the prior knowledge of path selection is introduced, and then the prior knowledge of path selection is integrated into the policy network P. When the policy network P outputs the path selection probability, the output probability is adjusted according to the prior information, and the weight of the prior information is gradually reduced as the number of model training increases; The method for acquiring the prior knowledge of the path selection is as follows: S1: Find multiple translation paths for each relationship r for translation. Each translation path pi consists of a relationship sequence, expressed as pi = [ri1, ri2, ..., rin], where ri1 is the first relationship in the translation path pi, ri2 is the second relationship in the translation path pi, and rin is the nth relationship in the translation path pi; S2: For each translation path pi, the path-constrained resource allocation PCRA algorithm is used to calculate the degree of resource loss on the path when translating with the help of path pi, which is used to reflect the reliability of the translation; S3: Eliminate translation paths with reliability levels below a threshold from multiple translation paths, and add the remaining translation paths as prior knowledge for path selection into the subsequent training of the multi-hop reasoning model.
2. The information retrieval method based on multi-hop knowledge reasoning according to claim 1 is characterized in that: The information in the retrieval library includes: database information and multimodal information.
3. The information retrieval method based on multi-hop knowledge reasoning according to claim 2 is characterized in that: The preprocessing method of the multimodal information is as follows: S1: Obtain text data from multimodal information; S2: Use known named entities to identify entities in annotated text; S3: Use known relationship extraction methods to obtain the relationship between entities; S4: Convert unstructured text data into structured data in the form of (entity, relationship, entity).
4. The information retrieval method based on multi-hop knowledge reasoning according to claim 3 is characterized in that: The process of step 2 is as follows: Step 2.1: For the database information, reconstruct each piece of data in the form of (noun, attribute, attribute value) in the form of (entity, relationship, entity), obtain the reconstructed data, and then add it to the knowledge base document; Step 2.2: For multimodal information, the structured data in the converted (entity, relationship, entity) format is directly added to the knowledge base document in the form of (entity, relationship, entity); Step 2.3: Obtain the entity list and relationship list related to the knowledge base document, and define the data appearing in the knowledge base document as a triple in the form of (h, r, t), where h is the head entity, r is the relationship, and t is the tail entity.
5. The information retrieval method based on multi-hop knowledge reasoning according to claim 4 is characterized in that: The process of step 2.3 is as follows: Step 2.3.1: Each piece of data in the form of (entity, relationship, entity) in the knowledge base document is defined as (e, r, e); Step 2.3.2: Organize all entities that appear in the knowledge base documents into a set and define this set as E; Step 2.3.3: Organize the relationships between entities into a set and define it as R; Step 2.3.4: Define the entity that appears in the first position as the head entity, denoted by h, and define the entity that appears in the third position as the tail entity, denoted by t, where h, t∈E; r∈R; Step 2.3.5: Define all data appearing in the knowledge base document as (h, r, t) forms, called triples.
6. The information retrieval method based on multi-hop knowledge reasoning according to claim 1 is characterized in that: The matching methods used in step 4 to match the content of the user's query with the content in the search library include: Boolean logic search, proximity search, phrase search, truncation search and field restriction search.
7. The information retrieval system based on multi-hop knowledge reasoning applies the information retrieval method based on multi-hop knowledge reasoning as claimed in any one of claims 1 to 6, characterized in that: System includes : Retrieval database information processing module, information retrieval module, knowledge graph learning module and interactive interface; The retrieval library information processing module processes the database information in the retrieval library and the text data in the multimodal information, processes the information in the retrieval library into triples for representation learning, reconstructs it into a knowledge base document with rich content, obtains the relevant entity list and relationship list, and transmits it to the knowledge graph learning module; The knowledge graph learning module takes the knowledge base file transmitted by the retrieval library information processing module as input, and learns the distributed structured information between entities and relations in the triples in the knowledge base file through the knowledge representation learning method; at the same time, the knowledge graph model of multi-hop knowledge reasoning is trained to improve the accuracy of reasoning path selection; The interactive interface allows the user to input the information they want to retrieve and transmit it to the information retrieval module; The information retrieval module provides users with an efficient, comprehensive and reliable information retrieval method, that is, using steps 4 to 7 of the information retrieval method based on multi-hop knowledge reasoning to implement information retrieval and display the retrieval results to users.
