Search method and device, electronic equipment and storage medium

By combining search keywords and object characteristics during the search process for exploration and integration, and by sampling and adjusting the ranking, the problem of fixed search results is solved, and the diversity and potential of search results are realized.

CN117708386BActive Publication Date: 2026-11-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410051701.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2026-11-27
Estimated Expiration
2044-01-12

AI Technical Summary

Technical Problem

The problem of fixed search result ranking leads to fixed search results for the same search keyword, making it impossible to fully tap the consumption potential of non-top N items.

Method used

By acquiring search requests, searching based on search keywords to obtain the first search result, and combining the characteristics of the object to be searched for to explore, the exploration results and ranking results are merged, sampling is performed, and the ranking of the final search results is adjusted.

Benefits of technology

This prevents the ranking of search results from becoming fixed, increases the diversity and possibilities of search results, and fully taps into the consumption potential of non-top N items.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117708386B_ABST
    Figure CN117708386B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the technical field of computers, and discloses a search method and device, electronic equipment and a storage medium. The method comprises obtaining a search request to obtain a search keyword; searching a to-be-searched object based on the search keyword to obtain a first search result, the search comprising at least one sorting; exploring based on the search keyword and a feature of the to-be-searched object to obtain an exploration result, the feature of the to-be-searched object comprising a feature processed by at least one sorting; fusing the exploration result and a result of the at least one sorting to obtain a fusion result; sampling the to-be-searched object based on the fusion result to obtain a second search result; and adjusting the sorting of the first search result based on the second search result to obtain a target search result corresponding to the search request. This method samples the to-be-searched object based on the fusion result, so that each to-be-searched object has a certain probability of being sampled, thereby preventing the solidification of Matthew effect sorting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and specifically to search methods, apparatus, electronic devices, and storage media. Background Technology

[0002] Search refers to retrieving data from a database given search terms and obtaining search results. The ranking of search results is influenced by a combination of factors, including the relevance of the searched object and the search terms, the timeliness of the content, the quality of the content, and its popularity. Furthermore, historical search results also affect the ranking of subsequent results. Objects that ranked highly in the past are more likely to remain at the top due to ranking strategies, which can lead to an over-concentration of top-ranked objects and a rigid ranking system over time. Summary of the Invention

[0003] In view of this, the present disclosure provides a search method, apparatus, electronic device, and storage medium to solve the problem of fixed ranking in search results.

[0004] In a first aspect, this disclosure provides a search method, the method comprising:

[0005] Obtain the search request and get the search keywords;

[0006] A search is performed on the object to be searched based on the search keywords to obtain a first search result, wherein the search includes at least one sorting.

[0007] Based on the search keywords and the features of the object to be searched, an exploration result is obtained. The features of the object to be searched include the features after at least one sorting process.

[0008] The exploration results are fused with the results of at least one sorting to obtain a fused result;

[0009] Based on the fusion result, the object to be searched is sampled to obtain a second search result;

[0010] The ranking of the first search results is adjusted based on the second search results to obtain the target search results for the search request.

[0011] Secondly, this disclosure provides a search device, the device comprising:

[0012] The search request acquisition module is used to acquire search requests and obtain search keywords;

[0013] The first search module is used to search for the object to be searched based on the search keywords and obtain the first search result, wherein the search includes at least one sorting.

[0014] An exploration module is used to explore based on the search keywords and the features of the object to be searched, and to obtain exploration results. The features of the object to be searched include features after at least one sorting process.

[0015] The fusion module is used to fuse the exploration results with the results of at least one sorting to obtain a fusion result;

[0016] A sampling module is used to sample the object to be searched based on the fusion result to obtain a second search result;

[0017] The result determination module is used to adjust the sorting of the first search result based on the second search result to obtain the target search result corresponding to the search request.

[0018] Thirdly, this disclosure provides an electronic device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the search method described in the first aspect or any corresponding embodiment thereof.

[0019] Fourthly, this disclosure provides a computer-readable storage medium storing computer instructions for causing a computer to perform the search method described in the first aspect or any of its corresponding embodiments.

[0020] The search method provided in this disclosure, after obtaining a search request, obtains search keywords and uses these keywords to search for the target object to obtain a first search result. The search process includes at least one ranking operation. Simultaneously, exploration results are obtained based on the search keywords and the characteristics of the target object. This exploration is essentially performed on top of the at least one ranking process. Since the target object has already undergone corresponding processing in the at least one ranking process, the characteristics of the target object obtained contain more in-depth meanings. The exploration results are fused with the results of the at least one ranking to obtain a fused result. Based on this fused result, the target object is sampled, ensuring that each target object has a certain probability of being sampled, thereby preventing the Matthew effect from solidifying the ranking. Finally, the ranking of the first search result is adjusted based on the second search result; that is, the second search result is added to perturb the ranking result, bringing more possibilities to the ranking of the search results. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the specific embodiments of this disclosure or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0022] Figure 1 This is a flowchart illustrating the search method according to an embodiment of the present disclosure;

[0023] Figure 2 This is a flowchart illustrating another search method according to an embodiment of the present disclosure;

[0024] Figure 3 This is a flowchart illustrating a specific search method according to an embodiment of the present disclosure;

[0025] Figure 4 This is a structural block diagram of a search device according to an embodiment of the present disclosure;

[0026] Figure 5 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this disclosure. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0028] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0029] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0030] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0031] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0032] It is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0033] In the search scenario, there exists both precise demand for a specific object and general demand for a certain type of object. For precise demand, the top N search results often adequately meet the need without requiring deeper consumption. The specific value of N is set according to the actual demand, such as 3, 4, or 5. For general demand, since the demand is not very precise, sticking to the top N search results would result in the same search terms appearing in the same results regardless of the time. However, objects not appearing in the top N search results still have some consumption potential. Due to the Matthew effect, these objects are unlikely to appear in the top N, making it difficult to fully tap their consumption potential. For example, in related technologies, given search keywords, ranking results can be obtained through recall, coarse ranking, fine ranking, and re-ranking, and then displayed.

[0034] Based on this, the search method provided in this embodiment combines search keywords to obtain a first search result, and explores the search keywords and features of the object to be searched to obtain an exploration result; the exploration result is fused with the result of at least one ranking in the search to obtain a fusion result; and the object to be searched is sampled based on the fusion result to obtain a second search result. Finally, the ranking of the first search result is adjusted based on the second search result to obtain the target search result. Because the existence of the second search result is equivalent to providing an additional perturbation after the first search result, and the second search result corresponding to the perturbation is obtained through sampling and does not fix the second search result, this method can avoid the problem of ranking fixation.

[0035] According to an embodiment of this disclosure, a search method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0036] This embodiment provides a search method that can be used in electronic devices, such as computers, servers, etc. Figure 1 This is a flowchart of a search method according to an embodiment of the present disclosure, such as... Figure 1 As shown, the process includes the following steps:

[0037] Step S101: Obtain the search request and get the search keywords.

[0038] Search requests are encapsulated according to the communication protocol between the client and the server. After receiving the search request, it is parsed to obtain the search keywords. These search keywords can be obtained directly from the parsed results, or they can be obtained by filtering and segmenting the parsed results.

[0039] For example, after parsing the search request, the search term "videos showing happiness" is obtained. After filtering and word segmentation, the search keywords are "happy" and "videos".

[0040] Step S102: Search for the target object based on the search keywords to obtain the first search result.

[0041] The search includes at least one sort.

[0042] Different types of search objects can correspond to different databases. After obtaining the search keywords, a search is performed in the corresponding database to obtain the first search result. Examples include image libraries, video libraries, and text libraries. Continuing with the example above, if the search keywords are "happy" and "video," then the type of the current search object can be determined as video, and a search can be performed in the video library to obtain the first search result. The first search result represents the ranking of multiple result objects that satisfy the search keywords.

[0043] When searching for a target object, one can first obtain the features of each target object, calculate the similarity between the search keywords and the features of the target object, and obtain the first search result based on the similarity. The higher the similarity, the higher the ranking of the result object.

[0044] The search method includes at least one ranking. For example, similarity can be calculated using at least one type of feature, and ranking is performed after each calculation. Finally, all ranking results can be merged to obtain the first search result. Alternatively, the search process includes recall, coarse ranking, fine ranking, and re-ranking. Each process involves ranking the search objects, and the first search result is obtained based on the re-ranking result.

[0045] Step S103: Explore based on search keywords and the characteristics of the object to be searched to obtain exploration results.

[0046] The features of the object to be searched include those that have undergone at least one sorting process.

[0047] The features of the object to be searched include those that have undergone at least one sorting process. Specifically, during the search process, the features of the object to be searched will change with each sorting process. As the search progresses, the features used for the object to be searched become increasingly detailed and refined. For example, after the first sorting, shallow features of the object to be searched may be applied; while with multiple sorting processes, deeper features of the object to be searched may be applied. Therefore, combining search keywords with the features of the object to be searched during the exploration process can ensure the accuracy of the exploration results.

[0048] Exploration can be achieved by determining the similarity between search keywords and the features of the target object to obtain search results, or it can be implemented through an exploration model. The input to the exploration model includes search keywords and the features of the target object. The output of the exploration model includes the exploration results, which can characterize the exploration score of each target object. The higher the exploration score, the greater the probability that the target object is identified as the second search result.

[0049] Of course, exploration can also be achieved in other ways, not limited to those shown above; the specific method can be set according to actual needs. It should be noted that features after at least one sorting process refer to features after one or two sorting processes, etc., and not features after one or two sorting processes.

[0050] Step S104: Merge the exploration results with the results of at least one sorting to obtain the fused result.

[0051] The results of at least one ranking can represent the ranking score of the object to be searched, or its relevance to the search keywords, etc., and the exploration results can represent the exploration score of the object to be searched. Both of these represent the object to be searched from a score perspective; therefore, the fused result obtained by combining the two can also be represented using scores.

[0052] The fusion method includes, but is not limited to, adding, multiplying, or weighting the exploration results with the results of at least one sorting, etc., and no limitation is made here.

[0053] Step S105: Based on the fusion result, sample the object to be searched to obtain the second search result.

[0054] The fusion result samples the objects to be searched, which can be done through random sampling or probability sampling to obtain the second search result. Random sampling involves randomly sampling objects based on the number of result objects required to be included in the second search result. Probability sampling calculates the sampling probability of each object to be searched based on the fusion result and uses these probabilities to obtain the second search result.

[0055] Of course, the method of sampling the search object based on the fusion result is not limited to the one shown above, and other methods can also be used. No restrictions are placed on them here.

[0056] In some optional implementations, to avoid duplicate result objects in the first search result and the second search result, the second search result is deduplicated based on the first search result to obtain the deduplicated second search result. Alternatively, deduplication can be performed after obtaining the second search result through sampling, or it can be performed before sampling. For example, during sampling, result objects in the first search result are removed, and instead, the remaining objects to be processed in the objects to be processed, excluding the first search result, are sampled to finally obtain the result objects in the second search result.

[0057] Step S106: Adjust the sorting of the first search result based on the second search result to obtain the target search result corresponding to the search request.

[0058] As shown above, the first search result represents the ranking of multiple result objects that satisfy the search keywords. The second search result is used to adjust the ranking of the first search result, that is, to perturb the ranking of the first search result. Specifically, the second search result is added to a preset position in the first search result, thereby perturbing the ranking of the preset position. For example, if the second search result includes one result object, it is added between the 5th and 6th positions in the first search result, thus changing the original 6th position in the first search result to the 7th position.

[0059] In some alternative implementations, when adjusting the ranking of the first search result using the second search result, the positions of the top 5 results in the first search result are not changed; instead, the adjustment begins from the 6th result onwards. This method preserves the top-ranked results in the first search result while also perturbing the ranking of the first search result.

[0060] The search method provided in this embodiment obtains search keywords after receiving a search request. It then uses these keywords to search for the target object, obtaining a first search result. This search process includes at least one ranking operation. Simultaneously, exploration results are obtained based on the search keywords and the characteristics of the target object. This exploration is essentially performed on top of the at least one ranking process. Since the target object has already undergone corresponding processing during the at least one ranking operation, the characteristics obtained contain more in-depth meanings. The exploration results are then fused with the results of the at least one ranking operation to obtain a fused result. Based on this fused result, the target object is sampled, ensuring that each target object has a certain probability of being sampled, thereby preventing the Matthew effect from solidifying the ranking. Finally, the ranking of the first search result is adjusted based on the second search result. In other words, the second search result's perturbation of the ranking result introduces more possibilities for the ranking of the search results.

[0061] This embodiment provides a search method that can be used in electronic devices, such as computers, mobile terminals, etc. Figure 2 This is a flowchart of a search method according to an embodiment of the present disclosure, such as... Figure 2 As shown, the process includes the following steps:

[0062] Step S201: Obtain the search request and retrieve the search keywords. For details, please refer to [link to relevant documentation]. Figure 1 Step S101 of the illustrated embodiment will not be described again here.

[0063] Step S202: Search for the target object based on the search keywords to obtain the first search result.

[0064] The search includes at least one sort. See details below. Figure 1 Step S101 of the illustrated embodiment will not be described again here.

[0065] Step S203: Explore based on search keywords and the characteristics of the object to be searched to obtain exploration results.

[0066] The features of the object to be searched include those that have undergone at least one sorting process.

[0067] Specifically, step S203 includes: inputting search keywords and features of the object to be searched into the exploration model to obtain exploration results, which include the exploration score of the object to be searched.

[0068] The exploration model can be built based on a neural network model, and there are no specific restrictions on its model structure. The input to the exploration model includes search keywords and features of the search object, and the output includes the exploration results. Since the features of the search object include features that have undergone at least one ranking process, the input of the exploration model is connected to the output of at least one ranking in the search. For example, if the search includes recall, coarse ranking, fine ranking, and re-ranking, then the input of the exploration model can be one of the outputs of recall, coarse ranking, fine ranking, and re-ranking, and the output is the exploration results.

[0069] Using an exploration model for retrieval ensures both accuracy and efficiency of the results due to the model's inherent performance.

[0070] In some alternative implementations, the exploration model is trained through the following steps:

[0071] Step a1: Obtain exploration sample data and corresponding tags. Exploration sample data includes the characteristics of the exploration object and exploration keywords.

[0072] Step a2: Input the exploration sample data into the initial exploration model to obtain the exploration prediction results.

[0073] Step a3: Based on the difference between the exploration prediction results and the labels, the parameters of the initial exploration model are iteratively updated to obtain the exploration model.

[0074] The exploration objects in the exploration sample data are the objects obtained after exploration. For example, if there are 100 objects to be searched, and the second exploration result obtained after exploration includes object 1 and object 2, then object 1 and object 2 are taken as exploration objects, and their corresponding features are taken as the features of the exploration objects. Instead of taking all 100 objects to be searched as exploration objects, the amount of data processing is greatly reduced.

[0075] The labels corresponding to the explored sample data represent the selected objects after exploration. Based on this, the explored sample data is input into the initial exploration model to obtain the exploration prediction results. The initial exploration model has the same model structure as the exploration model, but the model parameters differ.

[0076] If the exploration model is trained offline, its parameters are determined through multiple iterations of the initial exploration model. Specifically, loss is calculated based on the exploration prediction results and labels to represent the difference between them. The parameters of the initial exploration model are then iteratively updated until the iteration ends, thus solidifying the initial exploration model's parameters to obtain the exploration model. It should be noted that the conditions for ending the iteration can be reaching the maximum number of iterations, or the current loss value being less than a threshold, etc., depending on the actual needs; no specific limitations are imposed here. Of course, after the offline-trained exploration model is deployed online, it can also be updated in real-time based on online feedback.

[0077] If the exploration model is trained online, the parameters of the initial exploration model are updated in real time using online data.

[0078] Training the exploration model independently, detached from the search process, ensures that the resulting model yields more efficient and accurate exploration results. Furthermore, by selecting samples based solely on the features of the target object, rather than all objects, the training efficiency of the exploration model is improved.

[0079] In some optional implementations, obtaining the exploratory sample data in step a1 above includes:

[0080] Step a11: Obtain the original features of the object being explored.

[0081] Step a12: Filter the original features to remove the identifying features and obtain the features of the explored object.

[0082] The original features of the object being explored include its identifier, timestamp, and other memory-based identifying features. These memory-based identifying features have no substantial meaning in representing the object; they are merely features used for easy memorization. Therefore, after obtaining the original features of the object, they are filtered to remove identifying features, that is, to remove memory-based identifying features, thereby obtaining the features of the object used for exploration.

[0083] After obtaining the original features of the exploration object, feature filtering is performed to remove the label features. Since the label features are only applicable to characterizing memory-type features and have no practical meaning, they have no substantial impact on the training process. Therefore, these features are removed to reduce the amount of data processing and improve the efficiency of model training.

[0084] In some alternative implementations, the search method described above further includes:

[0085] Step b1: Obtain the feedback information corresponding to the target search result.

[0086] Step b2: Update the exploration model based on the feedback information to obtain the updated exploration model.

[0087] After obtaining the target search result, the system can retrieve corresponding feedback information. For example, if the search type is video, the system retrieves information such as the playback duration of the video in the target search result as feedback; if the search type is text, the system retrieves information such as the display duration of the text in the target search result as feedback.

[0088] Feedback information is used to characterize the application of the target search results. Based on this, the exploration model is updated using the feedback information to obtain an updated exploration model. This updated model is then used to continue search processing, improving the accuracy of the target search results.

[0089] After displaying the target search results, the corresponding feedback information is obtained, and the exploration model is updated in real time using this feedback information so that the updated exploration model is more suitable for the current search environment.

[0090] Step S204: The exploration results are fused with the results of at least one sorting to obtain the fused result.

[0091] Specifically, step S204 includes:

[0092] Step S2041: Obtain the results of at least one sorting.

[0093] Among them, the results of at least one ranking represent the relevance between the search object and the search keywords.

[0094] The results of at least one ranking can be represented by a ranking score. The higher the ranking score, the higher the relevance between the search object and the search keywords.

[0095] Step S2042: For the object to be searched, the product of the exploration results of the object to be searched and the results of at least one sorting is determined as the fusion result.

[0096] The exploration results of the object to be searched represent the exploration score, and the results of at least one sort represent the sorting score. The product of these two is then calculated and used as the fusion result.

[0097] In some optional implementations, the ranking includes fine ranking, where the features of the search object are the features of the search object after fine ranking, and the result of at least one ranking includes the relevance score of the search object after fine ranking.

[0098] For example, such as Figure 3As shown, after obtaining a search request, the first search result is obtained after recall, coarse ranking, fine ranking, and re-ranking. Recall, coarse ranking, fine ranking, and re-ranking all involve sorting. If the input of the exploration model is connected to the output of the fine ranking, the features of the search object used by the exploration model are the features of the search object after fine ranking. Accordingly, the result of at least one ranking includes the relevance score after fine ranking.

[0099] Since fine-ranking covers a wide range of targets and has a low implementation cost, exploring based on fine-ranking can prevent the ranking from becoming fixed without affecting the original search accuracy.

[0100] Step S205: Based on the fusion result, sample the object to be searched to obtain the second search result.

[0101] Specifically, step S205 includes:

[0102] Step S2051: Obtain the sampling factor.

[0103] Among them, the size of the sampling factor is positively correlated with the exploration degree of the exploration model.

[0104] The size of the sampling factor is set according to actual needs, and its specific value is not limited here. The exploration degree of the exploration model represents the exploration depth. For example, if a search object ranked lower in the search list may still be identified as a search result, then the exploration depth is considered to be deep.

[0105] Step S2052: Determine the sampling probability of the object to be searched based on the sampling factor and the fusion result.

[0106] For each target object, the sampling probability is calculated using the sampling factor and the fusion result. For example, the sampling probability can be calculated based on the policy gradient using the following formula:

[0107]

[0108] In the formula, π i Q represents the sampling probability of the i-th object to be searched. i Let τ be the fusion result of the i-th object to be searched, and τ be the sampling factor.

[0109] Step S2053: Obtain the target search object from the first search result to obtain the remaining search objects other than the target search object in the search objects.

[0110] To avoid duplicate results between the second and first search results, the target search object in the first search result is first retrieved, thus narrowing the search scope to the remaining searchable objects. The remaining searchable objects are those other than the target search object.

[0111] Step S2054: Sample the remaining objects to be searched based on their sampling probability to obtain the second search result.

[0112] To increase the exploration scope, instead of directly selecting the remaining searchable object with the highest sampling probability as the result object in the second search result, a probability distribution is used for sampling. The remaining searchable object with a higher sampling probability will have a greater chance of being sampled, and all remaining searchable objects have a probability of being hit. Therefore, this approach is necessary during the cold start phase and when some objects are already partially fixed, to ensure coverage of all searchable objects.

[0113] Step S206: Adjust the ranking of the first search result based on the second search result to obtain the target search result corresponding to the search request. See details below. Figure 1 Step S106 of the illustrated embodiment will not be described again here.

[0114] The search method provided in this embodiment fuses the exploration results with the results of at least one ranking during the exploration process to obtain a fusion result. This processing method can ensure the relevance of the obtained second search result. The setting of the sampling factor ensures that each search object has a certain probability of being sampled, further avoiding the problem of fixed ranking in the search results.

[0115] As a specific application embodiment of this disclosure, a search application is installed on the client, and correspondingly, an application server exists for the search application. The search application provides a search interface, and the client can obtain search statements through interaction with the search interface. Based on this, according to the constraints of the communication protocol between the client and the application server, the search statement is encapsulated to obtain a search request, and the search request is sent to the application server. After receiving the search request, the application server parses it to obtain the search statement, and performs filtering and word segmentation to obtain search keywords. Based on the search keywords, a search is performed in the corresponding database to obtain the first search result. For example, after recalling and coarse ranking from the database, 200 finely ranked candidate videos are obtained. After fine ranking and re-ranking stages, the top 30 results are selected for display, which is the first search result. The fine ranking results during the search process are input into the exploration model. The exploration model processes the features of each video after fine ranking and the search keywords to obtain the exploration score of each video. The exploration score of each video is fused with the fine ranking score to obtain a fused score. Then, the sampling probability is calculated using the sampling factor and the fused score to obtain the sampling probability of each video. Finally, a second search result is obtained by sampling based on the sampling probability of each video, for example, one candidate video. Then, keeping the order of the top three videos in the first search result unchanged, the one candidate video from the second search result is added to the fourth position, and the remaining videos in the first search result are shifted sequentially to the next position, thus obtaining the final target search result.

[0116] This embodiment also provides a search device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0117] This embodiment provides a search device, such as Figure 4 As shown, it includes:

[0118] The search request acquisition module 401 is used to acquire search requests and obtain search keywords.

[0119] The first search module 402 is used to search for the object to be searched based on search keywords and obtain the first search result. The search includes at least one sorting.

[0120] The exploration module 403 is used to explore based on search keywords and the features of the object to be searched, and to obtain exploration results. The features of the object to be searched include features that have undergone at least one sorting process.

[0121] The fusion module 404 is used to fuse the exploration results with the results of at least one sorting to obtain the fusion result.

[0122] The sampling module 405 is used to sample the object to be searched based on the fusion result to obtain the second search result.

[0123] The result determination module 406 is used to adjust the ranking of the first search result based on the second search result to obtain the target search result corresponding to the search request.

[0124] In some alternative implementations, the exploration module 403 includes:

[0125] The exploration unit is used to input search keywords and features of the object to be searched into the exploration model to obtain exploration results, which include the exploration score of the object to be searched.

[0126] In some alternative implementations, the fusion module 404 includes:

[0127] The sorting result acquisition unit is used to acquire the results of at least one sorting, which represents the relevance between the search object and the search keywords.

[0128] The fusion result determination unit is used to determine the fusion result by multiplying the exploration result of the search object with the result of at least one sorting for the search object.

[0129] In some optional implementations, the ranking includes fine ranking, where the features of the search object are the features of the search object after fine ranking, and the result of at least one ranking includes the relevance score of the search object after fine ranking.

[0130] In some alternative implementations, the exploration model is trained through the following steps:

[0131] The sample acquisition module is used to acquire exploration sample data and corresponding tags. The exploration sample data includes the characteristics of the exploration object and exploration keywords.

[0132] The exploration prediction module is used to input exploration sample data into the initial exploration model to obtain exploration prediction results.

[0133] The iterative update module is used to iteratively update the parameters of the initial exploration model based on the difference between the exploration prediction results and the labels, so as to obtain the exploration model.

[0134] In some optional implementations, the sample acquisition module includes:

[0135] The feature acquisition unit is used to acquire the original features of the object being explored.

[0136] The feature filtering unit is used to filter the original features to remove the identifying features from the original features and obtain the features of the explored object.

[0137] In some alternative implementations, the exploration device includes:

[0138] The search result acquisition module is used to obtain feedback information corresponding to the target search result.

[0139] The model update module is used to update the exploration model based on feedback information to obtain the updated exploration model.

[0140] In some alternative implementations, the sampling module 405 includes:

[0141] The sampling factor acquisition unit is used to acquire sampling factors, and the magnitude of the sampling factors is positively correlated with the exploration degree of the exploration model.

[0142] The sampling probability determination unit is used to determine the sampling probability of the object to be searched based on the sampling factor and the fusion result.

[0143] The target search object acquisition unit is used to acquire the target search object in the first search result, so as to obtain the remaining search objects other than the target search object in the search objects.

[0144] The sampling unit is used to sample the remaining search objects based on the sampling probability of the search object to obtain the second search result.

[0145] In this embodiment, the search device is presented in the form of a functional unit. Here, a unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.

[0146] Further functional descriptions of the above modules and units are the same as those in the corresponding embodiments described above, and will not be repeated here.

[0147] This disclosure also provides an electronic device having the above-described features. Figure 4 The search device shown.

[0148] Please see Figure 5 , Figure 5 This is a schematic diagram of the structure of an electronic device provided in an optional embodiment of this disclosure, such as... Figure 5As shown, the electronic device includes one or more processors 10, memory 20, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components communicate with each other via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on external input / output devices (such as display devices coupled to the interfaces). In some alternative implementations, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 5 Take a processor 10 as an example.

[0149] Processor 10 may be a central processing unit, a network processor, or a combination thereof. Processor 10 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The programmable logic device may be a complex programmable logic device (CAMP), a field-programmable gate array (FPGA), a general-purpose array logic (GDA), or any combination thereof.

[0150] The memory 20 stores instructions executable by at least one processor 10 to cause the at least one processor 10 to perform the method shown in the above embodiments.

[0151] The memory 20 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the electronic device. Furthermore, the memory 20 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, the memory 20 may optionally include memory remotely located relative to the processor 10, and these remote memories may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0152] The memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk or solid-state drive; the memory 20 may also include a combination of the above types of memory.

[0153] The electronic device also includes a communication interface 30 for communicating with other devices or communication networks.

[0154] This disclosure also provides a computer-readable storage medium in which the methods described in this disclosure can be implemented in hardware or firmware, or implemented as recordable on a storage medium, or implemented as computer code originally stored on a remote storage medium or a non-transitory machine-readable storage medium and subsequently stored on a local storage medium after being downloaded over a network. Thus, the methods described herein can be processed by software stored on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. The storage medium may be a magnetic disk, optical disk, read-only memory, random access memory, flash memory, hard disk, or solid-state drive, etc.; further, the storage medium may also include combinations of the above types of memory. It is understood that computers, processors, microprocessor controllers, or programmable hardware include storage components capable of storing or receiving software or computer code that, when accessed and executed by the computer, processor, or hardware, implements the methods shown in the above embodiments.

[0155] Although embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations all fall within the scope defined by the appended claims.

Claims

1. A search method, characterized in that, The method includes: Obtain the search request and get the search keywords; A search is performed on the object to be searched based on the search keywords to obtain a first search result, wherein the search includes at least one sorting. The exploration is performed based on the search keywords and the features of the object to be searched to obtain exploration results. The features of the object to be searched include the features after at least one sorting process. The exploration results are obtained by the similarity between the features of the search keywords and the features of the object to be searched. Alternatively, the exploration results are obtained by an exploration model. The input of the exploration model includes the search keywords and the features of the object to be searched, and the output of the exploration model includes the exploration results. The exploration results are fused with the results of at least one sorting to obtain a fused result; Based on the fusion result, the object to be searched is sampled to obtain a second search result; The ranking of the first search results is adjusted based on the second search results to obtain the target search results corresponding to the search request.

2. The method according to claim 1, characterized in that, The exploration based on the search keywords and the characteristics of the search object yields the following results: The search keywords and the features of the object to be searched are input into the exploration model to obtain the exploration results, which include the exploration score of the object to be searched.

3. The method according to claim 2, characterized in that, The process of fusing the exploration results with the results of at least one sorting to obtain a fusion result includes: Obtain the results of the at least one sorting, wherein the results of the at least one sorting represent the relevance between the object to be searched and the search keywords; For the object to be searched, the product of the exploration result of the object to be searched and the result of the at least one sorting is determined as the fusion result.

4. The method according to claim 2, characterized in that, The sorting includes fine sorting, the features of the search object are the features of the search object after the fine sorting process, and the result of at least one sorting includes the relevance score of the search object after the fine sorting process.

5. The method according to claim 2, characterized in that, The exploration model was trained through the following steps: Acquire exploration sample data and corresponding tags, wherein the exploration sample data includes the characteristics of the exploration object and exploration keywords; The exploration sample data is input into the initial exploration model to obtain the exploration prediction results; Based on the difference between the exploration prediction results and the labels, the parameters of the initial exploration model are iteratively updated to obtain the exploration model.

6. The method according to claim 5, characterized in that, The acquisition of exploration sample data includes: Obtain the original features of the object being explored; The original features are filtered to remove the identifying features, thereby obtaining the features of the object being explored.

7. The method according to claim 2, characterized in that, The method further includes: Obtain the feedback information corresponding to the target search result; The exploration model is updated based on the feedback information to obtain the updated exploration model.

8. The method according to any one of claims 2 to 7, characterized in that, The sampling of the object to be searched based on the fusion result to obtain the second search result includes: Obtain a sampling factor, the magnitude of which is positively correlated with the exploration degree of the exploration model; The sampling probability of the object to be searched is determined based on the sampling factor and the fusion result. Obtain the target search object from the first search result to obtain the remaining search objects other than the target search object in the search objects; The remaining search objects are sampled based on their sampling probability to obtain the second search result.

9. A search device, characterized in that, The device includes: The search request acquisition module is used to acquire search requests and obtain search keywords; The first search module is used to search for the object to be searched based on the search keywords and obtain the first search result, wherein the search includes at least one sorting. An exploration module is used to explore based on the search keywords and the features of the object to be searched, and to obtain exploration results. The features of the object to be searched include features after at least one sorting process. The exploration results are obtained by the similarity between the features of the search keywords and the object to be searched, or the exploration results are obtained by an exploration model. The input of the exploration model includes the search keywords and the features of the object to be searched, and the output of the exploration model includes the exploration results. The fusion module is used to fuse the exploration results with the results of at least one sorting to obtain a fusion result; A sampling module is used to sample the object to be searched based on the fusion result to obtain a second search result; The result determination module is used to adjust the sorting of the first search result based on the second search result to obtain the target search result of the search request.

10. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the search method of any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the search method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Recommendation method, device and equipment for e-commerce search, and storage medium

    CN113744017A

  • System and method for performing an intelligent cross-domain search

    EP3647968A1