Method and apparatus for presenting query results, and device and storage medium

By obtaining the query intent and selecting the result presentation template, a componentized query result page is generated, which solves the problems of complex result page design and insufficient visual hierarchy in the existing technology, and achieves a unified layout and clear query result presentation.

WO2026020400A1PCT designated stage Publication Date: 2026-01-29BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/107401
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2024-07-24
Publication Date
2026-01-29

AI Technical Summary

Technical Problem

Existing technologies require separate presentation methods for different types of result pages when displaying query results, which leads to complex communication among developers and requires users to go through each result one by one, resulting in a lack of unified layout and visual hierarchy.

Method used

By obtaining the query intent, selecting the matching result presentation template, and generating the query result page based on the template, a component-based design is adopted to provide a unified layout and result presentation framework, highlighting the recommended results.

Benefits of technology

It has created a clearer, more harmonious, and visually hierarchical search results page, improving design efficiency and user experience, and simplifying the development process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024107401_29012026_PF_FP_ABST
    Figure CN2024107401_29012026_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the embodiments of the present disclosure are a method and apparatus for processing a query request, and a device and a storage medium. The method comprises: in response to receiving a query request, acquiring a query intent associated with the query request; determining, from among a plurality of result presentation templates, a result presentation template matching the query intent; and on the basis of the result presentation template, presenting a query result page for the query request, wherein the query result page comprises a first result region corresponding to the result presentation template, and the first result region is used for providing a recommended first query result in a set of query results for the query request. Thus, for query requests from users, the users can be provided with clearer, more harmonious and visually hierarchical query result pages.
Need to check novelty before this filing date? Find Prior Art

Description

Method, device, equipment and storage medium for presenting query result TECHNICAL FIELD

[0001] The exemplary implementation of the present disclosure relates generally to the field of computers, and in particular to a method, device, equipment and computer readable storage medium for presenting query result. BACKGROUND

[0002] With the rapid development of the Internet, more and more applications are designed to provide various services to users. For example, an application can provide a query service to a user. The application can obtain a query request (e.g., a query text input by a user, i.e., a "question") from the user, and provide a query result corresponding to the question based on the query request. Therefore, it is expected that the page presenting the query result has a visual hierarchy.

[0003] SUMMARY

[0004] In a first aspect of the present disclosure, a method for presenting query result is provided. The method comprises: in response to receiving a query request, obtaining a query intent associated with the query request; determining, from a plurality of result presentation templates, a result presentation template matching the query intent; and presenting, based on the result presentation template, a query result page for the query request, the query result page comprising a first result area corresponding to the result presentation template, the first result area being used to provide a recommended first query result in a group of query results for the query request.

[0005] In a second aspect of the present disclosure, an apparatus for presenting query result is provided. The apparatus comprises: an intent obtaining module configured to, in response to receiving a query request, obtain a query intent associated with the query request; a template determining module configured to determine, from a plurality of result presentation templates, a result presentation template matching the query intent; and a page presenting module configured to present, based on the result presentation template, a query result page for the query request, the query result page comprising a first result area corresponding to the result presentation template, the first result area being used to provide a recommended first query result in a group of query results for the query request.

[0006] In a third aspect of the present disclosure, an electronic device is provided. The electronic device comprises: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to the first aspect of the present disclosure.

[0007] In a fourth aspect of the present disclosure, a computer readable storage medium having a computer program stored thereon is provided, the computer program, when executed by a processor, causing the processor to implement the method according to the first aspect of the present disclosure.

[0008] According to a fifth aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect of the present disclosure.

[0009] It is to be understood that the particulars shown herein are by way of example and for purposes of illustrative discussion of the various embodiments of the present disclosure only and are not intended to limit the scope of the present disclosure. Other aspects of the present disclosure will become apparent from the following description, which is BRIEF DESCRIPTION OF DRAWINGS

[0010] The above and other features, aspects and advantages of various implementations of the present disclosure will become more apparent from the following detailed description, taken in conjunction with the accompanying drawings, in which like reference numbers represent like elements throughout. In the drawings:

[0011] FIG. 1 shows a schematic diagram of an example environment in which embodiments of the present disclosure can be implemented;

[0012] FIG. 2 shows a schematic diagram of a process for presenting query results, according to some embodiments of the present disclosure;

[0013] FIGS. 3A to 3C show schematic diagrams of example interfaces for presenting query results, according to some embodiments of the present disclosure;

[0014] FIGS. 4A to 4E show schematic diagrams of example interfaces of different components, according to some embodiments of the present disclosure;

[0015] FIG. 5 shows a schematic diagram of an example interface of a question-answer type result presentation template, according to some embodiments of the present disclosure;

[0016] FIG. 6 shows a schematic diagram of an example interface of a content aggregation type result presentation template, according to some embodiments of the present disclosure;

[0017] FIG. 7A shows a schematic diagram of an example interface of an entity aggregation type result presentation template, according to some embodiments of the present disclosure;

[0018] FIG. 7B shows schematic diagrams of example interfaces of result presentation templates for different types of entities, respectively, according to some embodiments of the present disclosure;

[0019] FIG. 8 shows a schematic structural block diagram of an apparatus for presenting query results, according to some embodiments of the present disclosure; and

[0020] FIG. 9 shows a block diagram of an electronic device in which one or more embodiments of the present disclosure can be implemented. DETAILED DESCRIPTION

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the drawings, it is understood that the present disclosure can be implemented in various forms and should not be interpreted as being limited to the embodiments set forth herein, but rather, these embodiments are provided so as to more completely and thoroughly understand the present disclosure. It is understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0022] In the description of embodiments of the present disclosure, the term "comprising" and its conjugations should be understood to encompass the meaning of "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions can also be included below.

[0023] In this document, unless explicitly stated, performing a step "in response to A" does not mean performing the step immediately after A, but can include one or more intermediate steps.

[0024] It can be understood that the data involved in the technical solutions of the present disclosure (including but not limited to the data itself, the obtaining or use of the data) should comply with the requirements of relevant laws and regulations and relevant provisions.

[0025] It can be understood that before using the technical solutions disclosed in the embodiments of the present disclosure, the type of personal information involved in the present disclosure, the scope of use, the scenario of use, etc. should be informed to the user and the authorization of the user should be obtained through appropriate means according to relevant laws and regulations.

[0026] For example, in response to receiving the active request of the user, a prompt information is sent to the user to explicitly prompt the user that the operation requested to be performed will require obtaining and using the personal information of the user, so that the user can voluntarily choose whether to provide the personal information to the software or hardware such as electronic device, application program, server or storage medium, etc. performing the operation of the technical solutions of the present disclosure according to the prompt information.

[0027] As an optional but non-limiting implementation manner, in response to receiving the active request of the user, the manner of sending the prompt information to the user can be, for example, the manner of pop-up window, and the prompt information can be presented in the form of text in the pop-up window. In addition, the pop-up window can also carry selection controls for the user to select "agree" or "disagree" to provide personal information to the electronic device.

[0028] It can be understood that the above notification and user authorization process is only illustrative and does not limit the implementation manner of the present disclosure, and other manners meeting the relevant laws and regulations can also be applied to the implementation manner of the present disclosure.

[0029] Example Environment

[0030] FIG. 1 illustrates a schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented. In the example environment 100, a terminal device 110 has an application 120 installed therein. A user 140 can interact with the application 120 via the terminal device 110 and / or an attached device of the terminal device 110.

[0031] In some embodiments, the application 120 can be any suitable application that can provide a query service. In the environment 100 of FIG. 1, the terminal device 110 can present a page 150 of the application 120 if the application 120 is in an active state. The page 150 can include various types of pages that the application 120 can provide, such as a query page, a search page, a search result presentation page, and so on.

[0032] In some embodiments, the terminal device 110 communicates with a server 130 to implement the provision of the service of the application 120. The terminal device 110 can be any type of mobile terminal, fixed terminal, or portable terminal including a mobile handset, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a game device, or any combination thereof, including accessories and peripherals of these devices, or any combination thereof. In some embodiments, the terminal device 110 can also support any type of interface to the user (such as "wearable" circuitry, etc.). The server 130 can be various types of computing systems / servers that can provide computing capabilities, including but not limited to mainframes, edge computing nodes, computing devices in a cloud environment, and so on.

[0033] It should be understood that the structure and functionality of the various elements in the environment 100 are described for illustrative purposes only and do not imply any limitation on the scope of the present disclosure.

[0034] Example Process

[0035] Conventionally, the presentation of a query result page can be designed following design specifications, such as readability principles, accuracy principles, system operation reasonability principles, and so on. However, by this approach, the respective presentation for different types of result pages needs to be separately involved, which requires a lot of communication between the developers of the query system and the designers of the page effects and leads to a complicated workflow. Further, the multiple query results are presented in sequence, which leads to the user to go through each query result one by one to find the desired result.

[0036] According to an embodiment of the present disclosure, a method for presenting query results is proposed. The method comprises obtaining a query intent associated with a query request if the query request is received. From a plurality of result presentation templates, a result presentation template matching the query intent is determined. Then, a query results page for the query request is presented according to the result presentation template. The query results page comprises a first result area corresponding to the result presentation template, the first result area being used for providing recommended first query results in a set of query results for the query request. Thereby, for a query request of a user, a query results page with more clear, harmonious, and visual hierarchy can be provided to the user. Further, the presentation template can provide a unified layout and result presentation framework, thereby the query results corresponding to different query intents can be presented in a unified manner.

[0037] Some example embodiments of the present disclosure are described below with continued reference to the drawings. Some example embodiments of the present disclosure are described below with reference to the drawings. It should be appreciated that the pages shown in the drawings are merely examples, and various page designs can actually exist. Various graphical elements in the pages can have different arrangements and different visual representations, one or more elements of which can be omitted or replaced, and one or more other elements can also exist. The embodiments of the present disclosure are not limited in this respect. In addition, in the following, the example embodiments will be mainly described with respect to the terminal device 110. It should be appreciated that the actions described with respect to the terminal device 110 can be performed by an application on the terminal device 110, or can be performed by the application in cooperation with its server (e.g., a server).

[0038] A flowchart of a process of the present disclosure for presenting query results will be described below with reference to FIG. 2. FIG. 2 shows a schematic diagram of a process 200 for presenting query results according to some embodiments of the present disclosure. The process 200 can be implemented at the terminal device 110. The process 200 will be described below with reference to FIG. 1.

[0039] At block 210, the terminal device 110 obtains a query intent associated with a query request in response to receiving the query request. In some embodiments, the terminal device 110 can receive the query request from a user (e.g., the user 140). The terminal device 110 can receive the query request from the user in any suitable manner, which is not limited in the present disclosure. For example, the terminal device 110 can provide an input box and receive the query request from the user via the input box. The query request can be of any suitable type, including but not limited to text, voice, video, image, etc.

[0040] The terminal device 110 obtains a query intent associated with the query request if the query request is received. In some examples, the query request can be a request of a proper category, such as a query request of a question-answering category, a query request of a content search category, a query request of an entity search category, and the like. The query intent can be determined by a pre-trained machine learning model, alternatively and / or additionally, the query intent can be determined based on semantic analysis on the query request. FIGS. 3A-3C show schematic diagrams of example interfaces 301-303 for presenting query results, according to some embodiments of the present disclosure.

[0041] As shown in the example interface 301 of FIG. 3A, the terminal device 110 obtains a query intent associated with the query request 312 if the query request 312 of the question-answering category is received based on the input box 311 (e.g., how to fold a thousand paper cranes). As shown in the example interface 302 of FIG. 3B, the terminal device 110 obtains a query intent associated with the query request 322 if the query request 322 of the content search category is received based on the input box 311 (e.g., A City must-do travel, or news hotspots). As shown in the example interface 303 of FIG. 3C, the terminal device 110 obtains a query intent associated with the query request 332 if the query request 332 of the entity search category is received based on the input box 311 (e.g., song A, singer XX, place L, M movie, G game, and the like).

[0042] At block 220, the terminal device 110 determines a result presentation template matching the query intent from a plurality of result presentation templates. In some embodiments, the result presentation template includes, but is not limited to, a question-answering category result presentation template, a content aggregation category result presentation template, and an entity aggregation category result presentation template. For example, the result presentation template corresponding to the query request of the question-answering category is the question-answering category result presentation template. The result presentation template corresponding to the query request of the content search category is the content aggregation category result presentation template. The result presentation template corresponding to the query request of the entity search category is the entity aggregation category result presentation template.

[0043] In some embodiments, the result presentation template includes a set of components, and the set of components is selected according to the query intent. It can be understood that the terminal device 110 selects a set of components to generate the result presentation template according to the query intent obtained thereby. The determination of the result presentation template by the terminal device 110 will be described below with reference to FIGS. 4A-4E and FIGS. 5-7B. FIGS. 4A-4E show schematic diagrams of example interfaces 400A-400E of different components, according to some embodiments of the present disclosure. FIGS. 5-7B show schematic diagrams of example interfaces 500-700B of different result presentation templates, according to some embodiments of the present disclosure.

[0044] In some embodiments, the set of components includes a title component for specifying a title of the result presentation template. The set of components also includes a content component for specifying content of the result presentation template. The content of the result presentation template includes at least one of: text, image, audio, and video. As shown in the example interface 400A of FIG. 4A, the title component 411 (also sometimes referred to as a "tag component") for specifying the title of the result presentation template can include a visual style 412 and / or description information 413. In some embodiments, the visual style 412 and / or the description information 413 can be adjusted, and FIG. 4A is merely an example, without limitation to the present disclosure.

[0045] As shown in the example interface 400B of FIG. 4B, the content component 421 (also sometimes referred to as a "text component") for specifying the text of the result presentation template can be presented in a "single text description" style 422. The content component 421 can also be presented in a "text description + title" style 423. Alternatively, the content component 421 can also be presented in a "text item description + title" style 424.

[0046] As shown in the example interface 400C of FIG. 4C, the content component 431 (also sometimes referred to as a "video component") for specifying the video of the result presentation template can be presented in a "single video" style 432. The content component 431 can also be presented in a "multiple videos" style 433. In some examples, if the content component 431 is presented in the "multiple videos" style 433, the user can swipe left and / or right and / or up and / or down to view the videos in the multiple videos.

[0047] In some embodiments, the set of components can also include a user component for specifying information of a user in the result presentation template. The user is a user in an application for performing the method for presenting the query result. It can be appreciated that the information of the user in the result presentation template refers to information corresponding to the user included in the query request. For example, if the user A initiates a query request of an entity search category (e.g., a singer XX), the user component for indicating the information of the singer XX is included in the result presentation template.

[0048] As shown in the example interface 400D of FIG. 4D, the user component 441 (also sometimes referred to as a "header component") is presented in a style 442. In some examples, the style 442 can include account information of the user and videos associated with the user. The user component 441 can also be presented in a style 443. In some examples, the style 443 can include account information of the user, visual style of the user, and / or the like.

[0049] In some embodiments, the set of components can further include a classification component for specifying a classification label in the result presentation template. As shown in the example interface 400E of FIG. 4E, the classification component 451 can include a category A 452, a category B 453, a category C 454, and so on. In some embodiments, the classification label can be determined by a user, a publisher, or the system.

[0050] Therefore, by means of the modularization of components, the design team can improve the versatility and design efficiency of the modules. Further, the development time can be shortened, and the consistency of various interface elements can be ensured. In the following, the generation of result presentation templates based on different components will be described with reference to FIGS. 5 to 7B.

[0051] In some embodiments, the terminal device 110 selects, from the plurality of result presentation templates, a result presentation template that matches the query intent and includes a set of components, according to the query intent obtained by the terminal device 110. It can be understood that by integrating design elements such as text, video, and picture into components for use by different answer results, the search result module can be built and reused in a modular manner. Thus, the stability and predictability of the visual effect of the search result module can also be improved.

[0052] As shown in the example interface 500 of FIG. 5, for a query request of the question and answer category, the terminal device 110 can determine a single-video result presentation template 510 according to the query intent. The single-video result presentation template 510 includes a title component 411 and a content component 412. In some examples, the content component 412 further includes a text component 511 and a video component 512. The terminal device 110 can present the title component 411 in a highlighted title style, for example, by highlighting “Search Highlights”. By enhancing the saliency of the symbol, the authority and selection of the answer can be highlighted, thereby strengthening the cognition that the recommended query result (for example, displayed in the “home card” generated by using the template) is a high-quality answer.

[0053] For a query request of the question and answer category, the terminal device 110 can also determine a single-video portrait result presentation template 520 according to the query intent. The single-video portrait result presentation template 520 includes a title component 411 and a content component 412. In some examples, the content component 412 further includes a text component 521 and a video component 522, and the result presentation template 520 is presented in a portrait form.

[0054] For a query request of the question-answer category, the terminal device 110 can further determine, according to the query intention, a result presentation template 530 of a single text. The result presentation template 530 of the single text includes the title component 411, the content component 412 (e.g., a single text). For a query request of the question-answer category, the terminal device 110 can further determine, according to the query intention, a result presentation template 540 of a single text item. The result presentation template 540 of the single text item includes the title component 411, the content component 412 (e.g., a single text item).

[0055] As shown in the example interface 600 of FIG. 6, for a query request of the content search category, the terminal device 110 can determine, according to the query intention, a result presentation template 610 of aggregated videos. The result presentation template 610 of the aggregated videos includes the title component 411, the content component 412. The content component 412 can include a text component 611 and a multi-video component 612. For a query request of the content search category, the terminal device 110 can further determine, according to the query intention, a result presentation template 620 of aggregated videos without text. The result presentation template 620 of the aggregated videos without text includes the title component 411, the content component 412. The content component 412 can include a multi-video component 622.

[0056] For a query request of the content search category, the terminal device 110 can determine, according to the query intention, a result presentation template 630 of aggregated opinions including statistical data. The result presentation template 630 of the aggregated opinions includes the title component 411, the content component 412, the classification component 413. The content component 412 can include a text component. The classification component 413 can include a type A, a type B, a type C, and the like, where the type A, the type B, the type C, and the like are types and respectively include statistical data of corresponding search results (e.g., 123 query results related to the type A are found). For a query request of the content search category, the terminal device 110 can further determine, according to the query intention, a result presentation template 640 of aggregated videos without statistical data. The result presentation template 640 of the aggregated videos without statistical data includes the title component 411, the content component 412, the classification component 413. The content component 412 can include a text component. The classification component 413 can include a type A, a type B, a type C, and the like.

[0057] As shown in the example interface 700A of FIG. 7A, for a query request of the entity search category, the terminal device 110 can determine, according to the query intention, a result presentation template 710 with platform accounts. The result presentation template 710 with platform accounts includes the title component 411 (also referred to as a topic header at times), the content component 412, the classification component 413, and the user component 414. The content component 412 can include a video A, a video B, and the like.

[0058] For a query request of an entity search category, the terminal device 110 can determine a result presentation template 720 without a platform account according to the query intent. The result presentation template 720 without a platform account includes a title component 411, a content component 412, and a category component 413. The content component 412 can include a video A, a video B, and the like.

[0059] In some embodiments, the layout of the title component 411 (also sometimes referred to as a theme header) can also be adjusted. As shown in the example interface 700B of FIG. 7B, if the query request is about A user, the theme header 730 can include the basic information 731 of A user and the visual style 732 of A user. If the query request is about A place, the theme header 740 can include a picture 741 of A place and a corresponding control 742 for viewing the detailed introduction of A place. If the query request is about A music, the theme header 750 can include the basic information 751 of A music and the visual style 752 of A music. If the query request is about A movie / game, the theme header 760 can include a picture 761 of A movie / game and a corresponding control 762 for viewing the detailed resources of A place.

[0060] The present disclosure can abstract search results into several general layouts according to categories. For example, a question and answer result presentation template layout for finding resources and finding answers, a content search category corresponding to a content aggregation category template layout, and an entity search category corresponding to an entity aggregation category template layout. In this way, the user can provide a more clear, harmonious, and visually hierarchical query result page.

[0061] In some embodiments, the target component in the set of components includes a plurality of configuration parameters. In some embodiments, the plurality of configuration parameters includes at least one of a size parameter for setting a size of the target component, a position parameter for setting a position of the target component, and a content parameter for setting content of the target component. In some embodiments, the plurality of configuration parameters is an interface between the search engine and the query result page for transmitting parameters.

[0062] In some examples, any one component in the set of components can include a size parameter for setting a size, a position parameter for setting a position, and a content parameter for setting content. The size, position, and content of any component in the set of components in the result presentation template are determined via the size parameter, the position parameter, and the content parameter, respectively.

[0063] In some embodiments, the terminal device 110 can also set at least one of the size parameter and the position parameter according to a predetermined layout rule. Then, the terminal device 110 sets the content parameter according to the first query result. In some examples, the size parameter and the position parameter can use default parameters, and the content parameter needs to be set in real time according to the query result.

[0064] In some embodiments, the terminal device 110 extracts data matching the target component from the first query result for the target component in the set of components in the result presentation template. Then, the terminal device 110 sets the content parameter of the target component according to the data. In some examples, the terminal device 110 extracts data matching the target component in real time for the target component in the result presentation template. Then, the terminal device 110 sets the content parameter of the target component according to the extracted data.

[0065] In some embodiments, the target component in the set of components has the same visual attribute in multiple instances in the multiple result presentation templates. The visual attribute of the component is the same in multiple instances in the multiple result presentation templates. In this way, appearance consistency is achieved.

[0066] Continuing with the process 200, at block 230, the terminal device 110 presents a query result page for the query request based on the result presentation template. In some embodiments, the query result page includes a first result area (sometimes also referred to as a "top card") corresponding to the result presentation template. Accordingly, the first result area is used to provide a recommended first query result in a set of query results for the query request.

[0067] In some embodiments, the terminal device 110 can obtain query results corresponding to the query request by using a search engine. Subsequently, the terminal device 110 embeds the query results into the result presentation template determined by the terminal device 110, and presents a query result page for the query request. In some embodiments, the terminal device 110 can determine multiple query results for the query request. Therefore, the terminal device 110 can provide a result area for a recommended query result in the multiple query results in the query result page.

[0068] In some embodiments, a first matching degree between the first query result and the query request is higher than at least one second matching degree between at least one second query result in the set of query results and the query request. The terminal device 110 selects a query result with a high matching degree with the query request from the multiple query results, and presents the query result in the first result area in the query result page. In this way, the most relevant query result can be presented in a more prominent position.

[0069] In some embodiments, the query result page can further include a second result area for presenting at least one second query result in the set of query results. The position of the at least one second query result in the second result area is determined according to the matching degree between the first query result and the query request. It can be understood that the query result with the highest matching degree to the query request is presented in the first result area of the query result page. The query result with the second highest matching degree to the query request is presented in the second result area of the query result page.

[0070] As shown in the example interface 301 of FIG. 3A, if the terminal device 110 receives a query request 312 of the question-answering category based on the input box 311 (e.g., how to fold a thousand paper cranes), the terminal device 110 determines a result presentation template matching the query intent associated with the query request 312. Then, the terminal device 110 embeds the query results corresponding to the query request 312 into the result presentation template to form a query result page. The query result page includes a result area 314 for providing the recommended query result 313 in the plurality of query results.

[0071] In some examples, the terminal device 110 can also display the corresponding query result 313 in a highlighted title style. For example, the “Search Highlights” corresponds to the recommended query result 313, i.e., the query result 313 with the highest matching degree to the query request 312. Then, the terminal device 110 presents the query result with the second highest matching degree to the query request 312 in the result area 315 of the query result page.

[0072] It can be understood that the terminal device 110 can determine a set of components included in the result presentation template according to the query intent it obtains. As shown in the example interface 301 of FIG. 3A, the terminal device 110 determines a question-answering result presentation template including a title component 411 and / or a content component 412 according to the query intent of the query request 312 of the question-answering category, where the content component 412 can include text 511 and video 512. Accordingly, the terminal device 110 determines the query results corresponding to the query request 312 based on the search engine. Then, the terminal device 110 embeds the contents in the query results into the question-answering result presentation template including the title component 411 and / or the content component 412, respectively, to present a query result page including the title component 411 (e.g., “Search Highlights”) and / or the content component 412 (e.g., text description and / or video A).

[0073] As shown in the example interface 302 of FIG. 3B, if the terminal device 110 receives a query request 322 of a content search category (e.g., A City Must-Do, or News Hotspot) based on the input box 311, the terminal device 110 determines a result presentation template that matches the query intent associated with the query request 322. Then, the terminal device 110 embeds the query results corresponding to the query request 322 into the result presentation template to form a query result page. The query result page includes a result area 324 for providing recommended query results 323 among the plurality of query results, i.e., the query results 323 that have the highest matching degree with the query request 322 are presented in the result area 324. Subsequently, the terminal device 110 presents the query results that have the second highest matching degree with the query request 322 in a result area 325 of the query result page.

[0074] It can be understood that the terminal device 110 can determine a set of components included in the result presentation template according to the query intent it obtains. Referring back to the example interface 302 of FIG. 3B, the terminal device 110 determines a content search category result presentation template that includes a title component 411, a classification component 414, and / or a content component 412 according to the query intent of the query request 322 of the content search category. The classification component 414 includes a plurality of classifications corresponding to the query request 322, such as Sight A, Sight B, etc. The content component 412 can include Video A, Video B, etc.

[0075] Accordingly, the terminal device 110 determines the query results corresponding to the query request 322 based on a search engine. Then, the terminal device 110 embeds the contents in the query results into the content search category result presentation template including the title component 411, the classification component 414, and / or the content component 412, respectively, to present a query result page including “Search Highlights”, “Sight A, Sight B, etc.” and / or “Video A, Video B, etc.”

[0076] In some embodiments, the terminal device 120 presents at least one query result in a set of query results that matches a classification indicated by a classification component if it receives an interaction request associated with the classification component. As shown in the example interface 302 of FIG. 3B, the terminal device 120 presents at least one query result that matches “Sight A” if it receives an interaction request for “Sight A” in the recommended query results 323 presented by the classification component.

[0077] As shown in the example interface 303 of FIG. 3C, if the terminal device 110 receives a query request 332 of an entity search category (e.g., song A, singer XX, place L, M movie, G game, etc.) based on the input box 311, the terminal device 110 determines a result presentation template matching the query intent associated with the query request 332. Then, the terminal device 110 embeds the query results corresponding to the query request 332 into the result presentation template to form a query result page. The query result page includes a result area 334 for providing recommended query results 333 among the plurality of query results, i.e., the query results 333 having the highest matching degree with the query request 332 are presented in the result area 334. Subsequently, the terminal device 110 presents the query results having the second highest matching degree with the query request 332 in a result area 335 of the query result page.

[0078] It can be understood that the terminal device 110 can determine a set of components included in the result presentation template according to the query intent obtained thereby. Referring back to the example interface 303 of FIG. 3C, the terminal device 110 determines an entity search category result presentation template including a title component 411, a user component 413, and / or a content component 412 according to the query intent of the query request 332 of the entity search category. The user component 413 corresponds to the user A information included in the query request 332, such as the account of the user A, the visual information of the user A, etc. The content component 412 can include video A, video B, etc.

[0079] Accordingly, the terminal device 110 determines the query results corresponding to the query request 332 based on the search engine. Then, the terminal device 110 embeds the contents in the query results into the entity search category result presentation template including the title component 411, the user component 413, and / or the content component 412, respectively, to present a query result page including "singer XX is here", "account of singer XX, visual information of singer XX, etc." and / or "video A, video B, etc."

[0080] In some embodiments, the first display area of the result presentation template is determined based on the display area of the terminal device for presenting the query results, and the position parameters and the size parameters of the set of components are determined based on the first display area. For example, if the display mode of the terminal device 110 is landscape, the display area of the result presentation template is displayed in landscape. If the display mode of the terminal device 110 is portrait, the display area of the result presentation template is displayed in portrait.

[0081] It should be appreciated that although the above describes the specific process of presenting query results with search requests as an example of query requests. Alternatively and / or additionally, the query request can further include the capability to invoke a machine learning model to generate a prompt word for a certain object. For example, an image can be specified to be generated by the machine learning model, at which time the recommended image that best matches the prompt word can be highlighted in the "home card", and so on.

[0082] By enhancing the saliency of the symbols, highlighting the authoritative selection of the answer, the content in the home card can be reinforced to be the recommended high-quality answer. In this way, the developer can directly invoke the predefined individual components to build the presentation template, and then display the corresponding query results. Further, the card carrying the result with the highest matching degree is clearly distinguished from the natural results by color or card form, so as to better focus the user's attention on the high-quality answer result. In summary, a clearer, harmonious, and visually hierarchical query result page can be provided for the user.

[0083] Example apparatus and device

[0084] Embodiments of the present disclosure also provide a corresponding apparatus for implementing the above-mentioned method or process. FIG. 8 shows a schematic structural block diagram of an apparatus 800 for presenting query results according to some embodiments of the present disclosure. The apparatus 800 can be implemented as or included in the terminal device 110. The various modules / components in the apparatus 800 can be implemented by hardware, software, firmware, or any combination thereof.

[0085] As shown in FIG. 8, the apparatus 800 includes an intent acquisition module 810 configured to acquire a query intent associated with a query request in response to receiving the query request. The apparatus 800 further includes a template determination module 820 configured to determine, from a plurality of result presentation templates, a result presentation template that matches the query intent. The apparatus 800 further includes a page presentation module 830 configured to present a query result page for the query request based on the result presentation template, the query result page including a first result area corresponding to the result presentation template, the first result area being used to provide a recommended first query result in a set of query results for the query request.

[0086] In some embodiments, the result presentation template includes a set of components, and the set of components is selected according to the query intent, the set of components including: a title component used to specify a title of the result presentation template; a content component used to specify content of the result presentation template, the content including at least any of the following: text, image, audio, and video.

[0087] In some embodiments, the set of components further comprises at least any of: a user component for specifying information of a user in the result presentation template, the user being a user in an application used to perform the method; a category component for specifying a category label in the result presentation template.

[0088] In some embodiments, the target component in the set of components comprises a plurality of configuration parameters, the plurality of configuration parameters comprising at least any of: a size parameter for setting a size of the target component; a position parameter for setting a position of the target component; and a content parameter for setting a content of the target component.

[0089] In some embodiments, the template determining module 820 further comprises a parameter configuring module configured to set at least any of the size parameter and the position parameter based on the predetermined layout rule; and set the content parameter based on the first query result.

[0090] In some embodiments, the parameter configuring module is configured to, for a target component in the set of components in the result presentation template, extract data matching the target component from the first query result; and set the content parameter of the target component based on the data.

[0091] In some embodiments, the target component in the set of components has the same visual property in the plurality of instances in the plurality of result presentation templates, respectively.

[0092] In some embodiments, in response to receiving an interaction request associated with the category component, at least one query result in the set of query results matching a category indicated by the category component is presented.

[0093] In some embodiments, the first matching degree between the first query result and the query request is higher than at least one second matching degree between at least one second query result in the set of query results and the query request.

[0094] In some embodiments, the query result page further comprises a second result area for presenting at least one second query result in the set of query results, a position of the at least one second query result in the second result area being determined according to the matching degree between the first query result and the query request.

[0095] In some embodiments, the first display area of the result presentation template is determined based on a display area of a terminal device used to present the query result, and the position parameter and the size parameter of the set of components are determined based on the first display area.

[0096] The units and / or modules included in the apparatus 800 can be implemented utilizing various means including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, e.g., machine executable instructions stored on a storage medium. In addition to or alternatively, some or all of the units and / or modules in the apparatus 800 can be implemented at least partially by one or more hardware logic components. Example, and not limitation, of hardware logic components that can be used include field programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SOCs), complex programmable logic devices (CPLDs), etc.

[0097] It is to be understood that one or more steps in the above methods can be performed by a suitable electronic device or combination of electronic devices. Such electronic device or combination of electronic devices may, for example, include the terminal device 110 in FIG. 1.

[0098] FIG. 9 illustrates a block diagram of an electronic device 900 in which one or more embodiments of the disclosure can be implemented. It should be understood that the electronic device 900 illustrated in FIG. 9 is merely exemplary and should not be construed as limiting the functionality and scope of the embodiments described herein. The electronic device 900 illustrated in FIG. 9 can be used to implement the terminal device 110 of FIG. 1.

[0099] As shown in FIG. 9, the electronic device 900 is in the form of a general electronic device. Components of the electronic device 900 can include, but are not limited to, one or more processors or processing units 910, a memory 920, a storage device 930, one or more communication units 940, one or more input devices 950, and one or more output devices 960. The processing unit 910 can be a real or virtual processor and is capable of performing various processing according to programs stored in the memory 920. In a multi-processor system, multiple processing units perform computer-executable instructions in parallel to improve the parallel processing capability of the electronic device 900.

[0100] The electronic device 900 typically includes a plurality of computer storage media. Such media can be any available media that is located either internally or externally to the electronic device 900, including, but not limited to, memory, removable storage, and non-removable storage. The memory 920 can be volatile (such as register, cache, RAM), non-volatile (such as ROM, EEPROM, flash memory), or some combination of the two. The storage device 930 can be removable or non-removable, and can include, but is not limited to, magnetic disks, optical disks, or tape. It will be appreciated that the memory 920 and / or the storage device 930 can be used to store data and / or instructions for the electronic device 900.

[0101] The electronic device 900 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in FIG. 9, a disk drive for reading from or writing to a removable, non-removable, and / or nonvolatile media (e.g., a floppy disk, a ZIP® disk, a magnetic tape, etc.) can be provided. In such instances, each drive can be connected to the bus by one or more data media interfaces. The memory 920 can include a computer program product 925 having one or more program modules configured to carry out the various methods or actions of the various embodiments of the present disclosure.

[0102] The communication unit 940 enables communications with other electronic devices over a communication medium. Additionally, the functionality of the components of the electronic device 900 can be implemented in a single computing cluster or a plurality of computer machines that are capable of communicating with one another over a communication connection. As such, the electronic device 900 can operate in a networked environment using logical connections to one or more other servers, network personal computers (PCs), or another network nodes.

[0103] The input device 950 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 960 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 900 can also communicate with one or more external devices (not shown) such as a storage device, a display device, etc. through the communication unit 940, with one or more devices that enable a user to interact with the electronic device 900, or with any devices (e.g., a network card, a modem, etc.) that enable the electronic device 900 to communicate with one or more other electronic devices. Such communication can be enabled by an input / output (I / O) interface (not shown).

[0104] According to an example embodiment of the present disclosure, there is provided a computer-readable storage medium having stored thereon computer-executable instructions, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an example embodiment of the present disclosure, there is also provided a computer program product tangibly stored on a non-transitory computer-readable medium and comprising computer-executable instructions, wherein the computer-executable instructions are executed by a processor to implement the method described above.

[0105] Various aspects of the disclosure are now described with reference to the drawings. In general, the drawings described below are diagrammatic and schematic representations of actual or conceptual structures and processes, and are not limiting of the scope of the present disclosure. In the drawings, the same reference numerals are used to represent similar or like items.

[0106] These computer readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks. These computer readable program instructions can also be stored in a computer readable storage medium that can include a non-transitory computer readable medium, memory, or memory on a processor, which can also be a computer program product that implements a program of instructions for execution by a computer or other programmable data processing apparatus. The program can be embodied in one or more computer readable media, which can be tangible or non-transitory computer readable media, which have recorded thereon instructions that, when executed, implement the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0107] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.

[0108] The computer program product of the present disclosure can have a signal including said computer program. This signal can be electronic, electromagnetic, optical, or any other suitable type of signal. Such a signal can be provided through a communication connection, such as electrical wiring, optical fiber, wireless interface, etc. Examples of computer program products include computer program implemented on a personal computer, server, or other networked device. A non-transitory computer readable medium, such as a floppy disk, CD-ROM, DVD-ROM, Blu-ray Disc, hard disk, or memory stick, can also be used to provide said computer program to a computer. The computer program product of the present disclosure can also be provided as over-the-air downloads or as app downloads. The computer program product of the present disclosure can also be provided as a software-as-a-service (SaaS) offering.

[0109] Various implementations of the disclosure have been described in detail above. The foregoing description is exemplary and explanatory only, and is not intended to be exhaustive or to limit various implementations of the disclosure to the precise forms disclosed. Many modifications and variations are possible in light of the above teachings without departing from the scope and spirit of the disclosure. It is intended that the scope of the disclosure be limited only by the claims and the equivalents thereof. The use of the terms "including," "containing," "comprising," "having," "in involving," "portions," "elements," "components," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "processes," "operations," "methods," "steps," "phases," "process

Claims

1.A method for presenting query results, comprising: in response to receiving a query request, obtaining a query intent associated with the query request; from a plurality of result presentation templates, determining a result presentation template that matches the query intent; and based on the result presentation template, presenting a query result page for the query request, the query result page including a first result area corresponding to the result presentation template, the first result area for providing a recommended first query result in a set of query results for the query request. 2.The method of claim 1, wherein the result presentation template includes a set of components, and the set of components is selected according to the query intent, the set of components including: a title component for specifying a title of the result presentation template; a content component for specifying content of the result presentation template, the content including at least any of: text, image, audio, and video. 3.The method of claim 2, wherein the set of components further includes at least any of: a user component for specifying information of a user in the result presentation template, the user being a user in an application for executing the method; a category component for specifying a category label in the result presentation template. 4.The method of claim 2, wherein a target component in the set of components includes a plurality of configuration parameters, the plurality of configuration parameters including at least any of: a size parameter for setting a size of the target component; a position parameter for setting a position of the target component; and a content parameter for setting content of the target component. 5.The method of claim 4, further comprising: based on a predetermined layout rule, setting at least any of the size parameter and the position parameter; and based on the first query result, setting the content parameter. 6.The method of claim 5, wherein setting the content parameter includes: for a target component in the set of components in the result presentation template, extracting data from the first query result that matches the target component; and based on the data, setting the content parameter of the target component. 7.The method of claim 2, wherein for a target component in the set of components, the target component has a same visual property in a plurality of instances of the target component in a plurality of result presentation templates, respectively. in response to receiving an interaction request associated with the category component, presenting at least one query result in the set of query results that matches a category indicated by the category component. 9.The method of claim 1, wherein a first matching degree between the first query result and the query request is higher than at least one second matching degree between at least one second query result in the set of query results and the query request. ​ 8. The method of claim 3, further comprising: ​ ​ 10.The method of claim 9, wherein the query result page further comprises a second result area for presenting the at least one second query result in the set of query results, a position of the at least one second query result in the second result area being determined according to a matching degree between the first query result and the query request. 11.The method of claim 1, wherein a first display area of the result presentation template is determined based on a display area of a terminal device for presenting the query result, and the position parameter and the size parameter of the set of components are determined based on the first display area. 12.An apparatus for presenting query results, comprising: an intent obtaining module configured to obtain a query intent associated with a query request in response to receiving the query request; a template determining module configured to determine, from a plurality of result presentation templates, a result presentation template matching the query intent; and a page presenting module configured to present, based on the result presentation template, a query result page for the query request, the query result page comprising a first result area corresponding to the result presentation template, the first result area being for providing recommended first query results in a set of query results for the query request. 13.An electronic device, comprising: at least one processing unit; and at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions, when executed by the at least one processing unit, causing the electronic device to perform the method according to any one of claims 1 to 11. 14.A computer-readable storage medium having stored thereon a computer program, the computer program, when executed by a processor, causing the processor to implement the method according to any one of claims 1 to 11. 15.A computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the method according to any one of claims 1 to 11. ​ ​ ​

Citation Information

Patent Citations

  • Search result display method and apparatus

    CN105138535A

  • Search result display method and device, computer equipment and storage medium

    CN115730158A

  • Search result display method, medium and electronic equipment

    CN116910389A

  • Result prominence in search

    US20150193542A1