Search method and apparatus, electronic device, and storage medium
Multimedia search results are generated through a generative model and the display target page is determined based on attribute characteristics, which solves the problem of low efficiency caused by too many search results and improves the search experience and efficiency.
Patent Information
- Application Number
- PCT/CN2024/081063
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-03-12
- Publication Date
- 2024-10-31
AI Technical Summary
In a search scenario, the search terms entered by the user may result in a large number of search results, causing the user to view multiple results to meet their needs, increasing search time and reducing search efficiency.
A generative model is used to generate multimedia information as search results, and the display target page is determined based on the attribute characteristics of the search results, so that the search results are displayed in different display target pages, improving the quality and flexibility of the search results, and meeting user needs.
The search results generated through generative models improve the quality and performance of search results, improve the efficiency and search experience of users in viewing search results, and reduce waiting time.
Smart Images

Figure CN2024081063_31102024_PF_FP_ABST
Abstract
Description
Search method, device, electronic device and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202310476960.4 filed on April 27, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] Embodiments of the present disclosure relate to a search method, device, electronic device, and storage medium. Background Art
[0003] Currently, in a search scenario, users can obtain corresponding search results by entering search terms. However, related technologies have numerous search results, and users often need to view multiple search results to meet their needs, or need to search again, which takes a long time and reduces search efficiency.
[0004] Summary of the Invention
[0005] The embodiments of the present disclosure at least provide a search method, device, electronic device, and storage medium.
[0006] In a first aspect, an embodiment of the present disclosure provides a search method, including:
[0007] Receive input search terms;
[0008] Obtaining a search result corresponding to the search term and a display target page for the search result, wherein the search result is multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute feature of the search result;
[0009] The search results are displayed on the display target page.
[0010] In a second aspect, an embodiment of the present disclosure further provides a search device, including:
[0011] A receiving module, used for receiving an input search term;
[0012] an acquisition module, configured to acquire search results corresponding to the search term and a display target page for the search results, wherein the search results are multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute feature of the search results;
[0013] The first display module is used to display the search results in the display target page.
[0014] In a third aspect, an optional implementation of the present disclosure further provides an electronic device, comprising a processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory. When the machine-readable instructions are executed by the processor, the processor executes the steps of the above-mentioned first aspect, or any possible implementation of the first aspect.
[0015] In a fourth aspect, an optional implementation of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned first aspect, or the steps in any possible implementation of the first aspect.
[0016] For a description of the effects of the above-mentioned search device, electronic device, and computer-readable storage medium, please refer to the description of the above-mentioned search method, which will not be repeated here.
[0017] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure.
[0018] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present disclosure and, together with the specification, are used to illustrate the technical solutions of the present disclosure. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other relevant drawings can be obtained based on these drawings without inventive effort.
[0020] FIG1 shows a flow chart of a search method provided by an embodiment of the present disclosure;
[0021] FIG2 shows a schematic diagram of an interface of a chat page associated with a generative model provided in an embodiment of the present disclosure;
[0022] FIG3 shows a schematic diagram of an interface showing a jump entry of a generative model provided by an embodiment of the present disclosure;
[0023] FIG4 shows a schematic diagram of an interface for displaying search results in a search prompt page provided by an embodiment of the present disclosure;
[0024] FIG5 shows a schematic diagram of an interface for displaying search results in a search results page according to an embodiment of the present disclosure;
[0025] FIG6 shows a schematic diagram of an interface for displaying search recommendation words in a search intermediate page according to an embodiment of the present disclosure;
[0026] FIG7 shows a schematic diagram of an interface for displaying search recommendation words in a search result page provided by an embodiment of the present disclosure;
[0027] FIG8 shows a schematic structural diagram of a search device provided by an embodiment of the present disclosure; and
[0028] FIG9 shows a schematic diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0029] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, rather than all of the embodiments. The components of the embodiments of the present disclosure generally described and shown here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present disclosure is not intended to limit the scope of the present disclosure for protection, but merely represents the selected embodiments of the present disclosure. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.
[0031] Research has found that in search scenarios, related technologies have numerous search results, and users often need to view multiple search results to meet their needs, or need to search again, which takes a long time and reduces search efficiency.
[0032] Based on the above research, the present disclosure provides a search method, which generates multimedia information that can answer the search terms based on a generative model as the search results corresponding to the search terms, and determines the display target page based on at least one attribute feature of the search results, and then the search results can be displayed on the display target page. In this way, search results are generated based on the generative model, the quality and performance of the search results are improved, and the search results can be displayed on different display target pages based on the attribute features of the search results, thereby improving the flexibility and diversity of the display of search results generated by the generative model, better meeting search requirements, thereby improving the efficiency of users viewing search results and improving the user search experience.
[0033] The defects in the above solutions are the results obtained by the inventors after practice and careful research. Therefore, the process of discovering the above problems and the solutions proposed by this disclosure for the above problems below should be the contributions made by the inventors to this disclosure during the disclosure process.
[0034] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings.
[0035] To facilitate understanding of this embodiment, a search method disclosed in an embodiment of the present disclosure is first introduced in detail. The execution subject of the search method provided in the embodiment of the present disclosure is generally an electronic device with certain computing capabilities, such as a terminal device or a server or other processing device. The terminal device can be a user equipment (UE), a mobile device, a cellular phone, a cordless phone, a personal digital assistant (PDA), a handheld device, a computing device, an in-vehicle device, a wearable device, etc. Among them, a personal digital assistant is a handheld electronic device with certain functions of an electronic computer. It can be used to manage personal information, browse the Internet, send and receive emails, etc. It is generally not equipped with a keyboard and can also be called a handheld computer. In some possible implementations, the search method can be implemented by a processor calling computer-readable instructions stored in a memory.
[0036] The search method provided in the embodiment of the present disclosure is described below by taking the execution subject as a terminal device as an example.
[0037] 1 is a flowchart of a search method according to an embodiment of the present disclosure, the method comprising:
[0038] S101: receiving an input search term.
[0039] In the embodiments of the present disclosure, users can enter search terms for the required searches or questions in any search scenarios or question-and-answer dialogue scenarios. Based on different application scenarios, users can enter search terms in corresponding different entrances, such as entering search terms in the search box, or entering search terms in the chat interface, etc., which are not limited in the embodiments of the present disclosure.
[0040] Furthermore, there is no restriction on the input method of the search term, such as manual input through an input method, or voice input.
[0041] S102: Obtain search results corresponding to the search term and a display target page for the search results, wherein the search results are multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute feature of the search results.
[0042] Among them, the generative model representation is the modeling of the joint probability distribution of features and labels. It can be applied to different scenarios based on training based on different training samples. In the embodiment of the present disclosure, the trained generative model is a conversational large-scale language model, which can generate more intelligent, more humanized and high-quality search results or answers by integrating different types of resources.
[0043] In the embodiment of the present disclosure, the display target page can also be determined based on at least one attribute feature of the search results. For example, the display target page can be a search prompt page or a search result page. Different display target pages can provide different display effects to enhance the search experience.
[0044] S103: Display the search results on the display target page.
[0045] In the embodiment of the present disclosure, the same or different display methods may be used on different display target pages to adapt to the display target page.
[0046] When executing step S103, the present disclosure provides a possible implementation method for displaying search results in a display target page, including: displaying the search results in the form of cards in the search result page of the search term, and displaying the search results line by line in the display cards, wherein the time interval for displaying the lines in the line by line display is related to the time when the generative model generates each line of information of the search results.
[0047] The search results page can be displayed in the form of display cards. Since the search results generated by the generative model are different from the retrieval ranking of traditional search engines, it usually takes a certain amount of time for the generative model to generate search results. It is unnecessary to wait for the search results to be fully generated before displaying them, avoiding a bad experience for users due to long waiting times. In the embodiment of the present disclosure, the search results can be displayed in real time after the generative model generates part of the content, and the search results are displayed line by line. The display time interval for each line is related to the time or speed at which the generative model generates each line. For example, preferably, the display time interval is greater than or equal to the time for the generative model to generate each line of information in the search results. In this way, the search efficiency can be improved and the waiting time can be reduced.
[0048] Furthermore, when displaying search results on the target page, in order to enhance the recognition of the generative model and to distinguish the generative model from traditional search engines, the embodiments of the present disclosure also provide possible embodiments for displaying that the source of the search results is the generative model; and / or, displaying a preset identifier representing the generative model.
[0049] In an embodiment of the present disclosure, in order to further improve search efficiency, search recommendation words can also be displayed. Specifically, the present disclosure provides a possible implementation method, in which a search recommendation word card is displayed in the search intermediate page or the search result page of the search word; wherein, the search recommendation word in the search recommendation word card is based on a generative model and is generated according to preset determination factors, and the preset determination factors include at least one of the following: historical search behavior, historical browsing behavior, quality evaluation of the search results corresponding to the search recommendation word, and feedback information of the target object.
[0050] For example, when a user plays a short video in a short video application and then has a search need and wants to search for something, he can trigger the search function in the short video application and enter the search intermediate page. At this time, the search recommended words can be displayed in the search intermediate page. For example, the search recommended words can be related to the content of the short video just played, etc., which can improve search efficiency.
[0051] For example, after a user enters a search term to search, the search results are displayed on the search results page, and the search recommendation terms are displayed on the search results page. It also supports entering feedback information for the search recommendation terms, such as irrelevant, erroneous, relevant, etc., so as to continuously update the search recommendation terms corresponding to the search term and improve accuracy.
[0052] Of course, in the embodiment of the present disclosure, there is no restriction on the determination factors of the search recommendation words, and when displaying the search recommendation word card, it is also possible to display that the source of the search recommendation word is a generative model and / or display a preset identifier representing the generative model.
[0053] There is no restriction on the display style of the search recommendation words. Not only can it be in the form of search recommendation word cards, but it can also be in other forms.
[0054] In an embodiment of the present disclosure, an input search term is received, and the search results corresponding to the search term and the display target page of the search results are obtained, wherein the search results are multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute feature of the search results, and then the search results are displayed on the display target page. In this way, the search results are generated based on the generative model, and the display target page is determined based on the attribute features of the search results. The display target page is more in line with the requirements of the search results display, which can improve the display effect of the search results, and thus users can more easily view the search results, thereby improving search efficiency and user experience.
[0055] Regarding the above step S102, after receiving the search term, the embodiment of the present disclosure determines the search results and the display target page corresponding to the search term, which can be specifically explained separately.
[0056] Part 1: Target page for display.
[0057] The disclosed embodiments provide a possible implementation method for determining a display target page. Specifically, the display target page of the search results is determined based on attribute characteristics corresponding to the search results, wherein the attribute characteristics include at least one of the following: the size and number of the required display areas, and the type of multimedia content included.
[0058] Based on the different conditions satisfied by the attribute characteristics, different display target pages can be determined:
[0059] 1) In a possible embodiment, the target page for displaying the search results is determined based on the attribute characteristics corresponding to the search results, including: when a first condition is met, determining that the target page for displaying the search results is a search prompt page for the search term, wherein the search prompt page represents a page containing a prompt box of a search box.
[0060] Among them, the first condition includes: the size of the display area required for the search results does not exceed the preset size or the display ratio of the required display area size does not exceed the set ratio, and the number of search results is 1, wherein 1 search result can answer the search term, and 1 search result includes no more than a set number of lines of information.
[0061] In the disclosed embodiment, for some search terms, such as copywriting, the generative model may only need to generate one search result, or one of the search results may be able to answer the search term. For example, the search term is "copywriting to describe moonlight", and the generative model can generate corresponding search results through semantic analysis of the search term. One search result can actually answer the search term, and since a prompt box needs to be expanded below the search box in the search prompt page, and multiple recommended terms are displayed in the prompt box, which requires a certain area, when displaying the search results on the search prompt page, the search results must also meet the required display area size or the display ratio should not be too large to avoid affecting the display of the recommended terms in the prompt box. In this way, after the user enters the search term, he can obtain the required search results on the search prompt page, which reduces the search operation steps and improves the search efficiency.
[0062] Furthermore, after the search results are displayed on the search prompt page, if the user needs more diverse search results, he or she can click on the search step again and then jump to the search results page, where more and more diverse search results can be displayed to meet the user's different search needs.
[0063] 2) In another possible embodiment, determining the display target page of the search results based on the attribute characteristics corresponding to the search results includes: when the second condition is met, determining the display target page of the search results to be the search result page of the search term.
[0064] Among them, the second condition includes at least one of the following: the size of the display area required for the search results exceeds the preset size or the display ratio of the required display area size exceeds the set ratio, the number of search results is greater than 1, wherein at least two search results are required to answer the search term, or the search results corresponding to the search term that can answer the search term include information exceeding the set number of lines.
[0065] In this embodiment, taking into account the characteristics of the search prompt page, for some search results with a large required display area size or display ratio, the display effect in the search prompt page is not very good. Therefore, they can be displayed on the search results page. For example, some search terms with vague intentions will generate multiple search results. After the user enters the search term and clicks search, they can jump to the search results page and display the search results on the search results page.
[0066] Part 2: Display search results.
[0067] Regarding the determination of search results, possible implementation methods are provided in the embodiments of the present disclosure, specifically:
[0068] 1) Determine the search intent of the search term.
[0069] For example, the search term is input into the generative model, the search term intent is identified, and the search intent of the search term is determined.
[0070] 2) According to the search intent, determine the working state of the generative model when generating search results, where the working state is offline or online.
[0071] Specifically, if it is determined that the search intent represents an intention to rely on factual requirements and / or timeliness requirements when answering the search terms, then the working state of the generative model when generating search results is determined to be an online state; if it is determined that the search intent represents an intention not to rely on factual requirements and / or timeliness requirements when answering the search terms, then the working state of the generative model when generating search results is determined to be an offline state.
[0072] For example, if the search term is "write a 300-word elementary school composition", the search intent of the search term is determined to be content creation type, which does not need to rely on facts and timeliness. Instead, it can be fictional and written as long as it is relevant to the topic. At this time, the generative model does not need to be connected to the Internet and can generate corresponding search results offline, thereby improving efficiency.
[0073] 3) Generate search results corresponding to the search terms based on the generative model in the working state.
[0074] Specifically, in one possible implementation, when the working state is offline, semantic analysis is performed on the search terms based on a generative model to generate search results.
[0075] Among them, the generative model can be trained in advance, and after the search terms are input into the trained generative model, the generative model can generate corresponding search results.
[0076] In another possible implementation, when the working status is online, a set number of initial search results before relevance sorting that match the search term are obtained; based on a generative model, the set number of initial search results before sorting are used as input parameters, and semantic analysis is performed on the set number of initial search results before sorting to obtain search results corresponding to the search term.
[0077] In the embodiment of the present disclosure, for search terms that rely on factual requirements and timeliness requirements, for example, the search term is "weather in the last 15 days", the generative model needs to connect to the Internet to request and call the search engine. The search engine searches to obtain matching initial search results, and then inputs the initial search results into the generative model. The generative model then performs semantic analysis based on these initial search results to generate the final search results.
[0078] In addition, in an embodiment of the present disclosure, a jump entry for a generative model can also be provided to enter the chat page of the generative model. Specifically, the present disclosure provides a possible implementation method: 1) displaying a jump entry for the generative model and receiving a click operation on the jump entry; or, receiving a click operation on the search results or search recommendation words; 2) jumping to display the chat page associated with the generative model; 3) receiving the chat content entered on the chat page; 4) returning reply information for the chat content, wherein the reply information is generated by the generative model.
[0079] Among them, for the jump entry of the generative model, this disclosure provides several possible implementation methods:
[0080] In one possible implementation, a pull-down operation on a search intermediate page is received, and a jump entry for a generative model is displayed.
[0081] For example, refer to FIG2 , which is a schematic diagram of the interface of the chat page associated with the generative model in the embodiment of the present disclosure. As shown in FIG2 (1), the user can pull down to search the middle page. In response to the pull-down operation, the second-floor area of the search middle page, i.e., the gray area in FIG2 (1), is displayed. The jump entrance of the generative model is displayed in the second-floor area. The user clicks the jump entrance to jump to the chat page associated with the generative model, as shown in FIG2 (2). After entering the chat page, the greeting message generated by the generative model can be displayed, and the name and avatar corresponding to the generative model can also be set. For example, the name corresponding to the generative model in FIG2 is smart assistant, and the avatar is circular. Then, the user can input the chat content as needed, and the generative model can return the reply information in real time according to the chat content, thereby achieving the effect of chatting with the generative model. The generative model can chat with the user in a more intelligent and anthropomorphic way.
[0082] In another possible implementation, the search results and search recommendation words in the embodiment of the present disclosure are generated based on the generative model, and a jump entrance can be displayed in the search results and search recommendation words generated by the generative model. For example, an operation control representing the jump entrance is displayed in the search results or search recommendation words, such as the operation control is "Chat", "Ask a question", etc. After the user clicks the operation control, he can jump to the chat page associated with the generative model.
[0083] In another possible implementation, in the embodiment of the present disclosure, it is also possible to jump to the chat page associated with the generative model by clicking on the search results or search recommendation words. For example, after jumping to the chat page, the entire content of the search results or search recommendation words can be displayed on the chat page, and then other chat content can be entered in the chat page to obtain more information.
[0084] In another possible implementation, a preset floating button is displayed, where the preset floating button represents a jump entry to the generative model.
[0085] In the disclosed embodiment, a floating button representing a jump entry of a generative model may also be displayed. For example, a user may click on the floating button to jump to a chat page associated with the generative model. There is no restriction on the shape of the floating button, such as a circle, a square, or other designed logos, and there is no restriction on the display page of the floating button and the display position in the display page. For example, the floating button may be displayed on the input page of the search term, the intermediate search page, the display target page of the search results, etc. For another example, when the display page is displayed, it may be fixed at a certain position on the display page, or the display position may be dynamically adjusted according to the content of the display page to avoid affecting the display of other content on the display page.
[0086] For example, refer to Figure 3, which is a schematic diagram of the interface for displaying the jump entrance of the generative model in the embodiment of the present disclosure. As shown in Figure 3 (1), a floating button for displaying the jump entrance of the generative model is displayed at a certain display position in the search middle page, such as in the lower right corner. For another example, as shown in Figure 3 (2), after the keyboard is called up in the search middle page, the display position of the floating button can be dynamically adjusted. For another example, as shown in Figure 3 (3), after clicking the search, the floating button can also be displayed in the search results page. In this way, the floating button can be displayed in all search scenarios, and there is no restriction in the embodiment of the present disclosure. Then, the user clicks the floating button to jump to the chat page of the generative model.
[0087] In the embodiment of the present disclosure, other methods or location entries may be used to display the jump entry of the generative model, and there is no limitation to this.
[0088] In this way, in the embodiment of the present disclosure, a jump entrance to the generative model can be displayed at different location entrances of the search scene, and a chat page associated with the generative model can be jumped to display for chatting, thereby improving the diversity and cognition of the generative model entrance and enhancing the user experience.
[0089] Those skilled in the art will understand that in the above-mentioned method of the specific implementation method, the writing order of each step does not mean a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of each step should be determined by its function and possible internal logic.
[0090] The search method in the embodiment of the present disclosure is described below using a specific application scenario, taking the display target page as a search result page or a search prompt page as an example.
[0091] Refer to Figure 4, which is a schematic diagram of the interface for displaying search results in the search prompt page in an embodiment of the present disclosure. As shown in Figure 4, a search term is entered in the search box, such as the search term is "Valentine's Day copywriting". The server then receives the search term and performs semantic analysis on the search term based on the generative model to generate corresponding search results. If it is determined that the search result meets the first condition, for example, there is one search result and the required display area size or the display ratio of the required display area size is small, such as only a few lines in the search results are needed, then the display target page can be determined to be the search prompt page, and then the search results are displayed in the search prompt page. As shown in Figure 4, the search result is first displayed below the search box, for example, the search result is "Valentine's Day copywriting: Roses and sunsets go to romance..." In addition, a prompt box is displayed below the search result, and multiple prompt words for the search term are displayed in the prompt box.
[0092] In this way, in the embodiment of the present disclosure, after the user enters the search term, the required search results can be displayed in the search prompt page, reducing the search operation steps and processes and improving efficiency.
[0093] Furthermore, in an embodiment of the present disclosure, when displaying search results, it is also possible to display that the source of the search results is a generative model and / or a preset identifier representing the generative model. As shown in FIG4 , a possible example is that a “generative model answer” is displayed in the search result. In this way, the user can know that the search result is generated by the model, thereby enhancing the awareness of the generative model and the user experience.
[0094] Refer to Figure 5, which is a schematic diagram of the interface for displaying search results in the search results page in an embodiment of the present disclosure. For example, the search term is "how to cook glutinous rice balls". After the user enters the search term, if the search term is semantically analyzed based on the generative model to generate corresponding search results, and if it is determined that the search result meets the second condition, that is, for example, the size of the display area required for the search result exceeds the preset size or the display ratio of the required display area size exceeds the set ratio, or for example, the number of search results is greater than 1, then it can be determined that the display target page is the search results page. At this time, the search results are not displayed in the search prompt page, and then the user clicks search and jumps to the search results page of the search term. As shown in Figure 5, the search results are displayed in the search results page and are displayed in the form of display cards, displayed line by line. In addition, the user can also view the entire content of the search results by sliding. For example, the user can also view the entire content of the search results by clicking.
[0095] In addition, as shown in Figure 5, the search results also display "Source.Generative model generation" to facilitate users to know the source of the search results. The search results also provide a jump entrance to the generative model. For example, "Chat" shown in Figure 5 is the jump entrance to the generative model. When the user clicks "Chat", the user can jump to the chat page associated with the generative model, and then the user can chat with the generative model on the chat page.
[0096] In addition, the embodiment of the present disclosure also supports the display of search recommendation words. Refer to Figure 6, which is a schematic diagram of the interface for displaying search recommendation words in the search middle page in the embodiment of the present disclosure. As shown in Figure 6, when the user triggers to open the search middle page, the search word has not yet been entered in the search box. A search recommendation word card can be displayed in the search middle page, and the search recommendation word is displayed in the search recommendation word card. As shown in Figure 6, the search recommendation word displayed below the search you guessed you wanted to search for is "How to make mulled wine", and it can also support users to switch search recommendation words. For example, click "Change" to switch to other search recommendation words.
[0097] Furthermore, as shown in FIG6 , a preset identifier indicating that the source is a generative model and / or represents a generative model may also be displayed in the search recommendation word card.
[0098] Refer to Figure 7, which is a schematic diagram of the interface for displaying search recommendation words in the search results page in an embodiment of the present disclosure. For example, when a user clicks on the search recommendation word "how to make mulled wine", he can jump to the search results page, where the corresponding search results are displayed, and the search recommendation words can also be displayed. As shown in Figure 7, below the first search result, it is displayed that everyone is searching for: mulled wine seasoning packet, etc., and a preset identifier that is a generative model and / or represents a generative model can also be displayed.
[0099] Among them, the search recommendation word can be determined based on historical search behavior, historical browsing behavior, quality evaluation of the search results corresponding to the search recommendation word, feedback information, etc., and can also be related to the content of the displayed search results, which can improve the accuracy of the search recommendation word and better meet user search needs.
[0100] In the disclosed embodiment, search results can be displayed on different display target pages based on the attribute characteristics of the search results, thereby improving the display effect of the search results, facilitating user viewing, and improving search efficiency. Search recommendation words can also be displayed to meet the different search needs of users and enhance the user search experience and search efficiency.
[0101] It should be noted that the interface schematic diagram in the embodiment of the present disclosure is only a possible example and should not limit the search method in the embodiment of the present disclosure.
[0102] Based on the same inventive concept, a search device corresponding to the search method is also provided in the embodiment of the present disclosure. Since the principle of solving the problem by the search device in the embodiment of the present disclosure is similar to the above-mentioned search method in the embodiment of the present disclosure, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0103] 8 is a schematic diagram of a search device according to an embodiment of the present disclosure, the device comprising:
[0104] Receiving module 81, for receiving an input search term;
[0105] an acquisition module 82 configured to acquire search results corresponding to the search term and a display target page for the search results, wherein the search results are multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute characteristic of the search results;
[0106] The first display module 83 is configured to display the search results on the display target page.
[0107] In an optional embodiment, a first determining module 84 is further included, and the display target page is determined by the first determining module 84 through the following steps:
[0108] The target page for displaying the search results is determined according to the attribute characteristics corresponding to the search results, wherein the attribute characteristics include at least one of the following: the size and number of required display areas, and the type of multimedia content included.
[0109] In an optional embodiment, when determining the display target page of the search results based on the attribute characteristics corresponding to the search results, the first determination module 84 is configured to:
[0110] When the first condition is met, determining that the display target page of the search results is a search prompt page of the search term, wherein the search prompt page represents a page containing a prompt box of the search box;
[0111] Among them, the first condition includes: the size of the display area required for the search result does not exceed a preset size or the display ratio of the required display area size does not exceed a set ratio, and the number of search results is 1, wherein 1 search result can answer the search term, and 1 search result includes information of no more than a set number of lines.
[0112] In an optional embodiment, when determining the display target page of the search results based on the attribute characteristics corresponding to the search results, the first determination module 84 is configured to:
[0113] If the second condition is met, determining that the display target page of the search results is the search result page of the search term;
[0114] Among them, the second condition includes at least one of the following: the size of the display area required for the search results exceeds the preset size or the display ratio of the required display area size exceeds the set ratio, the number of search results is greater than 1, wherein at least two search results are required to answer the search term, or the search results corresponding to the search term that can answer the search term include information exceeding the set number of rows.
[0115] In an optional embodiment, when the search results are displayed in the display target page, the first display module 83 is used to: display the search results in the form of a display card in the search result page of the search term, and display the search results line by line in the display card, wherein the row display time interval in the line-by-line display mode is related to the time when the generative model generates each row of information of the search results.
[0116] In an optional embodiment, a second determining module 85 is further included, and the search result is determined by the second determining module 85 in the following manner:
[0117] determining the search intent of the search term;
[0118] Determining, according to the search intent, a working state of the generative model when generating the search results, wherein the working state is an offline state or an online state;
[0119] The search result corresponding to the search term is generated based on the generative model in the working state.
[0120] In an optional embodiment, when generating the search result corresponding to the search term based on the generative model in the working state, the second determining module 85 is configured to:
[0121] When the working state is online, obtaining a set number of initial search results matching the search term before relevance sorting;
[0122] Based on the generative model, the set number of initial search results before sorting are used as input parameters, and semantic analysis is performed on the set number of initial search results before sorting to obtain the search results corresponding to the search terms.
[0123] In an optional embodiment, a second display module 86 is further included, which is used to: display a search recommendation word card on the search intermediate page or the search result page of the search word;
[0124] Among them, the search recommendation words in the search recommendation word card are generated based on the generative model and according to preset determination factors, and the preset determination factors include at least one of the following: historical search behavior, historical browsing behavior, quality evaluation of the search results corresponding to the search recommendation words, and feedback information of the target object.
[0125] In an optional embodiment, a third display module 87 is further included, which is used to: receive a pull-down operation on the search intermediate page and display a jump entry for the generative model.
[0126] In an optional embodiment, the first display module 83 is further used to:
[0127] Displaying that the search results are sourced from the generative model; and / or,
[0128] A preset identifier representing the generative model is displayed.
[0129] In an optional embodiment, a chat processing module 88 is further included, which is used to:
[0130] Displaying a jump entry for the generative model and receiving a click operation on the jump entry; or receiving a click operation on the search result or the search recommendation word;
[0131] Jump to the chat page associated with the generative model;
[0132] Receiving chat content input on the chat page;
[0133] Returning reply information for the chat content, wherein the reply information is generated by the generative model.
[0134] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference can be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0135] The present disclosure also provides an electronic device, as shown in FIG9 , which is a schematic diagram of the structure of the electronic device provided by the present disclosure, including:
[0136] Processor 91 and memory 92; the memory 92 stores machine-readable instructions executable by the processor 91, and the processor 91 is configured to execute the machine-readable instructions stored in the memory 92. When the machine-readable instructions are executed by the processor 91, the processor 91 performs the following steps:
[0137] Receive input search terms;
[0138] Obtaining a search result corresponding to the search term and a display target page for the search result, wherein the search result is multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute feature of the search result;
[0139] The search results are displayed on the display target page.
[0140] In an optional embodiment, the display target page is determined by the processor 91 through the following steps:
[0141] The target page for displaying the search results is determined according to the attribute characteristics corresponding to the search results, wherein the attribute characteristics include at least one of the following: the size and number of required display areas, and the type of multimedia content included.
[0142] In an optional embodiment, when determining the target page for displaying the search results based on the attribute characteristics corresponding to the search results, the processor 91 is configured to: if a first condition is satisfied, determine that the target page for displaying the search results is a search prompt page for the search term, wherein the search prompt page represents a page containing a prompt box of the search box;
[0143] Among them, the first condition includes: the size of the display area required for the search result does not exceed a preset size or the display ratio of the required display area size does not exceed a set ratio, and the number of search results is 1, wherein 1 search result can answer the search term, and 1 search result includes information of no more than a set number of lines.
[0144] In an optional embodiment, when determining the target page for displaying the search results based on the attribute characteristics corresponding to the search results, the processor 91 is configured to: if the second condition is met, determine that the target page for displaying the search results is the search result page for the search term;
[0145] Among them, the second condition includes at least one of the following: the size of the display area required for the search results exceeds the preset size or the display ratio of the required display area size exceeds the set ratio, the number of search results is greater than 1, wherein at least two search results are required to answer the search term, or the search results corresponding to the search term that can answer the search term include information exceeding the set number of rows.
[0146] In an optional embodiment, when the search results are displayed in the display target page, the processor 91 is used to: display the search results in the form of cards in the search result page of the search term, and display the search results line by line in the display cards, wherein the row display time interval in the line-by-line display mode is related to the time when the generative model generates each row of information of the search results.
[0147] In an optional embodiment, the search result is determined by the processor 91 in the following manner:
[0148] determining the search intent of the search term;
[0149] Determining, according to the search intent, a working state of the generative model when generating the search results, wherein the working state is an offline state or an online state;
[0150] The search result corresponding to the search term is generated based on the generative model in the working state.
[0151] In an optional embodiment, when generating the search result corresponding to the search term based on the generative model in the working state, the processor 91 is configured to:
[0152] When the working state is online, obtaining a set number of initial search results matching the search term before relevance sorting;
[0153] Based on the generative model, the set number of initial search results before sorting are used as input parameters, and semantic analysis is performed on the set number of initial search results before sorting to obtain the search results corresponding to the search terms.
[0154] In an optional embodiment, the processor 91 is further configured to: display a search recommendation word card on a search intermediate page or a search result page of the search word;
[0155] Among them, the search recommendation words in the search recommendation word card are generated based on the generative model and according to preset determination factors, and the preset determination factors include at least one of the following: historical search behavior, historical browsing behavior, quality evaluation of the search results corresponding to the search recommendation words, and feedback information of the target object.
[0156] In an optional embodiment, the processor 91 is further configured to: receive a pull-down operation on the search intermediate page, and display a jump entry for the generative model.
[0157] In an optional embodiment, the processor 91 is further configured to: display that the source of the search result is the generative model; and / or display a preset identifier representing the generative model.
[0158] In an optional embodiment, the processor 91 is further configured to:
[0159] Displaying a jump entry for the generative model and receiving a click operation on the jump entry; or receiving a click operation on the search result or the search recommendation word;
[0160] Jump to the chat page associated with the generative model;
[0161] Receiving chat content input on the chat page;
[0162] Returning reply information for the chat content, wherein the reply information is generated by the generative model.
[0163] The above-mentioned memory 92 includes internal memory 921 and external memory 922; the memory 921 here is also called internal memory, which is used to temporarily store the calculation data in the processor 91 and the data exchanged with the external memory 922 such as the hard disk. The processor 91 exchanges data with the external memory 922 through the internal memory 921.
[0164] The specific execution process of the above instructions can refer to the steps of the search method described in the embodiment of the present disclosure, which will not be repeated here.
[0165] The present disclosure also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, executes the steps of the search method described in the above method embodiment. The storage medium may be a volatile or non-volatile computer-readable storage medium.
[0166] The embodiments of the present disclosure also provide a computer program product, which carries program code. The instructions included in the program code can be used to execute the steps of the search method described in the above method embodiment. For details, please refer to the above method embodiment and will not be repeated here.
[0167] The computer program product may be implemented in hardware, software, or a combination thereof. In one embodiment, the computer program product is implemented as a computer storage medium. In another embodiment, the computer program product is implemented as a software product, such as a software development kit (SDK).
[0168] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0169] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of the solution of this embodiment according to actual needs.
[0170] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0171] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present disclosure, or the part that makes the contribution or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0172] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The scope of protection of the present disclosure is not limited thereto. Although the present disclosure has been described in detail with reference to the above-described embodiments, those skilled in the art should understand that any person skilled in the art can modify or easily conceive of changes to the technical solutions described in the above-described embodiments within the technical scope disclosed in the present disclosure, or replace some of the technical features therein with equivalents. Such modifications, changes, or replacements do not deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the scope of protection of the present disclosure. Therefore, the scope of protection of the present disclosure shall be subject to the scope of protection of the claims.
Claims
1. A search method, comprising: receiving an input search term; Obtaining a search result corresponding to the search term and a display target page of the search result, wherein the search result is multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined according to at least one attribute feature of the search result; The search results are displayed on the display target page.
2. The method according to claim 1, wherein: The display target page is determined by the following steps: The display target page of the search result is determined according to the attribute characteristics corresponding to the search result, wherein the attribute characteristics include at least one of the following: the size and number of the required display area, and the type of multimedia content included.
3. The method according to claim 2, wherein: The step of determining a display target page for the search results according to the attribute features corresponding to the search results includes: When the first condition is met, determining that the display target page of the search results is a search prompt page of the search term, wherein the search prompt page represents a page of a prompt box including the search box; Among them, the first condition includes: the size of the display area required for the search result does not exceed a preset size or the display ratio of the required display area size does not exceed a set ratio, and the number of search results is 1, wherein 1 search result can answer the search term, and 1 search result includes information of no more than a set number of lines.
4. The method according to claim 2, wherein: The step of determining a display target page for the search results according to the attribute features corresponding to the search results includes: When the second condition is met, determining that the display target page of the search results is the search result page of the search term; Among them, the second condition includes at least one of the following: the size of the display area required for the search results exceeds a preset size or the display ratio of the required display area size exceeds a set ratio, the number of search results is greater than 1, wherein at least two search results are required to answer the search term, or the search results corresponding to the search term that can answer the search term include information exceeding a set number of rows.
5. The method according to claim 4, wherein: The displaying of the search results in the display target page includes: In the search result page of the search term, the search results are displayed in the form of display cards, and in the display cards, the search results are displayed line by line, wherein the row display time interval in the line by line display is related to the time when the generative model generates each row of information of the search results.
6. The method according to any one of claims 1 to 5, wherein: The search results are determined in the following manner: determining the search intent of the search term; Determine, according to the search intent, a working state of the generative model when generating the search results, wherein the working state is an offline state or an online state; The search result corresponding to the search term is generated in the working state based on the generative model.
7. The method according to claim 6, wherein: Generating the search result corresponding to the search term based on the generative model in the working state includes: When the working state is online, obtaining a set number of initial search results before relevance ranking that match the search term; Based on the generative model, the set number of initial search results before sorting are taken as input parameters, and semantic analysis is performed on the set number of initial search results before sorting to obtain the search results corresponding to the search term.
8. The method according to any one of claims 1 to 7, further comprising: Displaying a search recommendation word card in the search intermediate page or the search result page of the search word; Among them, the search recommendation words in the search recommendation word card are generated based on the generative model and according to preset determination factors, and the preset determination factors include at least one of the following: historical search behavior, historical browsing behavior, quality evaluation of the search results corresponding to the search recommendation words, and feedback information of the target object.
9. The method according to claim 8, further comprising: A pull-down operation for the search intermediate page is received, and a jump entry for the generative model is displayed.
10. The method according to any one of claims 1 to 9, further comprising: Displaying that the source of the search results is the generative model; and / or, A preset identifier representing the generative model is displayed.
11. The method according to any one of claims 1 to 10, further comprising: A preset floating button is displayed, where the preset floating button represents a jump entry for the generative model.
12. The method according to any one of claims 1 to 11, further comprising: Displaying a jump entry for the generative model and receiving a click operation for the jump entry; Alternatively, receiving a click operation on the search result or the search recommendation word; Jump to display the chat page associated with the generative model; Receiving chat content input on the chat page; Return reply information for the chat content, wherein the reply information is generated by the generative model.
13. A search device, comprising: A receiving module configured to receive an input search term; an acquisition module configured to acquire search results corresponding to the search term and a display target page of the search results, wherein the search results are multimedia information that answers the search term and is generated based on a generative model, and the display target page is determined based on at least one attribute feature of the search results; The first display module is configured to display the search results in the display target page.
14. An electronic device comprising: A processor and a memory, wherein the memory stores machine-readable instructions executable by the processor, and the processor is used to execute the machine-readable instructions stored in the memory, and when the machine-readable instructions are executed by the processor, the processor performs the steps of the method as described in any one of claims 1 to 12.
15. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Voice interaction method and system, terminal and computer readable storage medium
CN111368538A
Search result display method and device, equipment and medium
CN113486252A
Dialogue generation method and device, model training method and device, equipment and medium
CN114840671A
Search result display method and device, computer equipment and storage medium
CN116010727A
Searching method and device, electronic equipment and storage medium
CN116501948A
Cited By
Searching method and device, program product and storage medium
CN119961420A
