Search method, device, equipment, and medium

By analyzing users' historical search behavior data and using intent recognition models to generate search results, the problem of search engines having difficulty accurately identifying user intent is solved, thereby improving the accuracy of search results and user experience.

CN119557418BActive Publication Date: 2025-09-26BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411615206.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-09-26
Estimated Expiration
2044-11-12

AI Technical Summary

Technical Problem

In the prior art, it is difficult for search engines to accurately identify users' search intent, resulting in inaccurate search results.

Method used

By analyzing the user's historical search behavior data, we can determine the historical search requests related to the target search request, and use the intent recognition model and generative language model to generate search results that are more in line with the user's intent.

Benefits of technology

Improves the accuracy of search results and user experience, meeting users' search needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119557418B_ABST
    Figure CN119557418B_ABST
Patent Text Reader

Abstract

The present disclosure provides a search method, apparatus, device, and medium, which relate to the field of search technology, and in particular to the field of artificial intelligence, intelligent agents, and generative search technology. The implementation scheme is as follows: in response to receiving a target search request, determining a historical search request corresponding to the target search request, wherein the correlation between the historical search request and the target search request is not less than a preset threshold; obtaining historical search data corresponding to the historical search request, wherein the historical search data includes interaction behavior information of historical users for historical search results of the historical search request; determining a target search intent based on the target search request and the historical search data; and determining a target search result based on the target search intent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of search technology, in particular to the field of artificial intelligence, intelligent agents and generative search technology, and specifically to a search method, device, electronic device, computer-readable storage medium and computer program product. Background Art

[0002] Artificial intelligence (AI) is the study of how computers can simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, and planning). It encompasses both hardware and software technologies. AI hardware technologies generally include sensors, specialized AI chips, cloud computing, distributed storage, and big data processing. AI software technologies primarily encompass computer vision, speech recognition, natural language processing, machine learning / deep learning, big data processing, and knowledge graphs.

[0003] With the development of computer technology, people rely more and more on search engines to retrieve all kinds of information. To improve the user experience of using search engines, it is necessary to more accurately identify the user's search intent and return more comprehensive and accurate search results to the user.

[0004] The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any approach described in this section is prior art simply by virtue of its inclusion in this section. Similarly, unless otherwise indicated, the issues raised in this section should not be considered as having been recognized in any prior art. Summary of the Invention

[0005] The present disclosure provides a search method, apparatus, electronic device, computer-readable storage medium, and computer program product.

[0006] According to one aspect of the present disclosure, a search method is provided, including: in response to receiving a target search request, determining a historical search request corresponding to the target search request, wherein the correlation between the historical search request and the target search request is not less than a preset threshold; obtaining historical search data corresponding to the historical search request, wherein the historical search data includes interaction behavior information of historical users with respect to historical search results of the historical search request; determining a target search intent based on the target search request and the historical search data; and determining a target search result based on the target search intent.

[0007] According to another aspect of the present disclosure, a search device is provided, including: a first determination unit, configured to determine, in response to receiving a target search request, a historical search request corresponding to the target search request, wherein the correlation between the historical search request and the target search request is not less than a preset threshold; an acquisition unit, configured to acquire historical search data corresponding to the historical search request, wherein the historical search data includes interaction behavior information of historical users for historical search results of the historical search request; a second determination unit, configured to determine a target search intent based on the target search request and the historical search data; and a third determination unit, configured to determine a target search result based on the target search intent.

[0008] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above-mentioned search method.

[0009] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned search method.

[0010] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program can implement the above search method when executed by a processor.

[0011] According to one or more embodiments of the present disclosure, the user's search intent can be identified more accurately, thereby improving search accuracy.

[0012] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings illustrate exemplary embodiments and constitute a part of the specification. Together with the description of the specification, they serve to explain exemplary implementation of the embodiments. The illustrated embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numerals designate similar, but not necessarily identical, elements.

[0014] Figure 1 A schematic diagram illustrating an exemplary system in which the various methods described herein may be implemented according to exemplary embodiments of the present disclosure;

[0015] Figure 2 A flowchart of a search method according to an exemplary embodiment of the present disclosure is shown;

[0016] Figure 3 A schematic diagram illustrating an intention recognition process according to an exemplary embodiment of the present disclosure is shown;

[0017] Figure 4 A schematic diagram showing the structure of search results according to an exemplary embodiment of the present disclosure is shown;

[0018] Figure 5 A schematic diagram illustrating a search process according to an exemplary embodiment of the present disclosure is shown;

[0019] Figure 6 A structural block diagram of a search device according to an exemplary embodiment of the present disclosure is shown;

[0020] Figure 7 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0021] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0022] In this disclosure, unless otherwise specified, the use of terms such as "first" and "second" to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements. Such terms are only used to distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases, based on the context of the description, they may also refer to different instances.

[0023] The terms used in the descriptions of the various examples described in this disclosure are for the purpose of describing specific examples only and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element may be one or more. In addition, the term "and / or" used in this disclosure encompasses any one and all possible combinations of the listed items.

[0024] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

[0025] Figure 1FIG2 is a schematic diagram of an exemplary system 100 in which the various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 can be configured to execute one or more applications.

[0026] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable the search method to be performed.

[0027] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.

[0028] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may, in turn, utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.

[0029] The user may use client devices 101, 102, 103, 104, 105 and / or 106 to send a search request. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure can support any number of client devices.

[0030] Client devices 101, 102, 103, 104, 105, and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, gaming systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux, or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, and Android. Portable handheld devices may include cellular phones, smartphones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Gaming systems may include various handheld gaming devices, internet-enabled gaming devices, etc. The client device is capable of executing various different applications, such as various Internet-related applications, communication applications (eg, email applications), Short Message Service (SMS) applications, and may use various communication protocols.

[0031] The network 110 may be any type of network known to those skilled in the art that can support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.

[0032] Server 120 may include one or more general-purpose computers, specialized server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.

[0033] The computing units in the server 120 may run one or more operating systems including any of the operating systems described above as well as any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, and the like.

[0034] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and 106. Server 120 may also include one or more applications to display the data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and 106.

[0035] In some embodiments, server 120 may be a distributed system server or a server integrated with blockchain. Server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host equipped with artificial intelligence technology. A cloud server is a host product within the cloud computing service system that addresses the management difficulties and poor scalability of traditional physical hosts and virtual private servers (VPS) services.

[0036] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in a variety of locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.

[0037] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.

[0038] Figure 1The system 100 may be configured and operated in various ways to enable application of the various methods and apparatuses described in accordance with the present disclosure.

[0039] In the related art, semantic recognition is usually performed based on the search request input by the user, and then the search results are recalled based on the relevance between the database content and the search request, which fails to accurately identify the user's search intention.

[0040] Through research, the inventors discovered that after a user enters a search request and browses the search results, by analyzing the user's behavioral data regarding the search results, it is possible to determine whether the search results displayed to the user meet the user's search intent. For example, if a historical user clicks link B on the search results page after searching based on search request A and browses for a long time, this indicates that the content of link B meets the historical user's search request. Based on the content of link B, the corresponding search intent of search request A can be determined.

[0041] Based on this, the present disclosure provides a search method that performs intent recognition based on historical search data associated with the target search request after receiving a target search request, so that the historical search data can be used to more accurately determine the target search intent, and then determine target search results that are more in line with the user's intent, thereby improving search accuracy.

[0042] Figure 2 FIG. 2 shows a flow chart of a search method 200 according to an exemplary embodiment of the present disclosure. Figure 2 As shown, the method 200 includes:

[0043] Step S201: in response to receiving a target search request, determining a historical search request corresponding to the target search request, wherein a correlation between the historical search request and the target search request is not less than a preset threshold;

[0044] Step S202: Acquire historical search data corresponding to the historical search request, wherein the historical search data includes historical user interaction behavior information for historical search results of the historical search request;

[0045] Step S203: determining a target search intention based on the target search request and the historical search data; and

[0046] Step S204: Determine target search results based on the target search intent.

[0047] By applying the above-mentioned search method 200, it is possible to perform intent recognition based on historical search data associated with the target search request after receiving the target search request (i.e., the query information input by the user), and use the historical search data to more accurately determine the target search intent, thereby determining target search results that are more in line with the user's intent, thereby improving search accuracy.

[0048] In some examples, historical search data may be obtained based on the behavioral data of multiple historical users during historical searches, where the multiple historical users may include the user currently searching. In some examples, a historical search database may be constructed after the historical search behavior data of multiple historical users is collected and aggregated. In this case, the historical search database may include multiple historical search requests and the historical search data corresponding to each historical search request.

[0049] In some examples, step S201 may be to search the historical search database based on the currently received target search request to obtain historical search requests related to the target search request. In some examples, the relevance between the target search request and the historical search request may be determined based on various methods, such as determining the semantic feature vector corresponding to each search request and calculating the cosine similarity between the semantic feature vectors, or calculating the similarity based on the word vector corresponding to each search request. As long as the historical search request related to the target search request can be retrieved, the present disclosure does not limit the specific retrieval method.

[0050] According to some embodiments, the historical search data includes at least one of the following: first information on the historical user's click behavior or browsing behavior with respect to the historical search results; second information on the historical user's adjustment of the historical search request after browsing the historical search results; and third information on the historical user's click behavior or browsing behavior with respect to the adjusted search results of the historical search request. Thus, the user's search intent can be indicated based on the user's click or browsing behavior with respect to the historical search results corresponding to the historical search request, or the behavior of adjusting the historical search request, or the click or browsing behavior after adjusting the historical search request, to achieve more accurate intent recognition and thereby improve search accuracy.

[0051] As described above, by analyzing user behavior data regarding search results, it is possible to determine whether the search results displayed to the user satisfy the user's search intent. For example, if a user, after performing a search based on search request A, only clicks on a single link on the search results page and browses for an extended period of time, it can be determined that the search results page returned by the search engine for search request A satisfies the user's search intent. In some examples, the search results page also includes summary information. If the user completes the search after only browsing the search results page, it can be determined that the summary information satisfies the user's search intent.

[0052] In some examples, when a user adjusts a historical search request after browsing historical search results, the user's search intent can be determined based on the user's adjustment behavior information. For example, when a historical user adjusts the search request content to ABD after searching based on search request ABC and browsing the search results, it can be determined that ABD is more indicative of the user's search intent than ABC. Furthermore, similar to the principle described above of determining whether the initial search results can satisfy the user's search intent based on the user's click or browsing behavior information for the initial search results, it can also be determined whether the adjusted search results can satisfy the user's search intent based on the user's click or browsing behavior information for the adjusted search results.

[0053] In some examples, the historical search data of each historical search request may include one or more of the following: search volume, click-through rate of the search results page, dwell time on the search results page, click-through rate for each link in the search results page, the title of one or more links with the highest click-through rate in the search results page, the number of times the historical user adjusted the historical search request after browsing the search results page, information on the content adjusted by the historical user for the historical search request, the number of times the historical user adjusted the historical search request, information on the click or browsing behavior of the historical user for the adjusted search results (for example, it may include click-through rate, dwell time, the title of one or more links with the highest click-through rate, etc.), information on other historical search requests associated with the historical search request (for example, when the historical search request is a certain entity word, the other historical search requests associated with it may be historical search requests including the entity word). In some examples, the search results page may include multiple types of result cards, for example, an Aladdin search card including an intent tag. In this case, the historical search data may include the explicit intent tag corresponding to the Aladdin search card clicked or browsed by the user.

[0054] According to some embodiments, determining the target search intent based on the target search request and the historical search data in step S203 includes: generating first input data based on the target search request and the historical search data; inputting the first input data into an intent recognition model to obtain the target search intent output by the intent recognition model, wherein the intent recognition model is trained using first sample data including a sample search request and sample search data. Thus, the target search intent can be determined using the intent recognition model, and by using the trained intent recognition model to determine the target search intent corresponding to the target search data, the efficiency and accuracy of intent recognition can be improved.

[0055] In some examples, the intent recognition model can be trained in the following manner: first sample data including a sample search request and sample search data is input into the intent recognition model to obtain a predicted search intent, a predicted score is determined based on the predicted search intent, a loss value is calculated based on the predicted score, and the parameters of the intent recognition model are adjusted based on the loss value.

[0056] In some examples, the first sample data may further include a reference search intent. In this case, after obtaining the predicted search intent using the intent recognition model, the loss value can be calculated based on the reference search intent and the predicted search intent, and then the parameters of the intent recognition model can be adjusted based on the loss value.

[0057] In some examples, sample search requests and sample search data corresponding to the sample search requests can be determined based on historical search data of real users, and the sample search requests and sample search data can be input into a generative language model to determine a reference search intent, thereby constructing a first sample data including the sample search request, sample search data, and reference search intent. The natural language processing capabilities of the generative language model are used to more conveniently and efficiently construct training data for the intent recognition model, thereby improving the training efficiency of the intent recognition model.

[0058] According to some embodiments, the intent recognition model is obtained by fine-tuning a first generative language model using the first sample data. Fine-tuning the pre-trained first generative language model to obtain the intent recognition model effectively leverages the natural language processing capabilities of the pre-trained language model, improving the training efficiency and predictive performance of the intent recognition model.

[0059] According to some embodiments, the historical search data includes first information about the historical user's click behavior on the historical search results and second information about the historical user adjusting the historical search request after browsing the historical search results. Generating the first input data based on the target search request and the historical search data includes: determining target information from the first information and the second information based on the data volume of the first information and the second information; and generating the first input data based on the target search request and the target information. By selecting more important target information based on data volume, it is possible to filter the historical search data, reduce the data volume of the first input data while ensuring the importance of the data, save hardware resources, and improve search efficiency.

[0060] It is understandable that the larger the amount of historical search data corresponding to a historical search request, the higher the confidence level of the historical search data. In some examples, when the click behavior information corresponding to the historical search request is relatively rich (the amount of data is relatively large), the first information can be selected as the target information to accurately represent the historical user's search intent. In some examples, when the information corresponding to the adjusted historical search request is relatively rich, the second information can be selected as the target information to accurately represent the historical user's search intent, thereby achieving more accurate intent recognition.

[0061] According to some embodiments, determining the target search results based on the target search intent in step S204 includes: using a second generative language model to determine the target search results based on the target search intent. By using a large generative language model to obtain the target search results, the quality of search results can be improved, more accurately satisfying the user's search intent.

[0062] In some examples, content generation instructions may be determined based on the target search intent, so that the second generative model can generate content results that meet the target search intent based on the content generation instructions, thereby improving the generation efficiency of the target search results.

[0063] In some examples, similar to the training process of the intent recognition model described above, the second generative language model can also be fine-tuned based on the pre-trained language model. For example, the supervised fine-tuning (SFT) method can be applied to train the pre-trained large model. The sample corpus used to train the second generative language model may include sample input data and reference output data. During the training process, the sample input data may be input into the second generative language model to obtain predicted output data, and the loss value may be calculated based on the predicted output data and the sample output data, and then all parameters of the model may be fine-tuned based on the loss value.

[0064] In some examples, the first generative language model and the second generative language model can be the same. In some examples, the two can also be different. For example, a smaller-scale language model can be selected as the first generative language model, and a larger-scale language model can be selected as the second generative language model, so that the hardware resource usage of the language model can be adapted to its performance requirements, thereby improving the efficiency of intent recognition and result generation.

[0065] In some examples, method 200 can be applied to the field of intelligent agents, that is, during the interaction between a user and an intelligent agent, a target search request is determined based on the information sent by the user to the intelligent agent, and then by applying the above-mentioned method 200, the target search results are generated using the generative language model corresponding to the intelligent agent and returned to the user.

[0066] According to some embodiments, determining the target search result based on the target search intent using a second generative language model includes: performing a search based on the target search intent to obtain a first search result; inputting second input data including the target search intent and the first search result into the second generative language model; and determining the target search result based on output data from the second generative language model. Thus, by embedding the preliminary search results in the input data, richer and more comprehensive output data can be obtained, so that the target search result better meets the user's needs and improves the user experience.

[0067] In some examples, the above technical means can be implemented through retrieval-augmented generation (RAG), that is, obtaining relevant information from an external knowledge base and embedding it into the input data for inputting a generative language model to obtain more comprehensive output data. In this example, the external knowledge base can be pre-screened and constructed, for example, a document vector index can be constructed for the screened high-quality documents. After keyword extraction based on the target search intent, document vectors can be recalled in the knowledge base through ANN (Approximate Nearest Neighbor) retrieval, and then filtered based on the relevance of the recall results (preliminary search results) to the target search intent, and the second input data is determined using the filtered first search result.

[0068] According to some embodiments, the second input data is determined by embedding the target search intent and the first search result into an input data template to obtain the second input data, wherein the input data template includes task description information, and the task description information indicates that the second input data includes the target search intent and the first search result. By generating the second input data based on the formatted input data template, the content format of the generated results can be more accurately controlled, thereby improving the quality of the generated target search results.

[0069] According to some embodiments, the historical search results are obtained by inputting the historical search request into a search engine, and the method 200 further includes: determining a diagnostic result for the historical search results based on the target search intent and the historical search data, wherein the diagnostic result indicates whether the historical search results can meet the target search intent, wherein determining the target search results based on the target search intent in step S204 includes: in response to determining that the diagnostic result indicates that the historical search results cannot meet the target search intent, using the second generative language model to determine the target search results based on the target search intent; and in response to determining that the diagnostic result indicates that the historical search results cannot meet the target search intent, inputting the target search request into the search engine to obtain the target search results. Thus, it is possible to determine whether the current search capability of the search engine (i.e., the results currently output by the search engine) can meet the needs of the user based on the historical search data. When the diagnostic result indicates that the current search capability of the search engine cannot meet the search intent of the user, the generative language model's generation capability is applied to improve the quality of the search results, save hardware resources, and improve search efficiency.

[0070] In some examples, the diagnostic results can also be obtained using a generative language model. For example, after fine-tuning the first generative language model to obtain a language model with intent recognition capabilities, the target search request and historical search data are input into the fine-tuned first generative language model in step S203, so that the first generative language model can output the target search intent and simultaneously output a diagnostic result determined based on the target search intent. In this example, the sample data used to fine-tune the first generative language model can also include annotation information of the reference diagnostic results, so that the fine-tuned first generative language model can simultaneously perform the intent recognition task and the diagnostic task of diagnosing whether the search results can meet the target search intent, thereby improving search efficiency.

[0071] According to some embodiments, the target search intent includes multiple sub-intents. Determining the target search result based on the target search intent in step S204 includes: searching based on each of the multiple sub-intents to obtain multiple second search results; and determining the target search result based on the multiple second search results. By performing a multi-target search based on multiple sub-intents, more comprehensive search results can be obtained, which can best meet the user's search needs and improve the user experience.

[0072] Figure 3 Schematic diagram of the intention recognition process according to an exemplary embodiment of the present disclosure is shown. Figure 3 As described above, after receiving a target search request input by a user, the historical search data corresponding to the historical search requests related to the target search request can be retrieved and determined in the search behavior database 301 based on the target search request. In this example, the search behavior database 301 can be constructed based on the method described above by collecting and aggregating the historical search behavior data of multiple historical users. In this case, the search behavior database 301 can include multiple historical search requests and the historical search data corresponding to each historical search request.

[0073] After determining the historical search data corresponding to the target search request, the first input data can be generated based on the target search request and the historical search data and input into the intention recognition model 302 to obtain the target search intent output by the intention recognition model 302 and the diagnostic results indicating whether the search results can meet the target search intent, that is, the intention recognition model 302 is used to realize simple and fast intent recognition and search result diagnosis, thereby improving search efficiency.

[0074] Figure 4 A schematic structural diagram of search results according to an exemplary embodiment of the present disclosure is shown. Figure 5 Schematic diagram of a search process according to an exemplary embodiment of the present disclosure is shown. In this example, the target search result may be a search result page 400 obtained using a generative language model. Figure 4 As shown, in this example, the search result page 400 includes a summary content area 401 , a link function area 402 , a content directory area 403 , a main content area 404 , and a reference content area 405 .

[0075] In this example, the summary information contained in the summary content area 401 can be obtained based on the summary generation instruction using the generative language model 503. As described above, the target search intent corresponding to the target search request can be obtained by executing steps S201-S203 described above. For example, based on the target search request, historical search data corresponding to historical search requests related to the target search request can be retrieved and determined in the search behavior database 501, and then the target search request and the historical search data are input into the intent recognition model 502 to obtain the target search intent output by the intent recognition model 302. In this example, the target search intent includes N sub-intentions. In this case, M retrieval results can be determined based on multiple sub-intentions. It can be understood that each sub-intention can correspond to one or more retrieval results, for example, it can correspond to multiple different types of retrieval results (documents, videos, etc.), and M and N can be equal or different.

[0076] Continue to see Figure 4 and Figure 5 In the case of determining multiple sub-intentions and multiple search results, the link function area 402 can be used to display the index link of the key result, so that the user can directly click on the index link in the search results page to view the key result, and the reference content area 405 can be used to display the reference content, so that the user can view the reference basis of each content in the search results page 400. The display content of the intent directory area 403 can be determined based on multiple sub-intentions. By displaying the intent directory to the user, the content structure of the search results page can be organized more clearly. For example, multiple content generation instructions can be determined based on multiple sub-intentions, so that the generative language model 503 can be used to obtain multiple groups of content results corresponding to multiple sub-intentions based on the multiple content generation instructions. On this basis, the generative language model 503 can be used to integrate the generated content results based on the content integration instruction, and then multiple groups of content results and the corresponding integrated results of the multiple groups of content results can be displayed in the main content area 404.

[0077] In some examples, the multiple groups of content results corresponding to multiple sub-intents can be multimodal information, for example, they can include web pages, documents, videos, pictures, and other forms, and can also include various service links, product links and other consumer content to fully meet user needs and improve the conversion rate of online services or e-commerce products.

[0078] By applying the above-mentioned search process, after receiving a target search request (i.e., the query information input by the user), it is possible to perform intent recognition based on the historical search data associated with the target search request, and use the historical search data to more accurately determine the target search intent, thereby determining target search results that are more in line with the user's intent, thereby improving search accuracy.

[0079] According to one aspect of the present disclosure, a search device is also provided. Figure 6 FIG. 6 shows a structural block diagram of a search device 600 according to an exemplary embodiment of the present disclosure. Figure 6 As shown, the apparatus 600 includes:

[0080] A first determining unit 601 is configured to, in response to receiving a target search request, determine a historical search request corresponding to the target search request, wherein a correlation between the historical search request and the target search request is not less than a preset threshold;

[0081] An acquiring unit 602 is configured to acquire historical search data corresponding to the historical search request, wherein the historical search data includes interaction behavior information of historical users with respect to historical search results of the historical search request;

[0082] A second determining unit 603 is configured to determine a target search intention based on the target search request and the historical search data; and

[0083] The third determining unit 604 is configured to determine target search results based on the target search intention.

[0084] According to some embodiments, the historical search data includes at least one of the following: first information on the historical user's clicking behavior or browsing behavior with respect to the historical search results; second information on the historical user adjusting the historical search request after browsing the historical search results; and third information on the historical user's clicking behavior or browsing behavior with respect to the search results of the adjusted historical search request.

[0085] According to some embodiments, the second determination unit 603 includes: a generation subunit, configured to generate first input data based on the target search request and the historical search data; a first input subunit, configured to input the first input data into an intent recognition model to obtain the target search intent output by the intent recognition model, wherein the intent recognition model is trained using first sample data including sample search requests and sample search data.

[0086] According to some embodiments, the intent recognition model is obtained by fine-tuning and training a first generative language model using the first sample data.

[0087] According to some embodiments, the historical search data includes first information on the historical user's click behavior on the historical search results and second information on the historical user adjusting the historical search request after browsing the historical search results, and the generation subunit includes: a determination module, configured to determine target information from the first information and the second information based on the data volume of the first information and the second information; and a generation module, configured to generate the first input data based on the target search request and the target information.

[0088] According to some embodiments, the third determining unit 604 is configured to: determine the target search result based on the target search intent using a second generative language model.

[0089] According to some embodiments, the third determination unit 604 includes: a first search subunit, configured to search based on the target search intent to obtain a first search result; a second input subunit, configured to input second input data including the target search intent and the first search result into the second generative language model; and a first determination subunit, configured to determine the target search result based on the output data of the second generative language model.

[0090] According to some embodiments, the second input data is determined by embedding the target search intent and the first search result into an input data template to obtain the second input data, wherein the input data template includes task description information, and the task description information indicates that the second input data includes the target search intent and the first search result.

[0091] According to some embodiments, the historical search results are obtained by inputting the historical search request into a search engine, and the device 600 also includes: a fourth determination unit, configured to determine a diagnosis result for the historical search results based on the target search intent and the historical search data, wherein the diagnosis result indicates whether the historical search results can meet the target search intent, wherein the third determination unit 604 is configured to: in response to determining that the diagnosis result indicates that the historical search results cannot meet the target search intent, determine the target search results based on the target search intent using the second generative language model; and in response to determining that the diagnosis result indicates that the historical search results cannot meet the target search intent, input the target search request into the search engine to obtain the target search results.

[0092] According to some embodiments, the target search intent includes multiple sub-intentions, and the third determination unit 604 includes: a second search sub-unit, configured to search based on each sub-intention of the multiple sub-intentions to obtain multiple second search results; and a second determination sub-unit, configured to determine the target search result based on the multiple second search results.

[0093] It should be understood that Figure 6 The operations of the various units of the search apparatus 600 shown in FIG. 6 can be compared with Figure 2 The steps in the search method 200 described above correspond to each other. Therefore, the operations, features and advantages described above for the method 200 are also applicable to the apparatus 600 and the various units included therein. For the sake of brevity, some operations, features and advantages are not repeated here.

[0094] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0095] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above-mentioned search method.

[0096] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided, wherein the computer instructions are used to enable the computer to execute the above-mentioned search method.

[0097] According to another aspect of the present disclosure, a computer program product is further provided, comprising a computer program, wherein the computer program implements the above-mentioned search method when executed by a processor.

[0098] refer to Figure 7 , a block diagram of an electronic device 700 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, 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 assistants, 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.

[0099] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the device 700 can also be stored in the RAM 703. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0100] Multiple components within device 700 are connected to I / O interface 705, including an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. Input unit 706 can be any device capable of inputting information into device 700. Input unit 706 can receive input numeric or character information and generate key signal input related to user settings and / or function control of the electronic device. It can include, but is not limited to, a mouse, keyboard, touch screen, trackpad, trackball, joystick, microphone, and / or remote control. Output unit 707 can be any device capable of presenting information and can include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. Storage unit 708 can include, but is not limited to, a magnetic disk or an optical disk. Communication unit 709 allows device 700 to exchange information / data with other devices via computer networks such as the Internet and / or various telecommunication networks. It can include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver and / or chipset, such as a Bluetooth™ device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0101] The computing unit 701 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 701 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 that run machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the search method. For example, in some embodiments, the search method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the search method described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the search method by any other appropriate means (e.g., by means of firmware).

[0102] Various embodiments of the systems and techniques described above 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), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes 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.

[0103] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0104] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can 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 can 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.

[0105] 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).

[0106] The systems and techniques described herein can 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 can 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), the Internet, and a blockchain network.

[0107] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.

[0108] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.

[0109] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is only limited by the claims after authorization and their equivalents. Various elements in the embodiments or examples may be omitted or replaced by their equivalents. In addition, the steps may be performed in an order different from that described in this disclosure. Further, the various elements in the embodiments or examples may be combined in various ways. It is important that as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear after this disclosure.

Claims

1. A search method, comprising: In response to receiving a target search request, determining a historical search request corresponding to the target search request, wherein a correlation between the historical search request and the target search request is not less than a preset threshold; Acquire historical search data corresponding to the historical search request, wherein the historical search data includes first information of a historical user's click behavior on historical search results of the historical search request and second information of the historical user adjusting the historical search request after browsing the historical search results; Determining a target search intent based on the target search request and the historical search data includes: determining target information from the first information and the second information based on data amounts of the first information and the second information; generating first input data based on the target search request and the target information; and Inputting the first input data into an intent recognition model to obtain the target search intent output by the intent recognition model, wherein the intent recognition model is trained using first sample data including a sample search request and sample search data; and Based on the target search intent, target search results are determined.

2. The method according to claim 1, wherein The historical search data also includes: The third information is about the historical user's click behavior or browsing behavior on the adjusted search results of the historical search request.

3. The method according to claim 1, wherein The intent recognition model is obtained by fine-tuning and training the first generative language model using the first sample data.

4. The method according to any one of claims 1 to 3, wherein Determining target search results based on the target search intent includes: The target search result is determined based on the target search intent using a second generative language model.

5. The method according to claim 4, wherein: Determining the target search result based on the target search intent using the second generative language model includes: Searching based on the target search intent to obtain a first search result; inputting second input data including the target search intent and the first search result into the second generative language model; and The target search result is determined based on the output data of the second generative language model.

6. The method according to claim 5, wherein: The second input data is determined as follows: The target search intent and the first search result are embedded in an input data template to obtain the second input data, wherein the input data template includes task description information, and the task description information indicates that the second input data includes the target search intent and the first search result.

7. The method of claim 4, wherein: The historical search results are obtained by inputting the historical search request into a search engine, and the method further includes: Based on the target search intent and the historical search data, determining a diagnosis result for the historical search results, wherein the diagnosis result indicates whether the historical search results can satisfy the target search intent, Wherein, determining the target search result based on the target search intent includes: In response to determining that the diagnosis result indicates that the historical search results cannot satisfy the target search intent, determining the target search results based on the target search intent using the second generative language model; and In response to determining that the diagnosis result indicates that the historical search results cannot satisfy the target search intention, the target search request is input into the search engine to obtain the target search results.

8. The method according to any one of claims 1 to 3, wherein The target search intent includes multiple sub-intents, and determining the target search result based on the target search intent includes: Searching based on each of the plurality of sub-intents to obtain a plurality of second search results; and The target search result is determined based on the plurality of second search results.

9. A search device comprising: A first determining unit is configured to, in response to receiving a target search request, determine a historical search request corresponding to the target search request, wherein a correlation between the historical search request and the target search request is not less than a preset threshold; an acquiring unit configured to acquire historical search data corresponding to the historical search request, wherein the historical search data includes first information of a historical user's click behavior on historical search results of the historical search request and second information of the historical user adjusting the historical search request after browsing the historical search results; The second determining unit is configured to determine a target search intention based on the target search request and the historical search data, including: a determining module configured to determine target information from the first information and the second information based on data amounts of the first information and the second information; a generating module configured to generate first input data based on the target search request and the target information; and a first input subunit configured to input the first input data into an intent recognition model to obtain the target search intent output by the intent recognition model, wherein the intent recognition model is trained using first sample data including a sample search request and sample search data; and The third determining unit is configured to determine a target search result based on the target search intention.

10. The device according to claim 9, wherein The historical search data also includes: The third information is about the historical user's click behavior or browsing behavior on the adjusted search results of the historical search request.

11. The device according to claim 9, wherein The intent recognition model is obtained by fine-tuning and training the first generative language model using the first sample data.

12. The device according to any one of claims 9 to 11, wherein: The third determining unit is configured to: The target search result is determined based on the target search intent using a second generative language model.

13. The device of claim 12, wherein: The third determining unit includes: A first search subunit is configured to search based on the target search intent to obtain a first search result; a second input subunit, configured to input second input data including the target search intent and the first search result into the second generative language model; and The first determining subunit is configured to determine the target search result based on the output data of the second generative language model.

14. The apparatus of claim 13, wherein: The second input data is determined as follows: The target search intent and the first search result are embedded in an input data template to obtain the second input data, wherein the input data template includes task description information, and the task description information indicates that the second input data includes the target search intent and the first search result.

15. The apparatus of claim 12, wherein: The historical search results are obtained by inputting the historical search request into a search engine, and the apparatus further comprises: a fourth determining unit configured to determine a diagnosis result for the historical search results based on the target search intent and the historical search data, wherein the diagnosis result indicates whether the historical search results can satisfy the target search intent; The third determining unit is configured to: In response to determining that the diagnosis result indicates that the historical search results cannot satisfy the target search intent, determining the target search results based on the target search intent using the second generative language model; and In response to determining that the diagnosis result indicates that the historical search results cannot satisfy the target search intention, the target search request is input into the search engine to obtain the target search results.

16. The device according to any one of claims 9 to 11, wherein: The target search intent includes multiple sub-intents, and the third determining unit includes: a second search subunit, configured to search based on each of the plurality of sub-intents to obtain a plurality of second search results; and The second determining subunit is configured to determine the target search result based on the multiple second search results.

17. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute the method according to any one of claims 1-8.

19. A computer program product comprising a computer program, wherein The computer program implements the method according to any one of claims 1 to 8 when executed by a processor.

Citation Information

Patent Citations

  • Identification method and method of application search intention

    CN106599278A

  • Query intention determination method and device and processing equipment

    CN111488426A