Information search method and related equipment
By using topological graphs in conversational search to represent information and relationships in the search session, the accuracy and efficiency of information search are improved, and the problem of insufficient information understanding in the existing technology is solved.
Patent Information
- Application Number
- CN202310833330.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-19
- Filing Date
- 2023-07-07
- Publication Date
- 2024-09-20
AI Technical Summary
Existing conversational search methods are difficult to effectively represent the information in the search session, resulting in insufficient understanding of user search intentions and reducing the accuracy and efficiency of information search.
The topological graph is used as the input of the session search model. By constructing a topological graph including nodes and their relationships of query information, query results and keywords, the input graph neural network is used for feature extraction and sorting, maximizing the relationship between global features and local features. Correlation to improve model representation capabilities.
It improves the accuracy and efficiency of information search, can more accurately understand users' search intentions, and provides search results that meet user needs.
Smart Images

Figure CN118673207A
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office of China on March 19, 2023, with application number 202310264811.1 and invention name “A conversation retrieval method based on pre-training and heterogeneous graph classification”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of artificial intelligence (AI) technology, and in particular to an information search method, system, computing device cluster, computer-readable storage medium, and computer program product. Background Art
[0003] With the continuous development of computer technology, the types and quantity of information are showing an explosive growth trend. In order to facilitate users to obtain information related to specific content, search engines came into being. A search engine is an information retrieval system designed to assist in searching for information on the Internet. Specifically, a search engine can perform a query based on the query information input by a user, obtain multiple candidate query results that meet the query conditions, and sort the multiple candidate query results based on the correlation between the candidate query results and the query information, determine the sorted multiple candidate query results as search results, and return the search results to the user.
[0004] In actual search, a user enters query information to start a search session. The user can modify the query information multiple times in a search session to obtain satisfactory search results. The search engine can understand the user's search intent based on the search session, and thus provide the user with candidate query results that meet the search intent. The above method is also called session search.
[0005] In conversational search, search engines usually use search sessions to build search sequences. For example, they use multiple query information of users and the query results clicked under each query information to build a search sequence, and input the search sequence into a recurrent neural network (RNN). According to the output of the RNN, the correlation between the candidate query results under the current query information and the current query information is determined, thereby ranking the candidate query results. However, it is difficult for a linear search sequence to effectively represent the information included in a search session, so it is difficult to accurately understand the user's search intent, which reduces the accuracy of the search. Summary of the invention
[0006] The present application provides an information search method, which uses a topology map as the input of a session search model, and can improve the accuracy and efficiency of information search. The present application also provides an information search system, a computing device cluster, a computer-readable storage medium, and a computer program product corresponding to the method.
[0007] In a first aspect, the present application provides an information search method, which can be performed by an information search system. The information search system can be a software system, such as a search engine, which can be deployed in a computing device cluster. The computing device cluster executes the information search method of the present application by executing the program code of the software system. In some possible implementations, the information search system can also be a hardware system with an information search function, which executes the information search method of the present application when the hardware system is running. For example, the information search system can be a computing device cluster with an information search function.
[0008] Specifically, the information search system obtains a first search session, wherein the first search session includes current query information, historical query information, and a target query result selected from the search results corresponding to the historical query information, and then, based on the current query information, the historical query information, and the target query result corresponding to the historical query information, a topological graph is constructed for at least one of a plurality of candidate query results corresponding to the current query information, the topological graph including a first node for indicating the query information, a second node for indicating the query result, a third node for indicating keywords, and relationship information between the nodes, and then the topological graph corresponding to the at least one candidate query result is input into a session search model to obtain the search results of the current query information.
[0009] The method constructs a topological graph of candidate query results corresponding to the current query information. Since the topological graph includes different types of nodes for indicating query information, query results and keywords, as well as the relationship information of the nodes, the topological graph can represent the various information included in the search session and the relationship between the various information. In this way, using the topological graph as the input of the session search model can accurately understand the user's search intention, obtain search results that meet the user's retrieval needs, and improve the accuracy and efficiency of information search.
[0010] In some possible implementations, at least one candidate query result includes a first candidate query result, the information search system may extract keywords from current query information, historical query information and target query results, determine a first node based on the current query information and historical query information, determine a second node based on the target query result and the first candidate query result, and determine a third node based on the keywords. Then the information search system may determine first relationship information indicating the first node of the current query information and the first node indicating the historical query information, second relationship information indicating the first node of the historical query information and the second node indicating the target query result, and third relationship information indicating the first node of the query information, the second node indicating the query result and the third node indicating the keyword.
[0011] The topology map constructed by the method includes multiple types of nodes for indicating different information, so that the topology map can represent the multiple information included in the search session and the relationship between the multiple information. Compared with the search sequence constructed by using the search session, the topology map can focus on the topological structure of the search session and the heterogeneity of information in the search session, and optimize the representation capability for the search session.
[0012] In some possible implementations, the first search session includes current query information, first historical query information, and a first target query result selected from the search results corresponding to the first historical query information. The information search system can also obtain a second search session, wherein the second search session includes second historical query information and a second target query result selected from the search results corresponding to the second historical query information, and the second target query result is the same as the first target query result. The information search system can construct a topological graph for at least one candidate query result among the multiple candidate query results corresponding to the current query information based on the current query information, the first historical query information, the second historical query information, and the first target query result.
[0013] The topological map constructed by this method can introduce nodes corresponding to external search sessions. For the case where the same target query result is selected in different search sessions, considering that the second historical query information in the external search session and the first historical query information in the first search session can represent similar search intentions, by adding a node for indicating the second historical query information to the topological map, the external search session is utilized to enrich the information that can be represented in the topological map.
[0014] In some possible implementations, the first search session includes current query information, first historical query information, and a first target query result selected from the search results corresponding to the first historical query information. The information search system may also obtain a third search session, wherein the third search session includes third historical query information matching the first historical query information and a third target query result selected from the search results corresponding to the third historical query information. The information search system may construct a topological graph for at least one of the multiple candidate query results corresponding to the current query information based on the current query information, the first historical query information, the first target query result, and the third target query result.
[0015] The topological graph constructed by this method can introduce nodes corresponding to external search sessions. For the situation where similar query information exists in different search sessions, considering that the third target query result in the external search session and the first target query result in the first search session can represent similar choices under search intentions, by adding a second node for indicating the third query result to the topological graph, the external search session is utilized to enrich the information that can be represented in the topological graph.
[0016] In some possible implementations, the information search system may determine third historical query information having a similarity greater than a set similarity threshold as historical query information that matches the first historical query information, thereby achieving matching of historical query information in the current search session with historical query information in an external search session.
[0017] In some possible implementations, the conversation search model includes a graph model and a classifier. The information search system may input a topological graph corresponding to at least one candidate query result into the graph model for feature extraction to obtain a first feature and a second feature, wherein the first feature includes a feature of the topological graph and the second feature includes a feature of at least one candidate query result. Then, the information search system may input the first feature and the second feature into the classifier to obtain a prediction result, wherein the prediction result includes a correlation between at least one candidate query result and the current query information.
[0018] This method uses a graph model to learn topological graph structure data and extracts features of the topological graph and candidate query results, and then uses a classifier to obtain the relevance of the candidate query results to the current query information (for example, a relevance score). In this way, the candidate query results can be sorted by relevance to provide users with search results with higher relevance.
[0019] In some possible implementations, the graph model includes a graph neural network and a pooling layer. The graph neural network takes a topological graph as input and a second feature as a first output. The pooling layer takes the second output of the graph neural network as input and a first feature as an output. The second output of the graph neural network includes features of nodes and relationship information in the topological graph.
[0020] This method uses a pooling layer to perform pooling processing on each type of node separately, so as to distinguish multiple types of nodes in the topology map, so that the first feature output by the pooling layer includes different features corresponding to different types of nodes in the topology map, and then extracts more fine-grained features, thereby improving the representation ability of the conversation search model.
[0021] In some possible implementations, the information search system may train a conversational search model with the goal of maximizing the correlation between global features and local features in a topological graph.
[0022] This method trains a conversation search model with the goal of maximizing the correlation between global features and local features in a topological graph, thereby improving the association or mutual information between local features and global features corresponding to the node types of the local features, thereby improving the representation ability of the conversation search model.
[0023] In some possible implementations, the session search model includes a graph model, which is used to extract global features and local features in a topological map. The information search system can obtain a topological map sample and use the graph model to extract global features and local features of the topological map sample, wherein the topological map sample includes a first topological map and at least one second topological map. Then, the information search system constructs a positive sample for at least one target type node among the multiple types of nodes included in the first topological map based on the global features corresponding to the target type node and the local features corresponding to the target type node, and constructs a negative sample based on the global features corresponding to the target type node and the local features of the second topological map, and inputs the positive and negative samples into a discriminator, and updates the parameters of the graph model based on the discrimination result and the target.
[0024] The positive samples constructed by the method include local features and global features corresponding to the node type of the local features, and the negative samples include global features corresponding to the node type of the local features and local features in other topological graphs. The conversation search model is pre-trained using the positive and negative samples to improve the correlation between the local features and the global features corresponding to the node type of the local features, so that the local features in the conversation search model can be associated with the global features corresponding to the node type at any distance in the topological graph, thereby enabling the conversation search model to identify structural similarities and improve the representation ability of the conversation search model.
[0025] In some possible implementations, the information search system can use the difference between the discrimination result actually output by the discriminator and the ideal result (i.e., the ideal result of the positive sample is 1, and the ideal result of the negative sample is 0) to update the parameters of the graph model and implement pre-training for the conversation search model using the back-propagation principle.
[0026] In some possible implementations, the information search system can treat the current query information in the search session as a separate type of node, that is, the topology map includes a first node for indicating historical query information, a second node for indicating query results (including target query results and candidate query results), a third node for indicating keywords, and a fourth node for indicating current query information, as well as relationship information between the nodes. In this way, the importance of the current query information in the information search is highlighted, making the search results more in line with the user's intention.
[0027] In some possible implementations, the information search system may present the search results of the current query information to the user and recommend the next query information to the user, thereby improving the user's information search efficiency.
[0028] In a second aspect, the present application provides an information search system, the system comprising:
[0029] An interaction module, configured to obtain a first search session, wherein the first search session includes current query information, historical query information, and a target query result selected from search results corresponding to the historical query information;
[0030] A construction module, configured to construct a topological graph for at least one of the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information, wherein the topological graph includes a first node for indicating the query information, a second node for indicating the query result, and a third node for indicating a keyword, as well as relationship information between the nodes;
[0031] The inference module is used to input the topology graph corresponding to the at least one candidate query result into the session search model to obtain the search result of the current query information.
[0032] In some possible implementations, the at least one candidate query result includes a first candidate query result, and the building module is specifically configured to:
[0033] Extracting keywords from the current query information, the historical query information, and the target query result;
[0034] Determine a first node according to the current query information and the historical query information, determine a second node according to the target query result and the first candidate query result, and determine a third node according to the keyword;
[0035] Determine first relationship information between a first node indicating the current query information and a first node indicating the historical query information, second relationship information between a first node indicating the historical query information and a second node indicating the target query result, and third relationship information between a first node indicating the query information, a second node indicating the query result, and a third node indicating the keyword.
[0036] In some possible implementations, the first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the interaction module is further configured to:
[0037] Acquire a second search session, where the second search session includes second historical query information and a second target query result selected from search results corresponding to the second historical query information, where the second target query result is the same as the first target query result;
[0038] The building blocks are also used to:
[0039] A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the second historical query information, and the first target query result.
[0040] In some possible implementations, the first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the interaction module is further configured to:
[0041] Acquire a third search session, the third search session including third historical query information matching the first historical query information and a third target query result selected from search results corresponding to the third historical query information;
[0042] The building blocks are also used to:
[0043] A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the first target query result, and the third target query result.
[0044] In some possible implementations, the conversation search model includes a graph model and a classifier, and the reasoning module is specifically used to:
[0045] Inputting the topological graph corresponding to the at least one candidate query result into the graph model for feature extraction to obtain a first feature and a second feature, wherein the first feature includes a feature of the topological graph, and the second feature includes a feature of the at least one candidate query result;
[0046] The first feature and the second feature are input into a classifier to obtain a prediction result, where the prediction result includes the relevance of the at least one candidate query result and the current query information.
[0047] In some possible implementations, the graph model includes a graph neural network and a pooling layer, the graph neural network takes the topological graph as input and the second feature as a first output, the pooling layer takes the second output of the graph neural network as input and the first feature as an output, and the second output of the graph neural network includes features of nodes and relationship information in the topological graph.
[0048] In some possible implementations, the conversation search model is pre-trained in the following manner:
[0049] The session search model is trained with the goal of maximizing the correlation between global features and local features in the topological graph.
[0050] In some possible implementations, the session search model includes a graph model, and the graph model is used to extract global features and local features in a topological graph;
[0051] The system further comprises:
[0052] An extraction module, used to obtain a topology map sample, and extract global features and local features of the topology map sample using the graph model, wherein the topology map sample includes a first topology map and at least one second topology map;
[0053] A construction module, configured to construct a positive sample for at least one target type node among the multiple types of nodes included in the first topological graph according to a global feature corresponding to the target type node and a local feature corresponding to the target type node, and to construct a negative sample according to a global feature corresponding to the target type node and a local feature of the second topological graph;
[0054] An updating module is used to input the positive sample and the negative sample into a discriminator, and update the parameters of the graphical model according to the discrimination result and the target.
[0055] In a third aspect, the present application provides a computing device cluster. The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory. The at least one processor and the at least one memory communicate with each other. The at least one processor is used to execute instructions stored in the at least one memory, so that the computing device or the computing device cluster performs the information search method as described in the first aspect or any implementation of the first aspect.
[0056] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, wherein the instructions instruct a computing device or a computing device cluster to execute the information search method described in the first aspect or any one of the implementations of the first aspect.
[0057] In a fifth aspect, the present application provides a computer program product comprising instructions, which, when executed on a computer or a computing device cluster, enables the computing device or computing device cluster to execute the information search method described in the first aspect or any one of the implementations of the first aspect.
[0058] Based on the implementations provided in the above aspects, this application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical method of the embodiments of the present application, the drawings required for use in the embodiments are briefly introduced below.
[0060] Figure 1 A schematic diagram of the architecture of a conversation search model provided in an embodiment of the present application;
[0061] Figure 2 A schematic diagram of the architecture of an information search system provided in an embodiment of the present application;
[0062] Figure 3 A flowchart of an information search method provided in an embodiment of the present application;
[0063] Figure 4 A structural diagram of a conversation search model provided in an embodiment of the present application;
[0064] Figure 5 A schematic diagram of the structure of an encoder provided in an embodiment of the present application;
[0065] Figure 6 A schematic diagram of the structure of a topological diagram provided in an embodiment of the present application;
[0066] Figure 7 A schematic diagram of a process for constructing positive samples and negative samples provided in an embodiment of the present application;
[0067] Figure 8 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0068] Fig. 9 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0069] Fig.10 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application;
[0070] Fig.11 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The terms "first" and "second" in the embodiments of the present application are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features.
[0072] First, some technical terms involved in the embodiments of the present application are introduced.
[0073] A search engine is an information retrieval system that provides fast retrieval services for users with information retrieval needs. Search engines can realize information collection, indexing and information search. Information collection refers to the collection of massive information on the Internet, indexing refers to the processing of the collected information to establish an index library, and information search refers to searching in the index library according to the user's query information, obtaining multiple candidate query results, and sorting the multiple candidate query results, determining the sorted multiple candidate query results as search results, and feeding back the search results to the user.
[0074] In the process of information search, the search engine can sort multiple candidate query results according to the correlation between the candidate query results and the query information. Specifically, the search engine can place the candidate query results with higher correlation with the query information at the front of the search results, and place the candidate query results with lower correlation with the query information at the back of the search results, so as to provide reliable search results to the user, and facilitate the user to quickly obtain the required information from the search results.
[0075] Search engines usually use ranking algorithms to determine the relevance between candidate query results and query information. In the ranking algorithm, multiple factors that affect the relevance between candidate query results and query information can be comprehensively considered to determine the relevance, including but not limited to the similarity between the keywords of the query information and the keywords of the candidate query results, the frequency of the keywords of the query information appearing in the candidate query results, the position of the keywords of the query information appearing in the candidate query results, etc.
[0076] With the continuous development of computer technology, artificial intelligence (AI) has emerged. AI can simulate human thinking processes and behaviors (such as learning, reasoning, thinking, and planning) through computers, so that computers and other machines can replace or assist humans in performing related tasks. Among them, computers can achieve intelligence by running AI models trained using AI algorithms to perform corresponding tasks, such as image classification tasks, speech recognition tasks, and text recognition tasks. Based on this, search engines can use AI models to determine the correlation between candidate query results and query statements, thereby improving the accuracy of searches.
[0077] Considering that it is difficult to obtain satisfactory search results through only one query in actual search, users can obtain the desired search results by modifying the query information multiple times. Among them, a series of processes such as the user inputting query information, obtaining search results under the query information, selecting the target query result in the search results, modifying the query information, obtaining the search results under the modified query information, selecting the target query result in the search results under the modified query information, and modifying the query information again can be called a search session. In other words, a search session can be used to describe the search process of a user searching for specific information.
[0078] The search engine can use the AI model to process the search session, understand the user's search intent, and thus provide accurate search results. The above method can also be referred to as session search. Specifically, the search engine can construct a search sequence based on the search session. For example, the search engine can construct a search sequence based on multiple query information in the search session and the target query results selected under the multiple query information. For another example, considering the length limit, the search engine can also construct a search sequence based on multiple query information in the search session and the target query results selected for the first time under the multiple query information. Further, the search engine can input the constructed search sequence into the AI model to obtain the search results of the current query information. Among them, the AI model can be used to determine the correlation between multiple candidate query results corresponding to the current query information and the current query information, including but not limited to convolutional neural networks (CNN), recurrent neural networks (RNN), and long short-term memory artificial neural networks (LSTM).
[0079] Next, we take the AI model as RNN as an example to introduce the process of determining the relevance between the candidate query results and the current query information. Figure 1 A schematic diagram of the architecture of a conversation search model is shown, which includes a two-layer RNN, wherein the lower-level RNN includes a query information encoder and a query result encoder, and the higher-level RNN includes a search session-query information encoder and a search session-target query result encoder.
[0080] Specifically, the query information encoder is connected to the search session-query information encoder, and the query information encoder is used to encode multiple query information included in the search sequence into continuous embedding vectors. The search session-query information encoder takes the continuous embedding vectors of multiple query information as input, and obtains the contextual representation of the query information in the search sequence according to the query order of the multiple query information. The query result encoder is connected to the search session-target query result encoder, and the query result encoder is used to encode the query result (the query result includes the target query result selected in the search sequence and the candidate query result corresponding to the current query information) into a continuous embedding vector. The search session-target query result encoder takes the continuous embedding vectors of multiple target query results as input, and obtains the contextual representation of the target query result in the search sequence according to the selection order of the multiple target query results. In this way, the contextual representation of the search sequence is obtained using a double-layer RNN.
[0081] Furthermore, the conversation search model also includes a sorter, which is used to sort the candidate query results under the current query information. In specific implementation, the sorter takes the context representation of the historical query information in the search session-query information encoder, the context representation of the target query result selected under the historical query information in the search session-target query result encoder, the continuous embedding vector of the candidate query result corresponding to the current query information in the query result encoder, and the continuous embedding vector of the current query information in the query information encoder as input, obtains the correlation between the candidate query result corresponding to the current query information and the current query information, sorts the candidate query results according to the correlation, and outputs the sorted candidate query results to present the search results under the current query information to the user.
[0082] Furthermore, the conversational search model also includes a recommender, which is used to recommend the next query statement. Specifically, the conversational search model can input the continuous embedding vector of the target query result selected by the user under the current query information into the search session-target query result encoder to enrich the context representation of the search sequence. The recommender takes the context representation of the current query information in the search session-query information encoder, the context representation of the target query result selected under the current query information in the search session-target query result encoder, and the continuous embedding vector of the current query information as input, and outputs the recommended next query information to the query information encoder, so that the query information encoder encodes the recommended next query information, thereby continuously constructing the search sequence.
[0083] However, the above method uses the search sequence as the input of the conversation search model. Since the search sequence is a linear and flat sequence, it is difficult to effectively represent the information included in the search session. It ignores the topological relationship between the query information, the target query results under the query information, keywords and other information in the search session. As a result, it is difficult to accurately understand the user's search intention, which reduces the accuracy and efficiency of information search.
[0084] In view of this, the present application provides an information search method. The method can be performed by an information search system. The information search system can be a software system, such as a search engine, which can be deployed in a computing device cluster. The computing device cluster executes the information search method of the present application by executing the program code of the software system. In some embodiments, the information search system can also be a hardware system with an information search function, and when the hardware system is running, the information search method of the present application is executed. For example, the information search system can be a computing device cluster with an information search function.
[0085] Specifically, the information search system obtains a first search session, wherein the first search session includes current query information, historical query information, and a target query result selected from the search results corresponding to the historical query information, and then, based on the current query information, the historical query information, and the target query result corresponding to the historical query information, a topological graph is constructed for at least one of a plurality of candidate query results corresponding to the current query information, the topological graph including a first node for indicating the query information, a second node for indicating the query result, a third node for indicating keywords, and relationship information between the nodes, and then the topological graph corresponding to the at least one candidate query result is input into a session search model to obtain the search results of the current query information.
[0086] The method constructs a topological graph of candidate query results corresponding to the current query information. Since the topological graph includes different types of nodes for indicating query information, query results and keywords, as well as the relationship information of the nodes, the topological graph can represent the various information included in the search session and the relationship between the various information. In this way, using the topological graph as the input of the session search model can accurately understand the user's search intention, obtain search results that meet the user's retrieval needs, and improve the accuracy and efficiency of information search.
[0087] In order to make the technical solution of the present application clearer and easier to understand, the architecture of the information search system of the present application is introduced below with reference to the accompanying drawings.
[0088] See also Figure 2 The information search system 20 includes a reasoning subsystem 22, which is used to determine the search results under the current query information using the conversation search model. The specific structure and function of the reasoning subsystem 22 are introduced below.
[0089] The reasoning subsystem 22 includes an interaction module 222, a construction module 224, and a reasoning module 226. The interaction module 222 is used to obtain a first search session, which includes current query information, historical query information, and a target query result selected in the search results corresponding to the historical query information. The current query information may be the query information currently input by the user. For example, the interaction module 222 may receive the current query information input by the user through a query interface, which may also be referred to as a user interface (UI) interface, and may specifically be a graphical user interface (GUI) or a command user interface (CUI). Further, the interaction module 222 may obtain the first search session based on the current query information. For example, the interaction module 222 may determine the historical query information whose query time interval meets the condition or has similar semantics and the target query result selected in the search results corresponding to the historical query information as a search session based on the query time or semantics of the current query information, thereby obtaining the first search session.
[0090] The construction module 224 is used to construct a topological graph of candidate query results. Specifically, the construction module 224 can construct a topological graph for at least one candidate query result among the multiple candidate query results corresponding to the current query information based on the current query information, the historical query information, and the target query result corresponding to the historical query information. The topological graph includes a first node for indicating the query information, a second node for indicating the query result, and a third node for indicating the keyword, as well as relationship information between the nodes. In this way, for the candidate query results, a topological graph including multiple node types and node relationships is constructed using the search session.
[0091] The reasoning module 226 is used to obtain search results using the conversation search model. Specifically, the reasoning module 226 can input the topological graph corresponding to at least one candidate query result into the conversation search model to obtain the search results of the current query information. Furthermore, the reasoning module 226 can also send the search results of the current query information to the interaction module 222, so that the interaction module 222 presents the search results of the current query information to the user in the query interface to complete the information search.
[0092] In some possible implementations, in order to improve the accuracy of the conversation search model, the information search system 20 may further include a training subsystem 24, which is used to train the conversation search model. The specific structure and function of the training subsystem 24 are introduced below.
[0093] The training subsystem 24 includes an extraction module 242, a construction module 244, and an update module 246. The extraction module 242 is used to extract global features and local features. Specifically, the extraction module 242 can obtain a topology graph sample for training a session search model, and extract global features and local features using a graph model included in the session search model.
[0094] The construction module 224 is used to construct positive samples and negative samples. Specifically, the topological map sample may include a first topological map and at least one second topological map, and the construction model 224 may construct a positive sample for at least one target type node among multiple types of nodes included in the first topological map according to the global features corresponding to the target type node and the local features corresponding to the target type node, and construct a negative sample according to the global features corresponding to the target type node and the local features of the second topological map.
[0095] The updating module 246 is used to update the parameters of the graph model included in the conversation search model. Specifically, the updating module 246 can input positive samples and negative samples into the discriminator, and update the parameters of the graph model according to the discrimination result and the goal of maximizing the correlation between the global features and the local features in the topology graph. In this way, the conversation search model is pre-trained using the positive samples and negative samples constructed from the local features and the global features, so that the local features are associated with the global features, so that the conversation search model can pay attention to the correlation between the local information and the global information in the topology graph, and improve the representation ability of the conversation search model.
[0096] Based on the above-mentioned information search system 20 provided in the embodiment of the present application, the embodiment of the present application further provides an information search method, which will be described in detail below in conjunction with the accompanying drawings.
[0097] See also Figure 3 The flowchart of the information search method shown in FIG. 1 is a flowchart of the information search method shown in FIG. 1 , which can be executed by the information search system 20. The method includes:
[0098] S302: The information search system 20 obtains a first search session.
[0099] The first search session is used to describe the current search process of the user. Specifically, the first search session may include current query information, historical query information, and a target query result selected from search results corresponding to the historical query information.
[0100] In specific implementation, the information search system 20 may present a query interface to the user, which may be a GUI or a CUI, and the user may input current query information through the GUI or CUI, and the information search system 20 may receive the current query information. The query interface supports the user to input the current query information in different ways, for example, the user may input the current query information by inputting text or uploading pictures, and for another example, when the user terminal supports voice input, the user may also input the current query information by voice input.
[0101] Further, the information search system 20 can obtain the first search session based on the current query information. In some embodiments, the information search system 20 can determine the historical query information in the first search session based on the query time of the current query information. For example, the information search system 20 can obtain the historical query information of the account that triggers the information search operation, and determine the historical query information whose time interval between the query time of the historical query information and the query time of the current query information is less than a set interval threshold (such as 5 minutes) as the historical query information in the first search session. In other embodiments, considering that a user can search for multiple different contents in a short period of time, the accuracy of judging whether the historical query information and the current query information belong to the same search session based only on the time interval of the query time is low. The information search system 20 can further screen based on the semantics of the historical query information, and determine the historical query information whose semantics are similar to the semantics of the current query information (for example, the similarity between the historical query information and the current query information meets the set similarity condition) as the historical query information in the first search session.
[0102] In this way, the information search system 20 can obtain the target query result selected in the search results corresponding to the historical query information based on the historical query information. Among them, the search results corresponding to the historical query information may include multiple query results arranged in a certain order. In some embodiments, the user can trigger a selection operation to select the target query result from multiple query results, such as by clicking the target query result with a mouse or selecting the target query result with a voice command. In other embodiments, it is difficult for the user to obtain the required information from multiple query results, and the user may not trigger the selection operation, but make further modifications to the query information. At this time, the target query result corresponding to the historical query information may be empty.
[0103] The information search system 20 can obtain the first search session by obtaining the current query information, the historical query information, and the target query results selected in the search results corresponding to the historical query information. Since the first search session includes the modification process of the query information during the user's search for specific content and the target query results selected under different query information, the information search system 20 can use the first search session to understand the user's search intention to obtain the search results of the current query information.
[0104] S304: The information search system 20 constructs a topological graph for at least one candidate query result among the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information.
[0105] Considering that there is a huge amount of information on the Internet, if information search is performed on the huge amount of information, a lot of resources will be consumed and the search efficiency will be reduced. The information search system 20 can first determine multiple candidate query results corresponding to the current query information. Among them, the multiple candidate query results corresponding to the current query information are query results associated with the current query information. In a possible implementation, the information search system 20 can perform a preliminary search in the index library according to the current query information, and determine the query results whose index data (also called keywords) meet the conditions as candidate query results.
[0106] The information search system 20 can construct a topological graph for at least one candidate query result, the topological graph including a first node for indicating query information, a second node for indicating query results, a third node for indicating keywords, and relationship information between the nodes. The first node includes a first node for indicating current query information and a first node for indicating historical query information, the second node includes a second node for indicating candidate query results and a second node for indicating target query results, and the third node includes a third node for indicating keywords of current query information, a third node for indicating keywords of historical query information, and a third node for indicating keywords of target query results.
[0107] In some embodiments, considering the high importance of current query information in information search, the information search system 20 may also treat the current query information in the search session as a separate type of node. In this case, the topology graph includes a first node for indicating historical query information, a second node for indicating query results (including target query results and candidate query results), a third node for indicating keywords, and a fourth node for indicating current query information, as well as relationship information between the nodes.
[0108] In this way, the topology graph constructed for the candidate query results includes multiple types of nodes for indicating different information, so that the topology graph can represent the multiple information included in the search session and the relationship between the multiple information. Compared with the search sequence constructed using the search session, the topology graph can focus on the topological structure of the search session and the heterogeneity of information in the search session, and optimize the representation capability for the search session.
[0109] S306: The information search system 20 inputs the topology graph corresponding to at least one candidate query result into the session search model to obtain the search result of the current query information.
[0110] The session search model is used to obtain a prediction result of at least one candidate query result, and the prediction result may include a correlation between the at least one candidate query result and the current query information. In the topology graph, the prediction result may be represented as a possibility that a connection relationship exists between a second node for indicating the candidate query result and a first node for indicating the current query information.
[0111] In specific implementation, the conversation search model can output the relevance of at least one candidate query result to the current query information (for example, it can be a relevance score). The information search system 20 sorts the at least one candidate query result according to the relevance score of the at least one candidate query result, and determines the sorted at least one candidate query result as the search result of the current query information.
[0112] In some possible implementations, considering that the embodiment of the present application uses search sessions to construct a topology map, in order to quickly and accurately analyze the topology map, the session search model may include a graph model and a classifier. The graph model may be a machine learning model for learning graph structure data and extracting features, and the classifier may be a classification model for classifying according to the extracted features to obtain a prediction result.
[0113] Specifically, the information search system 20 may input the topological graph corresponding to at least one candidate query result into the graph model for feature extraction to obtain a first feature and a second feature. The first feature includes the feature of the topological graph, and the second feature includes the feature of at least one candidate query result. Then, the information search system 20 may input the first feature and the second feature into the classifier to obtain a prediction result. In this way, the features of the topological graph and the candidate query result are extracted through the graph model, and the relevance of the candidate query result to the current query statement is determined through the classifier to obtain a prediction result.
[0114] In some embodiments, the graph model may include a graph neural network and a pooling layer. Among them, the graph neural network (GNN) can use the neural network to learn the graph structure data and then extract the features of the graph structure data. The pooling layer can be used to reduce the dimension of the features of the graph structure data to avoid overfitting.
[0115] Below, taking the graph neural network in the graph model as a multi-layer GNN and the classifier as a multi-layer perceptron (MLP) as an example, the specific process of using the conversation search model to obtain the prediction results is explained.
[0116] See also Figure 4 A structural diagram of a conversation search model is shown, where the conversation search model 40 includes a graph model 402 and a multi-layer perceptron 404. Further, the graph model 402 includes a multi-layer GNN and a pooling layer. The multi-layer GNN can take a topological graph corresponding to at least one candidate query result as input, a second feature as a first output, and a feature including node and relationship information in the topological graph as a second output. The pooling layer can take the second output of the multi-layer GNN as input and the first feature as output.
[0117] Specifically, the initial features (also called initial embedding) of the nodes in the topological graph can be first obtained according to the topological graph corresponding to at least one candidate query result. In some embodiments, for the first node indicating the query information and the second node indicating the query result in the topological graph, the initial features can be obtained using an encoder. The encoder corresponding to the first node or the second node can be independent and trainable. Figure 5 The schematic diagram of the structure of an encoder shown in FIG. 1 includes a transformer and an attention network. The encoder takes a word vector as input, for example, a word vector determined after word segmentation of query information or query results. After the word vector passes through the transformer, the text representation corresponding to the word vector (also called text embedding or word embedding) can be obtained, and then the initial features of the first node or the second node can be obtained through the attention network.
[0118] In other embodiments, for the third node indicating the keyword in the topological graph, the initial feature can be obtained by using a word vector algorithm. The word vector algorithm includes but is not limited to latent semantic analysis (LSA), word to vector (word2vec), and fast text classification (fastText). Through the word vector algorithm, the text representation of the keyword can be obtained, and the text representation is used as the initial feature of the third node.
[0119] After obtaining the initial features of the nodes in the topology map, the initial state of the topology map can be determined according to the initial features of the nodes in the topology map and the relationship information of the nodes in the topology map. The initial state may include an initial adjacency matrix for characterizing the relationship information of the nodes in the topology map and an initial feature matrix for characterizing the initial features of the nodes. In some possible implementations, the initial state of the topology map can be represented as G (0) =(A (0) ,X (0) ), A (0) is the initial adjacency matrix, X (0) is the initial feature matrix. Further, after multiple layers of GNN (for example, after k layers of GNN), the state of the topological graph can be expressed as G (k) =(A (k) ,X (k) ). In this way, the first output (i.e., the second feature) of the multi-layer GNN can be X (k) The second output of the multi-layer GNN can be A (k) and X (k) , which is the feature including the node and relationship information in the topological graph.
[0120] Next, G (k) Input the pooling layer to obtain the first feature. Specifically, the processing process of the pooling layer can be expressed as:
[0121]
[0122]
[0123]
[0124]
[0125] in, represents the adjacency matrix after the pooling layer, represents the feature matrix after the pooling layer, represents the pooling matrix of the i-th type of node, represents the set of learnable parameters in the pooling layer, represents the matrix after the pooling matrix is compressed by the normalized exponential function, and represents the learnable parameters in the compression process, express The matrix after padding, specifically, padding refers to setting the rows in the matrix except the row corresponding to the i-th type of node to zero.
[0126] Depending on the type of node, and The output of the pooling layer is obtained by concatenation, and the output is the first feature. Further, the first feature and the second feature are input into the MLP to obtain the prediction result.
[0127] In this way, by performing pooling processing on each type of node in the pooling layer, it is possible to distinguish multiple types of nodes in the topological map, so that the first feature output by the pooling layer includes different features corresponding to different types of nodes in the topological map.
[0128] Taking into account that different types of information in a search session (such as query information, query results, etc.) have different characteristics, and different types of information may have different impacts on user information search, the pooling layer is used in an embodiment of the present application to extract more fine-grained features and improve the representation capability of the session search model.
[0129] Table 1 is a performance comparison result of the conversation search model provided in the embodiment of the present application and the traditional model, wherein the traditional model includes the best matching 25th iteration algorithm (best matching 25, BM25), the continuous evolution architecture search algorithm (continuous evolution architecture search, CARS), the honey badger-converter algorithm (HBA-transformer), the contrastive captioners (contrastive captioners, COCA) and the conversation search model that does not use the topology map provided in the embodiment of the present application. The evaluation indicators include MAP average precision (mean average precision, MAP), mean reciprocal rank (mean reciprocal rank, MRR), and normalized discounted cumulative gain (normalized discounted cumulative gain, NDCG). The above evaluation indicators are all indicators used to evaluate model performance (such as accuracy, precision and other performance).
[0130] Table 1
[0131]
[0132] By comparison, it can be found that the session search model provided in the embodiment of the present application has good performance and can effectively improve the accuracy of information search. Furthermore, compared with the session search model that does not use the topology map, the session search model whose input is the topology map provided in the embodiment of the present application has better performance. It can be seen that the topology map constructed by using the search session in the embodiment of the present application can pay attention to the various information included in the search session and the relationship between the various information.
[0133] Furthermore, after determining the search results of the current search information, the information search system 20 may also present the search results of the current query information to the user and recommend the next query information to the user to improve the efficiency of the information search.
[0134] Based on the above content, the information search method provided in the embodiment of the present application constructs a topological map of the candidate query results corresponding to the current query information. Since the topological map includes different types of nodes for indicating query information, query results and keywords and the relationship information of the nodes, the topological map can represent the various information included in the search session and the relationship between the various information. In this way, using the topological map as the input of the session search model can accurately understand the user's search intent, obtain search results that meet the user's retrieval needs, and improve the accuracy and efficiency of information search.
[0135] Furthermore, the method sets a pooling layer in the conversation search model, and performs pooling processing on different types of nodes in the pooling layer. In this way, various types of nodes in the topology graph are distinguished, and different features corresponding to different types of nodes are reflected, so that the conversation search model can extract more fine-grained features.
[0136] The above describes the process of information search. The following describes the process of building a topology map in detail.
[0137] See also Figure 6 A schematic diagram of the structure of a topological graph is shown, wherein the topological graph includes a first node for indicating query information (represented by a black node in the figure), a second node for indicating query results (represented by a gray node in the figure), and a third node for indicating keywords (represented by a white node in the figure), as well as relationship information between nodes (represented by lines between nodes in the figure). Among them, the first node further includes a first node for indicating current query information (represented by a black node with a gray outline in the figure) and a first node for indicating historical query information (represented by a black node without a gray outline in the figure), and the second node further includes a second node for indicating candidate query results (represented by a gray node with a black outline in the figure) and a second node for indicating a target query result corresponding to the historical query information (represented by a gray node without a black outline in the figure).
[0138] Taking the construction of a topology graph for the first candidate query result included in at least one candidate query result as an example, first, the information search system 20 may extract keywords from the current query information, the historical query information, and the target query result. In some embodiments, the information search system 20 may extract and obtain multiple keywords, and considering the number of nodes in the topology graph and the limitation of the size of the topology graph, the information search system 20 may determine the TF-IDF scores of the multiple keywords based on the term frequency-inverse document frequency (TF-IDF) algorithm, thereby retaining a portion of the keywords according to the TF-IDF scores.
[0139] Next, the information search system 20 can determine the first node according to the current query information and the historical query information, determine the second node according to the target query result and the first candidate query result, and determine the third node according to the keyword. In this way, the nodes in the topological graph of the first candidate query result are determined.
[0140] After determining the nodes in the topological graph, the information search system 20 may determine the relationship information between the nodes. In some possible implementations, the information search system 20 may determine first relationship information between a first node indicating the current query information and a first node indicating historical query information, second relationship information between a first node indicating historical query information and a second node indicating a target query result, and third relationship information between a first node indicating query information, a second node indicating a query result, and a third node indicating a keyword.
[0141] In specific implementation, the information search system 20 may determine the first relationship information according to the query time of the query information. For example, the information search system 20 may establish a connection relationship between the first nodes corresponding to two historical query information with adjacent query times, that is, connect the nodes corresponding to two adjacent historical query information in a search session. Furthermore, considering that the information search is used to obtain search results under the current query information, in order to emphasize the importance of the first node used to indicate the current query information, the information search system 20 may establish a connection relationship between the first node used to indicate the current query information and the first node used to indicate the historical query information.
[0142] The information search system 20 may determine the second relationship information based on the relationship between the historical query information and the target query result. For example, the information search system 20 may establish a connection relationship between a first node indicating the historical query information and a second node indicating the target query result corresponding to the historical query information, that is, connect a node corresponding to the historical query information in a search session with a node corresponding to the target query result selected under the historical query information.
[0143] The information search system 20 may determine the third relationship information according to whether the keyword exists in the query information or the query result. For example, the information search system 20 may establish a connection relationship between the third node indicating the keyword and the first node indicating the query information including the keyword, and establish a connection relationship between the third node indicating the keyword and the first node indicating the query result including the keyword, that is, connect the node corresponding to the query information or query result containing the keyword with the node corresponding to the keyword.
[0144] In some possible implementations, the topology map may also include nodes corresponding to external search sessions. Different from the first search session, the external search session refers to other search sessions of the current user who triggered the first search session within a historical time period, or a search session triggered by other users. By adding cross-session nodes to the topology map, the topology map can be enriched with external search sessions.
[0145] In a specific implementation, considering that the first search session includes the current query information, the first historical query information, and the first target query result selected in the search results corresponding to the first historical query information, the information search system 20 can obtain the second search session, which can be an external search session, and the second search session includes the second historical query information and the second target query result selected in the search results corresponding to the second historical query information, and the second target query result is the same as the first target query result. In other words, the first search session and the second search session include the same target query result.
[0146] Based on this, the information search system 20 can add a first node for indicating the second historical query information to the topology map, and establish a connection between the first node for indicating the second historical query information and the second node for indicating the first target query result. In this way, for the case where the same target query result is selected in different search sessions, considering that the second historical query information in the external search session and the first historical query information in the first search session can represent similar search intentions, by adding a node for indicating the second historical query information to the topology map, the external search session can be used to enrich the information that can be represented in the topology map.
[0147] Further, the information search system 20 may obtain a third search session, which may be an external session, and the third search session includes third historical query information matching the first historical query information and a third target query result selected from the search results corresponding to the third historical query information. In other words, similar historical query information exists in the first search session and the third search session.
[0148] Based on this, the information search system 20 can add a second node for indicating the third target query result to the topology map, and establish a connection between the second node for indicating the third target query result and the first node for indicating the first historical query information. In this way, for the case where similar query information exists in different search sessions, considering that the third target query result in the external search session and the first target query result in the first search session can represent a selection under a similar search intent, by adding the second node for indicating the third query result to the topology map, the external search session can be used to enrich the information that can be represented in the topology map.
[0149] In some embodiments, the information search system 20 may determine the third historical query information having a similarity greater than a set similarity threshold as historical query information matching the first historical query information based on the similarity between the first historical query information and the third historical query information. Specifically, the information search system 20 may determine the similarity using the following formula:
[0150] sup(q a |q b )=spe(q a |q b )+sim(q a |q b ) (5)
[0151]
[0152] Among them, q a and q b Indicates two historical query information, sup(q a |q b ) is q a Relative to q b The similarity (also called the complement ratio) of b Included in q a For each word of a |q b ) can be determined according to formula (6), otherwise, spe(q a |q b )=0. sim(q a |q b ) represents the matching degree calculated by the SequenceMatcher function in Python.
[0153] Based on the above description, in the embodiment of the present application, the search session is represented as a topological graph, which includes multiple types of nodes and relationship information between nodes. Compared with using the search session to build a search sequence, the topological graph focuses on the various information in the search session and the relationship between the various information, and can more comprehensively represent the information included in the search session, so that the information search system 20 can accurately understand the user's search intention based on the topological graph, thereby realizing efficient information search.
[0154] In order to improve the performance of the conversation search model, the information search system 20 can also train the conversation search model. Specifically, the conversation search model can include a graph model, which can further include a graph neural network and a pooling layer. The graph neural network extracts features based on the adjacency matrix and the feature matrix. In other words, for a node in the topological graph, the graph neural network only focuses on the node and the nodes adjacent to the node (for example, nodes with a connection relationship). The features extracted using the local information of the topological graph are also called local features.
[0155] Considering that it is difficult to fully represent the information in the topological map using local features extracted by graph neural networks, as mentioned above, in an embodiment of the present application, a pooling layer can be used to perform pooling processing on different types of nodes respectively, and the output includes different features corresponding to different types of nodes in the topological map. The features output after the pooling layer are not limited to local information, but focus on the global information of different types of nodes included in the topological map. Therefore, the features extracted using the pooling layer are also called global features.
[0156] In order to improve the association or mutual information (MI) between local features and global features corresponding to the node types of the local features, and to improve the representation capability of the conversation search model, the information search system 20 may train the conversation search model with the goal of maximizing the correlation between global features and local features in the topological graph.
[0157] In specific implementation, the information search system 20 can obtain a topological map sample, which may include a first topological map and at least one second topological map, and use a graph model to extract global features and local features of the topological map sample, such as using a graph neural network to extract local features of the topological map sample, and further use a pooling layer to extract the global features of the topological map sample. For at least one target type node among the multiple types of nodes included in the first topological map, a positive sample is constructed based on the global features corresponding to the target type node and the local features corresponding to the target type node, and a negative sample is constructed based on the global features corresponding to the target type node and the local features of the second topological map, and the positive and negative samples are input into the discriminator, and the parameters of the graph model are updated according to the discrimination results and the training objectives.
[0158] To facilitate understanding, the following will introduce the process of constructing positive and negative samples with specific examples. Figure 7 A schematic diagram of a process for constructing positive samples and negative samples is shown, in which the topology map sample includes a first topology map and a second topology map. The first topology map and the second topology map include four types of nodes, such as a first node for indicating historical query information, a second node for indicating query results, a third node for indicating keywords, and a fourth node for indicating current query information. Each topology map has eight nodes, specifically, two first nodes, two second nodes, two third nodes, and two fourth nodes.
[0159] First, the first topological map and the second topological map are input into the multi-layer GNN to obtain local features, which may include features of nodes 1 to 8 in the first topological map and features of nodes 1 to 8 in the second topological map. Next, the local features are input into the pooling layer to obtain global features, which may include features of nodes from type 1 to type 4 in the first topological map and features of nodes from type 1 to type 4 in the second topological map.
[0160] exist Figure 7 In the figure, different border colors correspond to the characteristics of different topological graphs, where the black border corresponds to the characteristics of the first topological graph and the gray border corresponds to the characteristics of the second topological graph. Furthermore, different shadings correspond to different node types, where nodes 1 and 2 are type 1 nodes, nodes 3 and 4 are type 2 nodes, nodes 5 and 6 are type 3 nodes, and nodes 7 and 8 are type 4 nodes.
[0161] Furthermore, local features and global features are used to construct positive samples and negative samples. In specific implementation, for the type 1 nodes in the first topology map, the positive samples may include the global features of the type 1 nodes in the first topology map and the local features of the type 1 nodes in the first topology map (i.e., the features of node 1 in the first topology map and the features of node 2 in the first topology map), and the negative samples may include the global features of the type 1 nodes in the first topology map and the local features of the second topology map (i.e., the features of nodes 1 to 8 in the second topology map, Figure 7 Similarly, positive samples and negative samples can be constructed for nodes of type 2, type 3, or type 4 in the first topological graph, and thus, positive samples and negative samples are obtained using topological graph samples.
[0162] In some embodiments, the discriminator may include a multi-layer feedforward neural network, a residual network, an activation function, and a dot product calculation unit. Positive samples and negative samples are input into the discriminator to obtain the discrimination results of the positive samples and negative samples, and the parameters of the multi-layer GNN and the pooling layer are updated according to the discrimination results and the goal of maximizing the correlation between the global features and the local features in the topological map.
[0163] For example, since under ideal circumstances, the ideal result obtained by the positive sample input discriminator should be 1, and the ideal result obtained by the negative sample input discriminator should be 0, the information search system 20 can update the parameters of the multi-layer GNN and pooling layer by using the back propagation principle through the difference between the discrimination result actually output by the discriminator and the ideal result.
[0164] Table 2 shows the performance comparison results of a conversation search model trained using the pre-training method in the embodiment of the present application and a conversation search model that has not been pre-trained. Through comparison, it can be found that the pre-training method provided in the embodiment of the present application can improve the representation ability of the conversation search model, thereby improving the accuracy and efficiency of information search.
[0165] Table 2
[0166]
[0167] Since the positive samples include local features and global features corresponding to the node type of the local features, and the negative samples include global features corresponding to the node type of the local features and local features in other topological graphs, pre-training the conversation search model using positive and negative samples can improve the correlation between local features and global features corresponding to the node type of the local features, so that the local features in the conversation search model can be associated with the global features corresponding to the node type at any distance in the topological graph, thereby enabling the conversation search model to identify structural similarities and improve the representation ability of the conversation search model.
[0168] Based on the information search method of the above embodiment, the present application embodiment further provides an information search system 20 as described above. The information search system 20 is introduced below in conjunction with the accompanying drawings.
[0169] See also Figure 2 The structural diagram of the information search system 20 shown in FIG. 2 includes:
[0170] An interaction module 222 is configured to obtain a first search session, wherein the first search session includes current query information, historical query information, and a target query result selected from search results corresponding to the historical query information;
[0171] A construction module 224 is used to construct a topological graph for at least one candidate query result among the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information, wherein the topological graph includes a first node for indicating the query information, a second node for indicating the query result, and a third node for indicating the keyword, and relationship information between the nodes;
[0172] The reasoning module 226 is used to input the topology graph corresponding to at least one candidate query result into the session search model to obtain the search result of the current query information.
[0173] Among them, the interaction module 222 , the construction module 224 and the reasoning module 226 may be modules in the reasoning subsystem 22 .
[0174] It should be noted that the above module division method is only a possible implementation method provided in the embodiment of the present application. In other possible implementation methods, different module division methods can be used as needed, and the embodiment of the present application does not limit this.
[0175] The above-mentioned interaction module 222, construction module 224 and reasoning module 226 can be implemented by hardware modules or by software modules. Among them, the interaction module 222, construction module 224 and reasoning module 226 can be implemented by a computing device or a computing engine on a computing device. Below, the construction module 224 is taken as an example for explanation.
[0176] When implemented by software, the construction module 224 may be an application or application module running on a computing device or a computing device cluster, such as a computing engine. The application may be provided to users in the form of a virtualized service. Virtualized services may include virtual machine (VM) services, bare metal server (BMS) services, and container services. Among them, the VM service may be a service that uses virtualization technology to virtualize a virtual machine (VM) resource pool on multiple physical hosts (such as computing devices) to provide users with VMs on demand for use. The BMS service is a service that virtualizes a BMS resource pool on multiple physical hosts to provide users with BMS on demand for use. The container service is a service that virtualizes a container resource pool on multiple physical hosts to provide users with containers on demand for use. VM is a simulated virtual computer, that is, a logical computer. BMS is a high-performance computing service that can be elastically scalable, and its computing performance is no different from that of a traditional physical machine, and it has the characteristics of secure physical isolation. Containers are a kernel virtualization technology that can provide lightweight virtualization to achieve the purpose of isolating user space, processes, and resources. It should be understood that the VM service, BMS service and container service in the above-mentioned virtualization services are merely specific examples. In actual applications, the virtualization service may also be other lightweight or heavyweight virtualization services, which are not specifically limited here.
[0177] When implemented by hardware, the building block 224 may include at least one computing device, such as a server, etc. Alternatively, the building block 224 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), etc. The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0178] In some possible implementations, the at least one candidate query result includes a first candidate query result, and the construction module 224 is specifically configured to:
[0179] Extract keywords from current query information, historical query information and target query results;
[0180] Determine a first node according to current query information and historical query information, determine a second node according to a target query result and a first candidate query result, and determine a third node according to a keyword;
[0181] Determine first relationship information between a first node indicating current query information and a first node indicating historical query information, second relationship information between a first node indicating historical query information and a second node indicating a target query result, and third relationship information between a first node indicating query information, a second node indicating a query result, and a third node indicating a keyword.
[0182] In some possible implementations, the first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the interaction module 222 is further configured to:
[0183] Acquire a second search session, wherein the second search session includes second historical query information and a second target query result selected from the search results corresponding to the second historical query information, and the second target query result is the same as the first target query result;
[0184] The building block 224 is also used to:
[0185] A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the second historical query information, and the first target query result.
[0186] In some possible implementations, the first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the interaction module 222 is further configured to:
[0187] Acquire a third search session, wherein the third search session includes third historical query information matching the first historical query information and a third target query result selected from search results corresponding to the third historical query information;
[0188] The building block 224 is also used to:
[0189] A topological graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the first target query result, and the third target query result.
[0190] In some possible implementations, the conversation search model includes a graph model and a classifier, and the reasoning module 226 is specifically used to:
[0191] Inputting a topological graph corresponding to at least one candidate query result into a graph model for feature extraction to obtain a first feature and a second feature, wherein the first feature includes a feature of the topological graph, and the second feature includes a feature of at least one candidate query result;
[0192] The first feature and the second feature are input into a classifier to obtain a prediction result, wherein the prediction result includes a correlation between at least one candidate query result and the current query information.
[0193] In some possible implementations, the graph model includes a graph neural network and a pooling layer. The graph neural network takes a topological graph as input and a second feature as a first output. The pooling layer takes the second output of the graph neural network as input and the first feature as an output. The second output of the graph neural network includes features of nodes and relationship information in the topological graph.
[0194] In some possible implementations, the conversation search model is pre-trained in the following way:
[0195] The conversation search model is trained with the goal of maximizing the correlation between global and local features in the topological graph.
[0196] In some possible implementations, the session search model includes a graph model, which is used to extract global features and local features in the topology graph;
[0197] The system 20 also includes:
[0198] An extraction module 242, configured to obtain a topology map sample and extract global features and local features of the topology map sample using a graph model, wherein the topology map sample includes a first topology map and at least one second topology map;
[0199] A construction module 244 is used to construct a positive sample for at least one target type node among the multiple types of nodes included in the first topological graph according to the global features corresponding to the target type node and the local features corresponding to the target type node, and to construct a negative sample according to the global features corresponding to the target type node and the local features of the second topological graph;
[0200] The updating module 246 is used to input the positive samples and negative samples into the discriminator, and update the parameters of the graphical model according to the discrimination results and the target.
[0201] Among them, the extraction module 242 , the construction module 244 and the update module 246 may be modules in the training subsystem 24 .
[0202] The present application also provides a computing device 800. Figure 8As shown, the computing device 800 includes: a bus 802, a processor 804, a memory 806, and a communication interface 808. The processor 804, the memory 806, and the communication interface 808 communicate through the bus 802. The computing device 800 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 800.
[0203] The bus 802 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 The bus 802 is represented by only one line, but it does not mean that there is only one bus or one type of bus. The bus 802 may include a path for transmitting information between various components of the computing device 800 (eg, the memory 806, the processor 804, and the communication interface 808).
[0204] The processor 804 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0205] The memory 806 may include a volatile memory, such as a random access memory (RAM). The memory 806 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid state drive (SSD). The memory 806 stores executable program code, and the processor 804 executes the executable program code to implement the aforementioned information search method. Specifically, the memory 806 stores instructions for the information search system 20 to execute the information search method.
[0206] The communication interface 808 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 800 and other devices or communication networks.
[0207] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0208] like Fig. 9 As shown, the computing device cluster includes at least one computing device 800. The memory 806 in one or more computing devices 800 in the computing device cluster may store the same information search system 20 for executing instructions of the information search method.
[0209] In some possible implementations, one or more computing devices 800 in the computing device cluster may also be used to execute some instructions of the information search system 20 for executing the information search method. In other words, a combination of one or more computing devices 800 may jointly execute instructions of the information search system 20 for executing the information search method.
[0210] It should be noted that the memory 806 in different computing devices 800 in the computing device cluster may store different instructions for executing partial functions of the information search system 20 .
[0211] Fig.10 A possible implementation is shown. Fig.10 As shown, two computing devices 800A and 800B are connected via a communication interface 808. The memory in computing device 800A stores instructions for executing the functions of interaction module 222, construction module 224, and reasoning module 226. The memory in computing device 800B stores instructions for executing the functions of extraction module 242, construction module 244, and update module 246. In other words, the memories 806 of computing devices 800A and 800B jointly store instructions for information search system 20 to execute the information search method.
[0212] Fig.10 The connection mode between the computing device clusters shown can be considered that the information search method provided by the present application includes a training process and a reasoning process. Therefore, it is considered that the functions implemented by the interaction module 222, the construction module 224 and the reasoning module 226 are handed over to the computing device 800A for execution, and the functions implemented by the extraction module 242, the construction module 244 and the update module 246 are executed by the computing device 800B.
[0213] It should be understood that Fig.10 The functions of the computing device 800A shown in FIG. 8 may also be completed by multiple computing devices 800. Similarly, the functions of the computing device 800B may also be completed by multiple computing devices 800.
[0214] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.11 A possible implementation is shown. Fig.11 As shown, two computing devices 800C and 800D are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 806 in the computing device 800C stores instructions for executing the functions of the interaction module 222, the construction module 224, and the reasoning module 226. At the same time, the memory 806 in the computing device 800D stores instructions for executing the functions of the extraction module 242, the construction module 244, and the update module 246.
[0215] Fig.11 The connection mode between the computing device clusters shown can be considered to be that the information search method provided by the present application includes a training process and a reasoning process. Therefore, it is considered that the functions implemented by the interaction module 222, the construction module 224 and the reasoning module 226 are performed by the computing device 800C, and the functions implemented by the extraction module 242, the construction module 244 and the update module 246 are performed by the computing device 800D. It should be understood that Fig.11 The functions of the computing device 800C shown in FIG. 800A may also be completed by multiple computing devices 800. Similarly, the functions of the computing device 800D may also be completed by multiple computing devices 800.
[0216] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute the above-mentioned information search system for executing the information search method.
[0217] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the above-mentioned information search method.
[0218] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. An information search method, characterized in that: Applied to an information search system, the method comprises: Acquire a first search session, where the first search session includes current query information, historical query information, and a target query result selected from search results corresponding to the historical query information; According to the current query information, the historical query information, and the target query result corresponding to the historical query information, a topological graph is constructed for at least one candidate query result among the multiple candidate query results corresponding to the current query information, the topological graph comprising a first node for indicating the query information, a second node for indicating the query result, and a third node for indicating a keyword, as well as relationship information between the nodes; The topology graph corresponding to the at least one candidate query result is input into a session search model to obtain a search result of the current query information.
2. The method according to claim 1, characterized in that The at least one candidate query result includes a first candidate query result, and constructing a topological graph for at least one candidate query result among the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information, including: Extracting keywords from the current query information, the historical query information, and the target query result; Determine a first node according to the current query information and the historical query information, determine a second node according to the target query result and the first candidate query result, and determine a third node according to the keyword; Determine first relationship information between a first node indicating the current query information and a first node indicating the historical query information, second relationship information between a first node indicating the historical query information and a second node indicating the target query result, and third relationship information between a first node indicating the query information, a second node indicating the query result, and a third node indicating the keyword.
3. The method according to claim 1 or 2, characterized in that: The first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the method further includes: Acquire a second search session, where the second search session includes second historical query information and a second target query result selected from search results corresponding to the second historical query information, where the second target query result is the same as the first target query result; The constructing a topological graph for at least one of the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information includes: A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the second historical query information, and the first target query result.
4. The method according to claim 1 or 2, characterized in that: The first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the method further includes: Acquire a third search session, the third search session including third historical query information matching the first historical query information and a third target query result selected from search results corresponding to the third historical query information; The constructing a topological graph for at least one of the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information includes: A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the first target query result, and the third target query result.
5. The method according to any one of claims 1 to 4, characterized in that: The conversation search model includes a graph model and a classifier, and the step of inputting the topology graph corresponding to the at least one candidate query result into the conversation search model to obtain the search result of the current query information includes: Inputting the topological graph corresponding to the at least one candidate query result into the graph model for feature extraction to obtain a first feature and a second feature, wherein the first feature includes a feature of the topological graph, and the second feature includes a feature of the at least one candidate query result; The first feature and the second feature are input into a classifier to obtain a prediction result, where the prediction result includes the relevance of the at least one candidate query result and the current query information.
6. The method according to claim 5, characterized in that The graph model includes a graph neural network and a pooling layer. The graph neural network takes the topological graph as input and the second feature as a first output. The pooling layer takes the second output of the graph neural network as input and the first feature as an output. The second output of the graph neural network includes features of nodes and relationship information in the topological graph.
7. The method according to any one of claims 1 to 6, characterized in that: The conversation search model is pre-trained in the following way: The session search model is trained with the goal of maximizing the correlation between global features and local features in the topological graph.
8. The method according to claim 7, characterized in that The session search model includes a graph model, and the graph model is used to extract global features and local features in a topological graph; The step of training the session search model with the goal of maximizing the correlation between the global features and the local features in the topological graph includes: Acquire a topology map sample, and extract global features and local features of the topology map sample using the graph model, wherein the topology map sample includes a first topology map and at least one second topology map; For at least one target type node among the multiple types of nodes included in the first topological graph, construct a positive sample according to a global feature corresponding to the target type node and a local feature corresponding to the target type node, and construct a negative sample according to a global feature corresponding to the target type node and a local feature of the second topological graph; The positive sample and the negative sample are input into a discriminator, and the parameters of the graphical model are updated according to the discrimination result and the target.
9. An information search system, characterized in that: The system comprises: An interaction module, configured to obtain a first search session, wherein the first search session includes current query information, historical query information, and a target query result selected from search results corresponding to the historical query information; A construction module, configured to construct a topological graph for at least one of the multiple candidate query results corresponding to the current query information according to the current query information, the historical query information, and the target query result corresponding to the historical query information, wherein the topological graph includes a first node for indicating the query information, a second node for indicating the query result, and a third node for indicating a keyword, as well as relationship information between the nodes; The inference module is used to input the topology graph corresponding to the at least one candidate query result into the session search model to obtain the search result of the current query information.
10. The system according to claim 9, characterized in that The at least one candidate query result includes a first candidate query result, and the building module is specifically used to: Extracting keywords from the current query information, the historical query information, and the target query result; Determine a first node according to the current query information and the historical query information, determine a second node according to the target query result and the first candidate query result, and determine a third node according to the keyword; Determine first relationship information between a first node indicating the current query information and a first node indicating the historical query information, second relationship information between a first node indicating the historical query information and a second node indicating the target query result, and third relationship information between a first node indicating the query information, a second node indicating the query result, and a third node indicating the keyword.
11. The system according to claim 9 or 10, characterized in that: The first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the interaction module is further configured to: Acquire a second search session, where the second search session includes second historical query information and a second target query result selected from search results corresponding to the second historical query information, where the second target query result is the same as the first target query result; The building blocks are also used to: A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the second historical query information, and the first target query result.
12. The system according to claim 9 or 10, characterized in that The first search session includes current query information, first historical query information, and a first target query result selected from search results corresponding to the first historical query information, and the interaction module is further configured to: Acquire a third search session, the third search session including third historical query information matching the first historical query information and a third target query result selected from search results corresponding to the third historical query information; The building blocks are also used to: A topology graph is constructed for at least one candidate query result among a plurality of candidate query results corresponding to the current query information according to the current query information, the first historical query information, the first target query result, and the third target query result.
13. The system according to any one of claims 9 to 12, characterized in that: The conversation search model includes a graph model and a classifier, and the reasoning module is specifically used for: Inputting the topological graph corresponding to the at least one candidate query result into the graph model for feature extraction to obtain a first feature and a second feature, wherein the first feature includes a feature of the topological graph, and the second feature includes a feature of the at least one candidate query result; The first feature and the second feature are input into a classifier to obtain a prediction result, where the prediction result includes the relevance of the at least one candidate query result and the current query information.
14. The system according to claim 13, characterized in that The graph model includes a graph neural network and a pooling layer. The graph neural network takes the topological graph as input and the second feature as a first output. The pooling layer takes the second output of the graph neural network as input and the first feature as an output. The second output of the graph neural network includes features of nodes and relationship information in the topological graph.
15. The system according to any one of claims 9 to 14, characterized in that The conversation search model is pre-trained in the following way: The session search model is trained with the goal of maximizing the correlation between global features and local features in the topological graph.
16. The system according to claim 15, characterized in that The session search model includes a graph model, and the graph model is used to extract global features and local features in a topological graph; The system further comprises: An extraction module, used to obtain a topology map sample, and extract global features and local features of the topology map sample using the graph model, wherein the topology map sample includes a first topology map and at least one second topology map; A construction module, configured to construct a positive sample for at least one target type node among the multiple types of nodes included in the first topological graph according to a global feature corresponding to the target type node and a local feature corresponding to the target type node, and to construct a negative sample according to a global feature corresponding to the target type node and a local feature of the second topological graph; An updating module is used to input the positive sample and the negative sample into a discriminator, and update the parameters of the graphical model according to the discrimination result and the target.
17. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, and the at least one computing device includes at least one processor and at least one memory, wherein the at least one memory stores computer-readable instructions; the at least one processor executes the computer-readable instructions so that the computing device cluster executes the method as described in any one of claims 1 to 8.
18. A computer-readable storage medium, characterized in that: The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 8.
19. A computer program product, characterized in that The method comprises computer-readable instructions; the computer-readable instructions are used to implement the method according to any one of claims 1 to 8.
Citation Information
Cited By
Persistent cognitive machine with an advanced distributed thought cache
US12632663B1
System and Method for Geometric Compression and Persistent Memory Management of Genomic Data Using Dynamic Latent Manifolds
US20260037738A1
Persistent Cognitive Machine with Hierarchical Landmark Fabrics for Geometric Cognition
US20260268086A1
