Method for optimizing diversity of search results and electronic equipment
By acquiring and synthesizing the expanded search terms and result sets of the search terms, and using the multi-source result synthesis mechanism and ranking model, the problem of excessive duplication and singleness of information in the existing search technology is solved, and the diversity and quality of the search results are improved. Provide users with a more comprehensive information experience.
Patent Information
- Application Number
- CN202410804333.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-09-24
AI Technical Summary
Existing search technology is difficult to provide diversified search results in the era of information explosion, causing users to obtain too repetitive and single information and unable to fully understand the subject content.
By obtaining multiple expanded search terms of the target search term, combining the first and second search result sets, and using a multi-source result synthesis mechanism and diversity ranking model, duplicate results are deleted and sorting parameters are updated to provide more comprehensive search results.
It improves the diversity and quality of search results, provides users with a better search experience, and meets the personalized needs and browsing depth of different users.
Smart Images

Figure CN118690071A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a method and electronic device for optimizing search result diversity. Background Art
[0002] With the development of Internet technology, users have become more and more common and efficient in finding relevant information through search terms. However, in the era of information explosion, when users search for a certain topic, they often get a large number of relevant results, which are often highly repetitive and have a single angle. Summary of the invention
[0003] The present disclosure provides a method and an electronic device for optimizing the diversity of search results, so as to at least solve the above technical problems existing in the prior art.
[0004] According to a first aspect of the present disclosure, a method for optimizing search result diversity is provided, the method comprising:
[0005] Obtain multiple extended search terms of the target search term;
[0006] Acquire a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term; the first search result set includes a plurality of ranked search results matching the target search term, and the second search result set includes a plurality of ranked search results matching the extended search term;
[0007] Based on the first search result set and the plurality of second search result sets, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
[0008] In one embodiment, the method further comprises:
[0009] In response to receiving a search request from a user, obtaining user behavior data, wherein the behavior data includes one or more of user input data, interaction behavior data, and behavior result data;
[0010] A target search term is determined based on the behavioral data.
[0011] In one possible implementation manner, the step of obtaining multiple extended search terms of the target search term includes:
[0012] Determining search terms that have semantic similarity to the target search term as candidate search terms;
[0013] Search terms that meet a semantic similarity threshold are selected from the candidate search terms as extended search terms.
[0014] In one possible implementation, determining the diverse search results of the target search term through a multi-source result integration mechanism based on the first search result set and the plurality of second search result sets includes:
[0015] constructing a first data set based on the first search result set and a plurality of the second search result sets;
[0016] Based on the first data set, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
[0017] In one possible implementation, constructing a first data set based on the first search result set and a plurality of the second search result sets includes:
[0018] Determine search results with the same ranking in the first search result set and a plurality of the second search result sets;
[0019] constructing the search results with the same ranking into a data subset, and determining the ranking score of the search results in the first search result set as the ranking score of each search result in the data subset;
[0020] The search results in all data subsets are sorted according to the sorting scores to obtain a first data set.
[0021] In one possible implementation, before sorting the search results in all data subsets according to the sorting scores, the method further includes:
[0022] If the same search results exist in the data subset, deleting the duplicate search results in the data subset;
[0023] If the same search results exist between the data subsets, the search results in the data subsets with smaller ranking scores are deleted.
[0024] In one possible implementation, determining the diverse search results of the target search term based on the first data set includes:
[0025] Determining parameters of the diversity ranking model through a back propagation algorithm based on the first data set and the diversity ranking model;
[0026] A diversity search result of the target search word is determined based on the target search word and the diversity ranking model.
[0027] In one possible implementation, if the search result is a product, the method further includes:
[0028] In response to receiving a user's search request for a product, determining a target search term;
[0029] Acquire multiple extended search terms of the target search term;
[0030] Obtaining a set of candidate products corresponding to the target search term and the extended search term;
[0031] Obtaining a candidate product sequence based on the candidate product set and the diversity ranking model;
[0032] Determine a candidate commodity from the candidate commodity sequence for user recommendation.
[0033] In one possible implementation, obtaining a candidate product sequence based on the candidate product set and a diversity ranking model includes:
[0034] The candidate product set is classified according to relevance and diversity to obtain multiple candidate product subsets;
[0035] Based on the multiple candidate product subsets good heat diversity ranking model, the parameters of the diversity ranking model are updated by a back propagation algorithm;
[0036] The candidate product sequence is obtained according to the diversity ranking model after updating the parameters.
[0037] According to a second aspect of the present disclosure, there is provided an electronic device, including:
[0038] at least one processor; and
[0039] a memory communicatively connected to the at least one processor; wherein,
[0040] The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute:
[0041] Obtain multiple extended search terms of the target search term;
[0042] Acquire a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term; the first search result set includes a plurality of ranked search results matching the target search term, and the second search result set includes a plurality of ranked search results matching the extended search term;
[0043] Based on the first search result set and the plurality of second search result sets, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
[0044] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0046] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0047] Figure 1 A schematic diagram showing a flow chart of a method for optimizing search result diversity according to an embodiment of the present disclosure;
[0048] Figure 2 A flow chart showing another method for optimizing the diversity of search results according to an embodiment of the present disclosure is shown;
[0049] Figure 3 A flow chart showing another method for optimizing the diversity of search results according to an embodiment of the present disclosure is shown;
[0050] Figure 4 A flow chart showing another method for optimizing the diversity of search results according to an embodiment of the present disclosure is shown;
[0051] Figure 5 A flow chart showing another method for optimizing the diversity of search results according to an embodiment of the present disclosure is shown;
[0052] Figure 6 A flow chart showing another method for optimizing the diversity of search results according to an embodiment of the present disclosure is shown;
[0053] Figure 7 A flow chart showing another method for optimizing the diversity of search results according to an embodiment of the present disclosure is shown;
[0054] Figure 8 A schematic diagram showing a candidate commodity set according to an embodiment of the present disclosure is shown;
[0055] Fig. 9 A schematic diagram showing a candidate commodity subset according to an embodiment of the present disclosure is shown;
[0056] Fig.10 A schematic diagram of a training diversity ranking model according to an embodiment of the present disclosure is shown;
[0057] Fig.11 A schematic diagram of a product recommendation effect according to an embodiment of the present disclosure is shown;
[0058] Fig.12 A schematic diagram showing the structure of a device for optimizing search result diversity according to an embodiment of the present disclosure is shown;
[0059] Fig.13 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0060] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0061] Currently, when searching on the Internet, after the user enters a keyword, the search system will match the information on the Internet according to the algorithm and return the search results according to certain sorting rules. For example, in the field of content recommendation, such as news web pages, users enter keywords, and the search strategy based on direct keyword matching will return news results that are highly relevant to the keywords; in the field of product recommendation, when users search for a product on the search platform, search results that are highly relevant to the product will be returned. These search results are often highly repetitive and have a single angle, which prevents users from accessing broader and more comprehensive information.
[0062] The diversity of search results can ensure that users obtain information about the same topic from different angles and levels, helping users to understand the topic content more comprehensively. For example, in the field of product recommendation, in addition to displaying products that are highly relevant to the searched products, other similar or related products can also be displayed to increase the user's browsing depth and willingness to buy. In addition, because different users may have different concerns or interests in the same topic, diversified search results can also meet the personalized needs of different users. At present, the maximum marginal relevance algorithm (MMR) is used to optimize the diversity of search results. Based on the similarity between the search term and the search result, as well as the similarity between the search results, a weight item is set, and the above two similarities are weighted and calculated to obtain the ranking result of the search result. This method relies on manual experience to set the weight.
[0063] Since search result diversity is crucial to improving user search satisfaction and overall experience, the present disclosure provides a method for optimizing search result diversity.
[0064] like Figure 1 A flow chart of a method for optimizing search result diversity provided by an embodiment of the present disclosure is shown, and the method includes:
[0065] S101: Acquire multiple extended search terms of a target search term.
[0066] The target search term is the keyword or phrase that the user enters when searching. It is the basis for the search system to understand the user's intention and return relevant search results. The target search term can be a word, phrase, sentence, or multimedia content such as an image or sound.
[0067] For example, a user can enter text content in the search box, and use the entire text content as the target search term; or extract keywords from the text information as the target search term; or understand the text content through semantics and obtain synonyms as the target search term, which is not limited in the present disclosure. A user can also enter the target search term by voice, or search for information related to the image content by uploading a picture, and can use image recognition technology to analyze the image content and obtain the target search term related to it.
[0068] Extended search terms refer to other search terms that are related or similar to the target search terms. They are used to increase the breadth and depth of the search and help users find more relevant information and resources. By obtaining multiple extended search terms for the target search terms, the search system can more fully understand the user's search intent and provide more accurate and richer search results.
[0069] In one example, multiple extended search terms of a target search term can be obtained through a generative model, wherein the generative model is trained based on large language models such as FlanT5, BERT, and GPT, which learn a large amount of text data during training and have the ability to generate natural language text.
[0070] For example, multiple sets of training data pairs can be constructed, each set of training data pairs includes an original target search and an extended search, where an original target search corresponds to multiple extended searches related to its semantics; the original target search is used as input and the extended search is used as output until the training termination condition of the generative model is reached.
[0071] For example, if the target search term is "thin and light notebook", the expanded candidate search terms will cover different product series, configurations, features, etc. The expanded search terms obtained after expansion include "thin and light notebook 14 inches", "thin and light notebook silver", "thin and light notebook X chip", "thin and light notebook 2024 new model" and so on.
[0072] S102, obtaining a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term; the first search result set includes a plurality of ranked search results matching the target search term, and the second search result set includes a plurality of ranked search results matching the extended search term.
[0073] Search for the target search term to obtain a first search result set, wherein the first search result set is composed of search results sorted according to a certain sorting rule, for example, sorting from high to low according to the degree of matching between the search results and the target search term. In an example, search results with lower sorting in the first search result set may also be deleted, and only search results that meet a threshold are retained to form the first search result set.
[0074] Each extended search term is searched to obtain a second search result set corresponding to each extended search term, and the search results in the second search result set are also sorted from high to low according to the degree of matching with the extended search term. In an example, the search results ranked low in the second search result set can also be deleted, and only the search results that meet the threshold are retained to form the second search result set.
[0075] S103: Determine the diverse search results of the target search term through a multi-source result integration mechanism based on the first search result set and the plurality of second search result sets.
[0076] The multi-source result integration mechanism can integrate information from different data sources or multiple different types. The search results in the first search result set and the second search result set are integrated through the multi-source result integration mechanism to provide more comprehensive, accurate and reliable search results.
[0077] In the above scheme, by obtaining multiple extended search terms of the target search term, the user's search intent can be obtained more comprehensively and the search content can be enriched; further, a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term are obtained, and the first search result set and the second search result set can provide more accurate and richer search results. Finally, the first search result set and the second search result set determine the diverse search results of the target search term through the source result comprehensive mechanism. Through the above method, the diversity and quality of the search results can be effectively improved, providing users with a better search experience.
[0078] In an example of the present disclosure, a method for optimizing the diversity of search results is also provided. Figure 2 As shown, the method also includes:
[0079] S201. In response to receiving a search request from a user, obtain user behavior data, where the behavior data includes one or more of user input data, interactive behavior data, and behavior result data.
[0080] When the user enters the initial search word or phrase through the search input box, the user's search request is received and the user's behavior data is obtained. The behavior data covers basic information, specific behaviors, and behavior results. The user's search intention and interest changes can be captured through the user's behavior data.
[0081] The user input data is the keywords entered by the user in the search system.
[0082] Interaction behavior data includes the way users interact with the search process, such as clicking, sliding, typing, etc.; it also includes the specific content of the user's operations, such as the pages browsed, the links clicked, the products purchased, etc.
[0083] Behavioral result data refers to the results of user behavior, such as successful purchase, successful registration, completion of video viewing, etc.
[0084] S202: Determine a target search term according to the behavior data.
[0085] For example, the target search term can be determined based on the user input data, that is, the information input by the user is used as the target search term, or the key information input is extracted as the target search term. If the user modifies the search term or phrase multiple times, the last search term input can also be used as the target search term.
[0086] You can also determine target search terms based on interactive behavior data. If a user clicks on a search result and views detailed information, you can use the keywords or phrases in the result as target search terms. If the user further refines the search content through navigation or filtering functions, you can use these refined conditions as target search terms.
[0087] The target search term can also be determined based on the behavior result data. If the user finds satisfactory results and performs further operations (such as purchase, download), the keywords or phrases in these results can be used as the target search term. If the user is not satisfied with the search results and searches again, a new search term can be used as the target search term.
[0088] The target search term may also be dynamically adjusted based on multiple data including user input data, transaction behavior data, and behavior result data.
[0089] In an example of the present disclosure, a method for optimizing the diversity of search results is also provided. Figure 3 As shown, the step of obtaining multiple extended search terms of the target search term includes:
[0090] S301: Determine search terms that have semantic similarity with the target search term as candidate search terms.
[0091] By inputting the target search term into the above-trained generative model, the generative model will predict and generate multiple search terms with semantic similarity to the target search term as candidate search terms. Each generated candidate search term has a generation probability associated with the target search term. This generation probability represents the possibility of the generative model generating the candidate search term given the original target search term. The more similar the semantics of the candidate search term is to the target search term, the greater the generation probability is. Therefore, the generation probability can be equated with the semantic similarity between the candidate search term and the target search term.
[0092] S302: Filter search terms that meet a semantic similarity threshold from the candidate search terms as extended search terms.
[0093] In order to avoid error propagation, a semantic similarity threshold is set, and candidate search terms with higher probabilities can be selected as the final extended search terms for subsequent processing and application.
[0094] For example, if the target search word is "Q", the candidate search words and the probabilities of each candidate search word output by the generation model are as follows: Q1 (0.99), Q2 (0.99), Q3 (0.95), Q4 (0.92), Q5 (0.90), Q6 (0.89), Q7 (0.84), Q8 (0.82), Q9 (0.79), Q10 (0.72), Q11 (0.65). Set a generation probability threshold (such as 0.8) and only keep the candidate search words with a generation probability greater than the threshold as extended search words. Then the extended search words of the target search word "Q" are Q1, Q2, Q3, Q4, Q5, Q6, Q7, Q8.
[0095] In an example of the present disclosure, a method for optimizing the diversity of search results is also provided. Figure 4 As shown, the determining of the diverse search results of the target search term through a multi-source result integration mechanism based on the first search result set and the plurality of second search result sets includes:
[0096] S401: Construct a first data set based on the first search result set and a plurality of the second search result sets.
[0097] Assume that the target search term is "a" and the extended search terms are "a1", "a2", "a3", "a4", and "a5". The first search result set matching the target search term and the second search result set matching the extended search term are as follows (it should be noted that in this example, only search results that meet the threshold are retained and the search results are arranged from large to small according to the ranking score):
[0098] The first search result set matching the target search term "a" is {A1, A2, A3, A4, A5, A6, A7, A8, A9, A10};
[0099] The second search result set matching the expanded search term "a1" is {A11, A12, A13, A14, A15, A16, A17, A18};
[0100] The second search result set matching the expanded search term "a2" is {A21, A22, A23, A24, A25, A26, A27, A28};
[0101] The second search result set matching the expanded search term "a3" is {A31, A32, A33, A34, A35, A36, A37};
[0102] The second search result set matching the expanded search term "a4" is {A41, A42, A43, A44, A45, A46, A47, A48};
[0103] The second search result set matching the expanded search term "a5" is {A51, A52, A53, A54, A55, A56, A57, A58, A59, A510}.
[0104] S402: Determine diverse search results for the target search term through a multi-source result integration mechanism based on the first data set.
[0105] A first data set is constructed according to the first search result set and the plurality of second search result sets. The first data set includes search results from the plurality of search result sets and is re-ranked according to their ranking scores.
[0106] In an example of the present disclosure, a method for optimizing the diversity of search results is also provided. Figure 5 As shown, the step of constructing a first data set based on the first search result set and a plurality of the second search result sets includes:
[0107] S501: Determine search results with the same ranking in the first search result set and multiple second search result sets.
[0108] S502: Construct the search results with the same ranking into a data subset, and determine the ranking scores of the search results in the first search result set as the ranking scores of each search result in the data subset.
[0109] Following the above example, the search results with the same ranking in the first search result set and multiple second search result sets are constructed into data subsets. A data subset constructed by the search result ranked first is {A1, A11, A21, A31, A41, A51}; a data subset constructed by the search result ranked second is {A2, A12, A22, A32, A42, A52}; a data subset constructed by the search result ranked third is {A3, A13, A23, A33, A43, A53}, and so on to determine all data subsets. The ranking score of the first search result in the data subset is used as the ranking score of each search result in the subset. Assume that in the first data subset, the initial ranking scores of each search result are: A1's ranking score is 100, A11's ranking score is 98, A21's ranking score is 99, A31's ranking score is 96, A41's ranking score is 90, and A51's ranking score is 97. Then the ranking scores of A1, A11, A21, A31, A41, and A51 are all determined to be 100.
[0110] If the same search results exist in the data subset, the repeated search results in the data subset are deleted; assuming that A1 and A51 are the same in the data subset, the repeated search results are deleted.
[0111] If the same search results exist between the data subsets, the search results in the data subsets with smaller ranking scores are deleted.
[0112] Assume that the ranking score of the search results in the first data subset is 100 and the ranking score of the search results in the second data subset is 98. If A31 in the first data subset is the same as A42 in the second data subset, A42 in the second data subset is deleted.
[0113] S503: Sort the search results in all data subsets according to the sorting scores to obtain a first data set.
[0114] The ranking scores of the search results of each data subset are determined in the same way, and then the search results in all data subsets are ranked according to the ranking scores to obtain a first data set, which includes the search results and the ranking scores of the search results.
[0115] In an example of the present disclosure, a method for optimizing the diversity of search results is also provided. Figure 6 As shown, determining the diverse search results of the target search term based on the first data set includes:
[0116] S601. Determine parameters of the diversity ranking model through a back propagation algorithm based on the first data set and the diversity ranking model.
[0117] The diversity ranking model takes the single tower ranking model based on Bert as an example. It is a ranking model trained based on existing training data. The training data includes query, document and annotated data, where the query is the search term, the document is the candidate content related to the search term, and the annotated data represents the correlation between the query and the document.
[0118] Using the first data set as a training sample, the diversity ranking model is further trained through the back propagation algorithm to determine the parameters of the diversity ranking model. The specific method is as follows:
[0119] (1) Determine the training data set: the first data set is used as the training data set.
[0120] (2) Construct a self-distillation model: Select an existing ranking model as the teacher model, and let the model guide itself to learn. This can improve the generalization ability of the model without increasing the complexity of the model. During the training process, the output of the teacher model is used as a label to train the student model. This can force the student model to imitate the ranking behavior of the teacher model.
[0121] The mean square error loss (MSE) function is used as the loss function of the self-distillation model. The loss function is as follows:
[0122]
[0123] Among them, λ represents the penalty coefficient, score i Predict the score for the model, is the ranking score of each search result in the first data set. Q is the target search term, Q' is the extended search term, QQ' represents the probability score of the generative model extending Q', and R is the set of search results whose ranking scores are changed due to the extended search term. For example, in the above example, the initial ranking score of A11 is 98, but after it is grouped into a data subset with A1, its ranking score is updated to 100, so A11 belongs to the search result whose ranking score is changed.
[0124] The above loss function introduces the probability score of the extended search term as a penalty coefficient. When the probability score of the extended search term is low, the penalty coefficient is small, thereby reducing the weight of the search result corresponding to the extended search term in the loss function.
[0125] Using the calculated MSE loss, gradients are calculated through the back-propagation algorithm, and these gradients are used to update the parameters of the model (such as weights and biases) to minimize the MSE loss until the model converges.
[0126] S602: Determine a diversity search result of the target search term based on the target search term and the diversity ranking model.
[0127] After the parameters of the diversity ranking model are determined, the target search term is input into the diversity ranking model, and the diversity ranking model outputs the diversity search results according to the ranking scores corresponding to the search results.
[0128] In an example of the present disclosure, a method for optimizing the diversity of search results is also provided. Figure 7 As shown, if the search result is a product, the method further includes:
[0129] S701: In response to receiving a user's search request for a product, determine a target search term.
[0130] In this example, the product name Q input by the user is used as the target search term, for example, the user input is "ThinkpadX".
[0131] S702: Acquire multiple extended search terms of the target search term.
[0132] The target search word Q is obtained through the generative model to obtain Q′1, Q′2, …, Q′ n As extended search terms, in order to avoid error propagation, a threshold is set, and only extended search terms whose probability scores of generated queries are greater than the threshold (e.g., 0.7) are retained. For example, the extended search terms obtained based on the target search term "Thinkpad X" are "Thinkpad X1", "Thinkpad X13", "Thinkpad X1 Nano", "Thinkpad", "Thinkpad X13 2023", etc.
[0133] S703: Obtain a set of candidate products corresponding to the target search term and the extended search term.
[0134] All search results obtained based on the target search term and the extended search term constitute a candidate product set, and the candidate product set is denoted by D.
[0135] S704: Obtain a candidate product sequence based on the candidate product set and the diversity ranking model.
[0136] The method for obtaining a candidate product sequence includes:
[0137] The candidate product set is classified according to relevance and diversity to obtain multiple candidate product subsets;
[0138] Based on the multiple candidate product subsets good heat diversity ranking model, the parameters of the diversity ranking model are updated by a back propagation algorithm;
[0139] The candidate product sequence is obtained according to the diversity ranking model after updating the parameters.
[0140] like Figure 8As shown in the figure, after the target search term, the extended search term and the candidate product set are input into the diversity ranking model, the candidate product set {D1, D2, D3, D4, …, D1} corresponding to the target search term Q is output, where D1, D2, D3, D4, …, D1 are arranged from large to small according to the ranking score. The output is the same as the extended search term Q′1, Q′2, …, Q′ n The corresponding candidate product sets {D′ 11 , D′ 12 , D′ 13}, {D′ 21 , D′ 22}wait.
[0141] All products with the same ranking in the candidate product set are assigned to the same level. To ensure the uniqueness of the candidate data set, duplicates within a level should be removed. If there are duplicates between levels, only candidate products in the highest level are retained. The candidate product set is divided into levels according to relevance and diversity to obtain multiple candidate product subsets. The ranking score of each level of candidate product subset is set to the ranking score of the products in the candidate product set obtained by sorting the target search terms. Fig. 9 As shown, the ranking scores of the products in the first tier are all set to the ranking score S1 corresponding to D1; the ranking scores of the products in the second tier are all set to the ranking score S2 corresponding to D2, and so on, to determine the ranking scores of the products in all candidate product subsets. If there are identical search results, that is, identical products, in the candidate product subsets, the duplicate products in the candidate product subsets are deleted. If there are identical products between candidate product subsets, the products in the candidate product subsets with smaller ranking scores are deleted.
[0142] like Fig.10 As shown in Figure 1, all products in the candidate product subsets are organized into a training set according to their ranking scores, and the parameters of the diversity ranking model are updated through the back propagation algorithm. The user inputs the target search term into the diversity ranking model, and the candidate product sequence is output.
[0143] S705: Determine a candidate commodity from the candidate commodity sequence for user recommendation.
[0144] The top ranked items in the candidate item sequence are output to the user as recommendation results. These recommendation results can be displayed to the user in various forms, such as item lists, personalized advertisements, email notifications, etc. Fig.11 The figure shows a schematic diagram of a product recommendation effect, in which candidate products are displayed to the user in the form of a product list.
[0145] In order to implement the above method for optimizing the diversity of search results, an example of the present disclosure further provides a device for optimizing the diversity of search results, such as Fig.12 As shown, the device comprises:
[0146] An expansion module 10 is used to obtain multiple expanded search terms of the target search term;
[0147] An acquisition module 20 is used to acquire a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term; the first search result set includes a plurality of ranked search results matching the target search term, and the second search result set includes a plurality of ranked search results matching the extended search term;
[0148] The processing module 30 is configured to determine the diverse search results of the target search term through a multi-source result integration mechanism based on the first search result set and a plurality of the second search result sets.
[0149] In one example, the acquisition module 20 is further used for:
[0150] In response to receiving a search request from a user, obtaining user behavior data, wherein the behavior data includes one or more of user input data, interaction behavior data, and behavior result data;
[0151] A target search term is determined based on the behavioral data.
[0152] In one example, the acquisition module 20 is further used for:
[0153] Determining search terms that have semantic similarity to the target search term as candidate search terms;
[0154] Search terms that meet a semantic similarity threshold are selected from the candidate search terms as extended search terms.
[0155] In one example, the processing module 30 is further configured to:
[0156] constructing a first data set based on the first search result set and a plurality of the second search result sets;
[0157] Based on the first data set, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
[0158] In one example, the processing module 30 is further configured to:
[0159] Determine search results with the same ranking in the first search result set and a plurality of the second search result sets;
[0160] constructing the search results with the same ranking into a data subset, and determining the ranking score of the search results in the first search result set as the ranking score of each search result in the data subset;
[0161] The search results in all data subsets are sorted according to the sorting scores to obtain a first data set.
[0162] In one example, the processing module 30 is further configured to:
[0163] If the same search results exist in the data subset, deleting the duplicate search results in the data subset;
[0164] If the same search results exist between the data subsets, the search results in the data subsets with smaller ranking scores are deleted.
[0165] In one example, the processing module 30 is further configured to:
[0166] Determining parameters of the diversity ranking model through a back propagation algorithm based on the first data set and the diversity ranking model;
[0167] A diversity search result of the target search word is determined based on the target search word and the diversity ranking model.
[0168] In one example, if the search result is a product, the processing module 30 is further configured to:
[0169] In response to receiving a user's search request for a product, determining a target search term;
[0170] Acquire multiple extended search terms of the target search term;
[0171] Obtaining a set of candidate products corresponding to the target search term and the extended search term;
[0172] Obtaining a candidate product sequence based on the candidate product set and the diversity ranking model;
[0173] Determine a candidate commodity from the candidate commodity sequence for user recommendation.
[0174] In one example, the processing module 30 is further configured to:
[0175] The candidate product set is classified according to relevance and diversity to obtain multiple candidate product subsets;
[0176] Based on the multiple candidate product subsets good heat diversity ranking model, the parameters of the diversity ranking model are updated by a back propagation algorithm;
[0177] The candidate product sequence is obtained according to the diversity ranking model after updating the parameters.
[0178] In the above scheme, by obtaining multiple extended search terms of the target search term, the user's search intent can be obtained more comprehensively and the search content can be enriched; further, a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term are obtained, and the first search result set and the second search result set can provide more accurate and richer search results. Finally, the first search result set and the second search result set determine the diverse search results of the target search term through the source result comprehensive mechanism. Through the above method, the diversity and quality of the search results can be effectively improved, providing users with a better search experience.
[0179] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
[0180] Fig.13 A schematic block diagram of an example electronic device 800 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0181] like Fig.13 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0182] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0183] The computing unit 801 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the method for optimizing the diversity of search results. For example, in some embodiments, the method for optimizing the diversity of search results may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method for optimizing the diversity of search results described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the method for optimizing the diversity of search results by any other appropriate means (e.g., by means of firmware).
[0184] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0185] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0186] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0187] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0188] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0189] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0190] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0191] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0192] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A method for optimizing the diversity of search results, the method include: Obtain multiple extended search terms of the target search term; Obtaining a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term; The first search result set includes a plurality of ranked search results matching the target search term, and the second search result set includes a plurality of ranked search results matching the expanded search term; Based on the first search result set and the plurality of second search result sets, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
2. The method according to claim 1, further comprising: include: In response to receiving a search request from a user, obtaining user behavior data, wherein the behavior data includes one or more of user input data, interaction behavior data, and behavior result data; A target search term is determined based on the behavioral data.
3. The method according to claim 1 or 2, wherein the step of obtaining multiple extended search terms of the target search term comprises: include: Determining search terms that have semantic similarity to the target search term as candidate search terms; Search terms that meet a semantic similarity threshold are selected from the candidate search terms as extended search terms.
4. The method according to claim 1, wherein the plurality of search results for the target search term are determined through a multi-source result integration mechanism based on the first search result set and the plurality of second search result sets. include: constructing a first data set based on the first search result set and a plurality of the second search result sets; Based on the first data set, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
5. The method according to claim 4, wherein the first data set is constructed based on the first search result set and a plurality of the second search result sets. include: Determine search results with the same ranking in the first search result set and a plurality of the second search result sets; constructing the search results with the same ranking into a data subset, and determining the ranking score of the search results in the first search result set as the ranking score of each search result in the data subset; The search results in all data subsets are sorted according to the sorting scores to obtain a first data set.
6. The method according to claim 5, before sorting the search results in all data subsets according to the sorting scores, the method further include: If the same search results exist in the data subset, deleting the duplicate search results in the data subset; If the same search results exist between the data subsets, the search results in the data subsets with smaller ranking scores are deleted.
7. The method according to claim 4, wherein the determining the diversity search results of the target search term based on the first data set, include: Determining parameters of the diversity ranking model through a back propagation algorithm based on the first data set and the diversity ranking model; A diversity search result of the target search word is determined based on the target search word and the diversity ranking model.
8. The method according to claim 1, if the search result is a product, the method further include: In response to receiving a user's search request for a product, determining a target search term; Acquire multiple extended search terms of the target search term; Obtaining a set of candidate products corresponding to the target search term and the extended search term; Obtaining a candidate product sequence based on the candidate product set and the diversity ranking model; Determine a candidate commodity from the candidate commodity sequence for user recommendation.
9. The method according to claim 8, wherein the candidate product sequence is obtained based on the candidate product set and the diversity ranking model, include: The candidate product set is classified according to relevance and diversity to obtain multiple candidate product subsets; Based on the multiple candidate product subsets good heat diversity ranking model, the parameters of the diversity ranking model are updated by a back propagation algorithm; The candidate product sequence is obtained according to the diversity ranking model after updating the parameters.
10. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to execute: Obtain multiple extended search terms of the target search term; Acquire a first search result set corresponding to the target search term and a second search result set corresponding to the extended search term; the first search result set includes a plurality of ranked search results matching the target search term, and the second search result set includes a plurality of ranked search results matching the extended search term; Based on the first search result set and the plurality of second search result sets, a diverse search result of the target search term is determined through a multi-source result integration mechanism.
Citation Information
Patent Citations
Searching-ranking model training method and device and search processing method
CN104615767A
Data processing method and device, electronic equipment and storage medium
CN112559895A
Searched word expansion method and device, equipment, and medium
CN114020867A
Searching method and device, storage medium and electronic equipment
CN114297348A
Search recommendation method and recommendation device, electronic equipment and storage medium
CN114329055A
