Content searching method and device, equipment and storage medium
The information viewing component is constructed through the model, and it provides accurate and efficient information presentation in response to the user's search terms, solving the problem of insufficient content search experience in the prior art.
Patent Information
- Application Number
- CN202510134402.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-06
- Publication Date
- 2025-05-30
AI Technical Summary
The prior art is difficult to effectively solve the user's search needs for content when using applications, especially in providing an accurate and efficient information viewing experience.
The information viewing component is constructed through the model, and in response to receiving the search item, it provides response content for the search item, and presents matching information in the information viewing component based on the filter options associated with the information viewing component.
It realizes more accurate and efficient presentation of information in the information viewing component, and improves the efficiency of users to obtain the required information.
Smart Images

Figure CN120067422A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of computers, and particularly to methods, apparatuses, devices, and computer-readable storage media for content search. Background Art
[0002] With the rapid development of the Internet, more and more applications can provide users with a variety of content. The variety of content can provide people with content in many aspects such as consultation, education, life, and entertainment. During the process of users using applications, there are often search requirements for certain content. At this time, users can use the applications they use to perform corresponding content searches. Summary of the Invention
[0003] In a first aspect of the present disclosure, a method for content search is provided. The method includes: in response to receiving a search term, providing a response content for the search term, the response content including an information viewing component, the information viewing component being constructed by a model based on search results corresponding to the search term; and presenting first information that matches a first screening option in the information viewing component based on a first screening option associated with the information viewing component.
[0004] In a second aspect of the present disclosure, an apparatus for content search is provided. The apparatus includes: a providing module configured to, in response to receiving a search term, provide a response content for the search term, the response content including an information viewing component, the information viewing component being constructed by a model based on search results corresponding to the search term; and a presenting module configured to present first information that matches a first screening option in the information viewing component based on a first screening option associated with the information viewing component.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided. A computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.
[0007] It should be understood that the content described in this content part is not intended to limit the key features or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. Brief Description of the Drawings
[0008] In conjunction with the accompanying drawings and with reference to the following detailed description, the above and other features, advantages, and aspects of the embodiments of the present disclosure will become more apparent. In the drawings, the same or similar reference numerals denote the same or similar elements, where:
[0009] Figure 1 A schematic diagram showing an example environment in which embodiments according to the present disclosure can be implemented;
[0010] Figures 2A to 2B An example interface showing some embodiments of the present disclosure;
[0011] Figure 3 A flowchart showing an example process of a build information viewing component according to some embodiments of the present disclosure;
[0012] Figure 4 A flowchart showing an example process of content search according to some embodiments of the present disclosure;
[0013] Figure 5 A schematic structural block diagram showing an example device for content search according to some embodiments of the present disclosure; and
[0014] Figure 6 A block diagram of an electronic device capable of implementing multiple embodiments of the present disclosure. Detailed Embodiments
[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. On the contrary, these embodiments are provided to more thoroughly and completely understand the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not used to limit the protection scope of the present disclosure.
[0016] It should be noted that the titles of any sections / subsections provided herein are not restrictive. Various embodiments are described throughout this document, and any type of embodiment can be included under any section / subsection. In addition, the embodiments described in any section / subsection can be combined with any other embodiments described in the same section / subsection and / or different sections / subsections in any manner.
[0017] In the description of the embodiments of the present disclosure, the term "including" and its like shall be understood as an open inclusion, that is, "including but not limited to". The term "based on" shall be understood as "at least partially based on". The term "an embodiment" or "the embodiment" shall be understood as "at least one embodiment". The term "some embodiments" shall be understood as "at least some embodiments". There may also be other explicit and implicit definitions hereinafter. The terms "first", "second", etc. may refer to different or the same objects. There may also be other explicit and implicit definitions hereinafter.
[0018] In the embodiments of the present disclosure, it may involve the user's data, data acquisition and / or use, etc. These aspects all comply with the corresponding laws, regulations and related provisions. In the embodiments of the present disclosure, all data collection, acquisition, processing, processing, forwarding, use, etc. are carried out on the premise that the user is aware and confirms. Accordingly, when implementing the embodiments of the present disclosure, the types, usage scopes, usage scenarios, etc. of the data or information that may be involved should be informed to the user and the user's authorization should be obtained through appropriate means according to the relevant laws and regulations. The specific informing and / or authorization methods may vary according to the actual situation and application scenarios, and the scope of the present disclosure is not limited in this regard.
[0019] In the solutions of this specification and embodiments, if personal information processing is involved, it will be processed on the premise of having a legal basis (such as obtaining the consent of the personal information subject, or being necessary for performing a contract, etc.), and will only be processed within the specified or agreed scope. The user's refusal to process personal information other than the necessary information required for the basic functions will not affect the user's use of the basic functions.
[0020] As mentioned above, with the rapid development of the Internet, more and more applications can provide users with a variety of content. A variety of content can provide people with content in many aspects such as consulting, education, life and entertainment. During the process of users using applications, there are often search needs for certain content. At this time, users can use the applications they use to search for the corresponding content.
[0021] The embodiments of the present disclosure propose a content search solution. The solution includes: in response to receiving a search term, providing a response content for the search term, the response content including an information viewing component, and the information viewing component is constructed by a model based on the search results corresponding to the search term; and presenting first information matching the first screening option in the information viewing component based on a first screening option associated with the information viewing component.
[0022] In this way, the embodiments of the present disclosure can construct an information viewing component through a model, so that the first information in the information viewing component is more accurate.
[0023] Various example implementations of the solution are further described in detail below with reference to the accompanying drawings.
[0024] Example environment
[0025] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. As Figure 1 shown, the example environment 100 may include an electronic device 110.
[0026] In this example environment 100, the electronic device 110 may run an application 120 that supports content search. The application 120 may be any suitable type of application for content search, examples of which may include, but are not limited to: content sharing applications, social applications, online video applications, or other suitable applications. The user 140 may interact with the application 120 via the electronic device 110 and / or its attached devices.
[0027] In Figure 1 the environment 100, if the application 120 is active, the electronic device 110 may present an interface 150 for supporting content search through the application 120.
[0028] In some embodiments, the electronic device 110 communicates with a server 130 to implement the supply of services for the application 120. The electronic device 110 may be any type of mobile terminal, fixed terminal, or portable terminal, including mobile phones, desktop computers, laptop computers, notebook computers, netbook computers, tablet computers, media computers, multimedia tablets, palmtop computers, portable game terminals, VR / AR devices, Personal Communication System (PCS) devices, personal navigation devices, Personal Digital Assistant (PDA), audio / video players, digital cameras / cameras, positioning devices, television receivers, radio broadcast receivers, e-book devices, game devices, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the electronic device 110 can also support any type of interface for users (such as "wearable" circuits, etc.).
[0029] The server 130 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks, and big data and artificial intelligence platforms. The server 130 can include, for example, a computing system / server, such as a mainframe, an edge computing node, a computing device in a cloud environment, and so on. The server 130 can provide background services for the application 120 that supports content search in the electronic device 110.
[0030] A communication connection can be established between the server 130 and the electronic device 110. The communication connection can be established by wired or wireless means. The communication connection can include, but is not limited to, a Bluetooth connection, a mobile network connection, a Universal Serial Bus (USB) connection, a Wireless Fidelity (WiFi) connection, etc. Embodiments of the present disclosure are not limited in this regard. In an embodiment of the present disclosure, the server 130 and the electronic device 110 can implement signaling interaction through the communication connection therebetween.
[0031] It should be understood that the structures and functions of the various elements in the environment 100 are described only for exemplary purposes, without implying any limitation on the scope of the present disclosure.
[0032] Some exemplary embodiments of the present disclosure will be described below with continued reference to the accompanying drawings.
[0033] Example interaction
[0034] Figures 2A to 2B Exemplary interfaces 200A to 200B according to some embodiments of the present disclosure are shown. The interfaces 200A to 200B can be provided, for example, by Figure 1 the electronic device 110 as shown.
[0035] In some embodiments, in response to receiving a search term, the electronic device 110 provides response content for the search term, and the response content includes an information viewing component, which is constructed by a model based on search results corresponding to the search term.
[0036] As an example, as Figure 2A shown, Figure 2A Exemplary interface 200A according to some embodiments of the present disclosure is shown. After receiving the search term input by the user 140, the electronic device 110 can present as Figure 2AThe interface 200A shown. The interface 200A can be used, for example, to present a search results page. The interface 200A includes multiple response contents associated with the search term. Such response contents can include, for example, multiple text contents or media contents associated with the search term. For example, if the search term is "which university is good", then the response contents associated with this search term can include the introductions of multiple universities.
[0037] In some scenarios, the search results associated with the search term further include an information viewing component 205 (which can also be referred to as a search card). The information viewing component 205 is associated with the search term, that is, the content in the information viewing component 205 is associated with the search term. The information viewing component 205 can be constructed, for example, by the server 130 based on the search results of the search term and a preset component template.
[0038] In some embodiments, the response content further includes a reply text generated by the model based on the search term. As an example, as Figure 2A shown, the information viewing component 205 includes a content summary component 210, and the content summary component 210 includes a reply text associated with multiple search results. For example, if the search term is "which university is good in City A", then the summary information in the content summary component 210 can be "There are University A, University B, and University C in City A. In terms of comprehensive disciplines, University B is a relatively good university in City A".
[0039] In some embodiments, the electronic device 110 presents first information that matches the first screening option in the information viewing component based on the first screening option associated with the information viewing component. The first screening option is determined based on the search term. As an example, as Figure 2A shown, when the information viewing component 205 is presented, the electronic device 110 can present the first information that matches the first screening option in the content display component in the information viewing component 205. The first screening option can be determined by the server 130 based on the search term. For example, if the search term is "which university is good in City A", then the first screening option can include the region indicated in the search term, that is, "City A".
[0040] In some scenarios, the information viewing component 205 further includes a content display component 215. The content display component 215 can be used to present the first information that matches the first screening option. For example, if the search term is "which university is good in City A", such first information can include the rankings and school categories of each university in "City A". The school categories can include, for example, comprehensive, science and engineering, liberal arts and law, etc. The content display component 215 can be presented in the form of a table, so as to better list the information.
[0041] In some other scenarios, as Figure 2BAs shown, after presenting the information viewing component 205, the electronic device 110 can also present the content display component 215 in the form of a card. The presentation style of the content display component 215 can be associated with the search term received by the electronic device 110. When the content of the search term indicates a comparison of multiple objects, the electronic device 110 can present the content display component 215 in the form of a table. When the content of the search term indicates a specific type of object, the electronic device 110 can present the content display component 215 in the form of a card. For example, when the content of the search term is "Which universities in City A are good", the electronic device 110 can present the content display component 215 in the form of a list. When the content of the search term is "Recommended reading materials for primary and secondary schools", the electronic device 110 can present the content display component 215 in the form of a card, and each card in the content display component 215 represents a recommended book.
[0042] In this way, the embodiments of the present disclosure can present the information viewing component 205 in different presentation styles, so that the information viewing component 205 can present the information associated with the search term more clearly and concisely, thereby enabling users to obtain information more efficiently.
[0043] In some embodiments, the information viewing component includes a filtering control. The electronic device 110 can determine a second filtering option based on a user operation associated with the filtering control. Further, the electronic device 110 can update the information viewing component to present second information that matches the second filtering option.
[0044] As an example, when the content display component 215 is presented, the electronic device 110 can also present a filtering control 220 in the content display component. The filtering control 220 includes multiple attribute selection bars, and each attribute selection bar indicates a content filtering attribute. For example, when the content of the search term is "How many people does University A recruit in City A", the content filtering attributes can include region attributes (such as "City A", "City B", etc.), year attributes (such as "2023", "2022", etc.), and other content filtering attributes associated with the content of the search term. The electronic device 110 can obtain the user's interaction operation with the filtering control 220. Such an interaction operation can be, for example, the selection of a content filtering attribute in any conditional attribute selection bar. Further, the electronic device 110 can determine a second filtering option based on the obtained interaction operation, so as to present second information that matches the second filtering option in the content display component 215 of the information viewing component 205. In this way, the content in the information viewing component 205 can be modified by changing the content filtering attributes in the filtering control, thereby simplifying the information acquisition process and improving the information acquisition efficiency.
[0045] In this way, the embodiments of the present disclosure can construct the information viewing component through a model, so that the first information in the information viewing component is more accurate.
[0046] Example component construction process
[0047] Figure 3 shows a flowchart of an example process 300 for constructing an information viewing component according to some embodiments of the present disclosure. The process 300 may be implemented at the electronic device 110 or the server 130. The following will describe the process 300 with reference to Figure 1 to describe the process 300.
[0048] In some embodiments, after receiving a search term, the electronic device 110 may send the search term to the server 130 so that the server 130 can construct an example component based on the received search term. Specifically, the server 130 may obtain a historical search result corresponding to the historical search term in response to the similarity between the search term and the historical search term being greater than a first threshold. After obtaining the historical search result, the server 130 may determine historical structured data for the search term based on the historical search result. Further, the server 130 may construct an information viewing component based on the historical structured data.
[0049] As an example, as Figure 3 shown, Figure 3 shows the construction process of an example information viewing component according to some embodiments of the present disclosure. After receiving the search term 310, the electronic device 110 may send the search term to the server 130 to obtain the information viewing component 205 constructed by the server 130 and a plurality of search results associated with the search term. After receiving the search term, the server 130 may perform a normalization process on the search term through the search term normalization module 320 to determine whether the similarity between the search term 310 and the historical search terms in the cache is greater than a first threshold. Such a similarity may be, for example, a cosine similarity.
[0050] When the server 130 determines that the similarity between the search term 310 and the historical search terms in the cache is greater than the first threshold, the server 130 may use the cache reading module 330 to obtain the historical search results associated with the historical search terms from the cache and construct the information viewing component 205 based on the historical structured data corresponding to the historical search results.
[0051] In some embodiments, when the server 130 determines that the similarity between the search term 310 and the historical search terms in the cache is not greater than the first threshold, the server 130 may generate the information viewing component 205 through a model. Specifically, the server 130 may provide the search term and the tool description information to the model to determine multiple subtasks associated with the search term. The multiple subtasks include multiple ones of the following: comparison tasks, judgment tasks, query tasks, and conversion tasks. Usually, the results to be queried in the content search task involve multiple pieces of basic information, or involve multiple summaries and calculations. Therefore, it is relatively difficult to process the content search task through a single task only. By decomposing the content search task and processing different subtasks separately, the complexity of task processing can be effectively reduced, thereby improving the efficiency of content search and the accuracy of the retrieved content.
[0052] As an example, when the server 130 determines that the similarity between the search term 310 and the historical search terms in the cache is not greater than the first threshold, the server 130 may use the agent module 340 to utilize the model to decompose the task. After the model decomposes the task, the server 130 may determine multiple subtasks associated with the search term. Specifically, multiple candidate tools may be pre-stored in the server 130, and each candidate tool corresponds to a tool description information. When constructing the information viewing component 205, the server 130 may provide the search term and multiple tool description information to the model through the agent module 340 to decompose the task. For example, when the query tool and the comparison tool are pre-stored in the server 130, the server 130 may provide the search term, the tool description information corresponding to the query tool, and the tool description information corresponding to the comparison tool to the model, so as to obtain the query task and the comparison task through the model.
[0053] In some embodiments, after determining the multiple subtasks, the server 130 may determine multiple tools and at least one call parameter corresponding to the multiple tools from a set of candidate tools indicated by the tool description information through the model.
[0054] As an example, as Figure 3 shown, after the server 130 provides the search term and the tool description information to the model, the model can not only decompose the task, but also determine multiple tools for executing the multiple subtasks and at least one call parameter corresponding to the multiple tools. Such call parameters may be the main information in the search term. For example, if the search term is "Is B University in City A good?", then the call parameters may include "City A" and "B University".
[0055] In some embodiments, the server 130 may determine the structured data for the search term by calling multiple tools corresponding to the multiple subtasks. As an example, as Figure 3As shown in the figure. After multiple subtasks are determined by the server 130, the server 130 can use the tool invocation module 350 to invoke multiple tools corresponding to the multiple subtasks to determine the structured data for the search term. For example, if the multiple subtasks include a query task and a comparison task, then the server 130 can use the tool invocation module 350 to invoke the corresponding tools (such as a query tool and a comparison tool) to process the above tasks, so as to obtain the execution results of the query task and the comparison task. Further, the server 130 can determine the structured data based on the execution results of the query task and the comparison task.
[0056] In some embodiments, the server 130 can determine multiple query statements corresponding to multiple tools based on the search term. After the server 130 determines the multiple query statements, it can determine the query results corresponding to the multiple tools based on the multiple query statements. Further, the server 130 can determine the structured data based on the multiple query results.
[0057] As an example, as Figure 3 shown, the server 130 can use the tool invocation module 350 to obtain multiple query statements generated by the model, and such multiple query statements correspond to multiple tools. After the server 130 obtains the query statements, it can obtain multiple query results in the database based on the query statements. The multiple query results are used to support the corresponding tools to process the subtasks. Further, the server 130 can determine the structured data based on the multiple tools and the multiple query results corresponding to the multiple tools.
[0058] In some scenarios, after the server 130 obtains multiple query structures, it can summarize and deduplicate the multiple query results, so as to be able to remove redundant data and data with a matching degree lower than the second threshold with the search term. In this way, the accuracy of the structured data used to generate the information viewing component 205 can be guaranteed.
[0059] In some embodiments, the server 130 can split the multiple query results in multiple dimensions, so that the constructed information viewing component 205 can present the information searched by the user in a more organized manner. Specifically, the server 130 can determine at least one data summary dimension based on the search term. Further, the server 130 can process the multiple query results based on the at least one data summary dimension to determine the structured data.
[0060] As an example, after obtaining multiple query results, the server 130 can call a model through the retrieval enhancement generation module 360 to determine multiple data summary dimensions associated with the search term through the model. For example, if the search term is "the enrollment situation of each university in Province A", then the model can generate multiple data summary dimensions based on this search term. The multiple data summary dimensions can include, for example, a regional dimension (such as "City A" and "City B" in "Province A"), a school dimension (such as different schools in "Province A", such as "University A" and "University B"), and a school type dimension (such as "comprehensive", "science and technology", and "grammar"). After determining the multiple data summary dimensions, the server 130 can determine structured data based on the multiple data summary dimensions and the multiple query results.
[0061] In some embodiments, the structured data corresponds to a preset output format, and the output format is associated with the type of the information viewing component. As an example, the type of the information viewing component 205 can be, for example, the presentation style of the information viewing component 205, and such a presentation style can be, for example, a card style and a table style. The server 130 can determine the presentation style of the information viewing component 205 based on the content of the search term. After the presentation style of the information viewing component 205 is determined, the server 130 can obtain the output format corresponding to the structured data based on the determined presentation style.
[0062] In some scenarios, before the structured data is output, the server 130 can filter the structured data through the data verification and filtering module 370 so that the structured data meets a preset condition. Such a preset condition can be, for example, the relevance between the structured data and the search term. The preset condition can be set by those skilled in the art, and the present disclosure does not limit this.
[0063] In some embodiments, after obtaining the structured data, the server 130 can construct the information viewing component 205 based on the obtained structured data. As an example, after determining the presentation style of the information viewing component 205, the server 130 can determine a template for constructing the component based on the presentation style of the information viewing component 205. Further, the server 130 can fill the structured data into the template in the determined output format to construct the information viewing component 205.
[0064] In this way, the embodiments of the present disclosure can use a language model to generate the information required by the user (i.e., the information viewing component and the contents in the information viewing component), so that the information provided to the user can be more accurate and help the user better obtain the required information.
[0065] Example process
[0066] Figure 4The flowchart shows an example process 400 for content search according to some embodiments of the present disclosure. Process 400 may be implemented at the electronic device 110. The following will refer to Figure 1 to describe process 400.
[0067] As Figure 4 shown, at block 410, in response to receiving a search term, the electronic device 110 provides response content for the search term, where the response content includes an information viewing component, and the information viewing component is constructed by a model based on search results corresponding to the search term.
[0068] At block 420, the electronic device 110 presents first information that matches a first screening option in the information viewing component based on the first screening option associated with the information viewing component.
[0069] In some embodiments, process 400 further includes: the first screening option is determined based on the search term.
[0070] In some embodiments, the information viewing component includes a screening control, and process 400 further includes: determining a second screening option based on a user operation associated with the screening control; and updating the information viewing component to present second information that matches the second screening option.
[0071] In some embodiments, the response content further includes a response text generated by the model based on the search term.
[0072] In some embodiments, the information viewing component is constructed based on the following process: providing the search term and tool description information to the model to determine a plurality of subtasks associated with the search term; determining structured data for the search term by invoking a plurality of tools corresponding to the plurality of subtasks; and constructing the information viewing component based on the structured data.
[0073] In some embodiments, the model is further configured to: determine a plurality of tools and at least one call parameter corresponding to the plurality of tools from a set of candidate tools indicated by the tool description information.
[0074] In some embodiments, determining structured data for the search term by invoking a plurality of tools corresponding to the plurality of subtasks includes: determining a plurality of query statements corresponding to the plurality of tools based on the search term; determining a plurality of query results corresponding to the plurality of tools based on the plurality of query statements; and determining structured data based on the plurality of query results.
[0075] In some embodiments, determining structured data based on the plurality of query results includes: determining at least one data summarization dimension based on the search term; and processing the plurality of query results based on the at least one data summarization dimension to determine structured data.
[0076] In some embodiments, the structured data corresponds to a preset output format, and the output format is associated with the type of the information viewing component.
[0077] In some embodiments, the multiple subtasks include multiple ones of the following: comparison tasks; judgment tasks; query tasks; conversion tasks.
[0078] In some embodiments, the information viewing component is also constructed based on the following process: in response to the similarity between the search term and the historical search term being greater than a threshold, obtaining the historical search results corresponding to the historical search term; determining the historical structured data for the search term based on the historical search results; and constructing the information viewing component based on the historical structured data.
[0079] Example apparatus and equipment
[0080] Embodiments of the present disclosure also provide corresponding devices for implementing the above methods or processes. Figure 5 A schematic structural block diagram of an example device 500 for content search according to certain embodiments of the present disclosure is shown. The device 500 can be implemented as or included in an electronic device 110. Each module / component in the device 500 can be implemented by hardware, software, firmware, or any combination thereof.
[0081] As Figure 5 shown, the device 500 includes: a providing module 510 configured to provide response content for the search term in response to receiving the search term, the response content including an information viewing component, and the information viewing component is constructed by a model based on the search results corresponding to the search term; and a presenting module 520 configured to present first information matching the first screening option in the information viewing component based on the first screening option associated with the information viewing component.
[0082] In some embodiments, the first screening option is determined based on the search term.
[0083] In some embodiments, the device 500 further includes an updating module configured to determine a second screening option based on a user operation associated with a screening control; and update the information viewing component to present second information matching the second screening option.
[0084] In some embodiments, the response content further includes a reply text generated by the model based on the search term.
[0085] In some embodiments, the information viewing component is constructed based on the following process: providing the search term and tool description information to the model to determine multiple subtasks associated with the search term; determining the structured data for the search term by invoking multiple tools corresponding to the multiple subtasks; and constructing the information viewing component based on the structured data.
[0086] In some embodiments, the model is further configured to: determine a plurality of tools and at least one call parameter corresponding to the plurality of tools from a set of candidate tools indicated by the tool description information.
[0087] In some embodiments, determining structured data for a search term by invoking a plurality of tools corresponding to a plurality of subtasks includes: determining a plurality of query statements corresponding to the plurality of tools based on the search term; determining a plurality of query results corresponding to the plurality of tools based on the plurality of query statements; and determining structured data based on the plurality of query results.
[0088] In some embodiments, determining structured data based on a plurality of query results includes: determining at least one data summarization dimension based on the search term; and processing the plurality of query results based on the at least one data summarization dimension to determine structured data.
[0089] In some embodiments, the structured data corresponds to a preset output format, and the output format is associated with the type of the information viewing component.
[0090] In some embodiments, the plurality of subtasks include multiple ones of the following: comparison tasks; judgment tasks; query tasks; conversion tasks.
[0091] In some embodiments, the information viewing component is further constructed based on the following process: in response to the similarity between the search term and the historical search term being greater than a threshold, obtaining the historical search results corresponding to the historical search term; determining the historical structured data for the search term based on the historical search results; and constructing the information viewing component based on the historical structured data.
[0092] The modules included in apparatus 500 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more modules can be implemented using software and / or firmware, such as machine-executable instructions stored on a storage medium. In addition to or as an alternative to the machine-executable instructions, some or all of the units in apparatus 500 can be implemented at least in part by one or more hardware logic components. By way of example and not limitation, exemplary types 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0093] Figure 6 A block diagram of an electronic device 600 in which one or more embodiments of the present disclosure can be implemented is shown. It should be understood that Figure 6 The illustrated electronic device 600 is merely exemplary and should not constitute any limitation to the functions and scopes of the embodiments described herein.Figure 6 The illustrated electronic device 600 can be used to implement the electronic device 110 as discussed above.
[0094] As Figure 6 shown, the electronic device 600 is in the form of a general-purpose electronic device. The components of the electronic device 600 can include, but are not limited to, one or more processors or processing units 610, a memory 620, a storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. The processing unit 610 can be an actual or virtual processor and is capable of performing various processes according to the programs stored in the memory 620. In a multi-processor system, multiple processing units execute computer-executable instructions in parallel to improve the parallel processing ability of the electronic device 600.
[0095] The electronic device 600 generally includes multiple computer storage media. Such media can be any accessible media that can be obtained by the electronic device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 can be a volatile memory (such as registers, caches, random access memory (RAM)), a non-volatile memory (such as read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 can be a removable or non-removable medium and can include machine-readable media, such as a flash drive, a magnetic disk, or any other medium that can be used to store information and / or data and can be accessed within the electronic device 600.
[0096] The electronic device 600 can further include additional removable / non-removable, volatile / non-volatile storage media. Although not shown in Figure 6 it, a disk drive for reading from or writing to a removable, non-volatile magnetic disk (such as a "floppy disk") and an optical disk drive for reading from or writing to a removable, non-volatile optical disk can be provided. In these cases, each drive can be connected to a bus (not shown) by one or more data media interfaces. The memory 620 can include a computer program product 625 having one or more program modules that are configured to perform the various methods or actions of the various embodiments of the present disclosure.
[0097] The communication unit 640 enables communication with other electronic devices through a communication medium. Additionally, the functions of the components of the electronic device 600 can be implemented by a single computing cluster or multiple computer machines that are capable of communicating through a communication connection. Thus, the electronic device 600 can operate in a networked environment using a logical connection to one or more other servers, network personal computers (PCs), or another network node.
[0098] The input device 650 can be one or more input devices, such as a mouse, a keyboard, a trackball, etc. The output device 660 can be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 600 can also communicate with one or more external devices (not shown) as needed through the communication unit 640. The external devices such as a storage device, a display device, etc., communicate with one or more devices that enable a user to interact with the electronic device 600, or communicate with any device that enables the electronic device 600 to communicate with one or more other electronic devices (e.g., a network card, a modem, etc.). Such communication can be performed via an input / output (I / O) interface (not shown).
[0099] According to an exemplary implementation of the present disclosure, there is provided a computer-readable storage medium having computer-executable instructions stored thereon, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, there is also provided a computer program product, the computer program product being tangibly stored on a non-transitory computer-readable medium and including computer-executable instructions, and the computer-executable instructions being executed by a processor to implement the method described above.
[0100] Aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of methods, apparatuses, devices, and computer program products implemented according to the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and the combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0101] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine such that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device is produced that implements the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams. These computer-readable program instructions can also be stored in a computer-readable storage medium, which causes a computer, a programmable data processing device, and / or other devices to work in a specific manner. Thus, the computer-readable medium storing the instructions includes a manufacture, which includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams.
[0102] Computer-readable program instructions may be loaded onto a computer, other programmable data processing apparatus, or other device, causing a series of operational steps to be performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, such that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in one or more boxes of the flowchart and / or block diagram.
[0103] The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various implementations of the present disclosure. In this regard, each block in the flowchart or block diagram may represent a module, a segment of a program, or a portion of an instruction, which contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two consecutive blocks may in fact be executed substantially in parallel, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
[0104] The various implementations of the present disclosure have been described above. The above description is exemplary, not exhaustive, and is not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The choice of terms used herein is intended to best explain the principles of the implementations, the practical application, or improvement of the technology in the marketplace, or to enable other ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A content search method, comprising: In response to receiving a search term, providing response content for the search term, the response content including an information viewing component constructed by a model based on search results corresponding to the search term; and Based on a first filter item associated with the information viewing component, first information matching the first filter item is presented in the information viewing component. The method of claim 1 , wherein the first filter term is determined based on the search term.
3. The method of claim 1, wherein the information viewing component comprises a filter control, the method further comprising: determining a second filter item based on a user operation associated with the filter control; as well as The information viewing component is updated to present second information matching the second filter item.
4. The method according to claim 1, wherein the response content also includes reply text generated by the model based on the search term.
5. The method according to claim 1, wherein the information viewing component is constructed based on the following process: providing the search term and tool description information to the model to determine a plurality of subtasks associated with the search term; Determining structured data for the search term by calling a plurality of tools corresponding to the plurality of subtasks; as well as Based on the structured data, the information viewing component is constructed.
6. The method of claim 5, wherein the model is further configured to: The plurality of tools and at least one calling parameter corresponding to the plurality of tools are determined from a group of candidate tools indicated by the tool description information.
7. The method according to claim 5, wherein determining the structured data for the search term by calling a plurality of tools corresponding to the plurality of subtasks comprises: Based on the search terms, determining a plurality of query statements corresponding to the plurality of tools; Based on the multiple query statements, determining multiple query results corresponding to the multiple tools; as well as The structured data is determined based on the multiple query results.
8. The method according to claim 7, wherein based on the plurality of query results, determining the structured data comprises: Based on the search terms, determining at least one data summary dimension; as well as The plurality of query results are processed based on the at least one data summary dimension to determine the structured data.
9. The method of claim 5, wherein the structured data corresponds to a preset output format, the output format being associated with a type of the information viewing component.
10. The method of claim 5, wherein the plurality of subtasks comprises a plurality of the following: Comparative tasks; Judgment tasks; Query tasks; Conversion tasks.
11. The method according to claim 1, wherein the information viewing component is further constructed based on the following process: In response to the similarity between the search term and the historical search term being greater than a threshold, obtaining historical search results corresponding to the historical search term; Based on the historical search results, determining historical structured data for the search term; as well as The information viewing component is constructed based on the historical structured data.
12. A device for content search, comprising: A providing module, configured to provide, in response to receiving a search term, response content for the search term, the response content including an information viewing component, the information viewing component being constructed by a model based on search results corresponding to the search term; as well as The presenting module is configured to present first information matching the first filtering item in the information viewing component based on a first filtering item associated with the information viewing component.
13. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 11 when executed by the at least one processing unit.
14. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 11.
Citation Information
Cited By
Content search method and apparatus, device, and storage medium
WO2026166524A1