Search method, graphical interface and related device
By updating the generated results in real time, adjusting the generation results of the AIGC system using the search results currently searched, solving the problem that the content generated by the existing AIGC system is not accurate enough and timely, and improving the user's search experience.
Patent Information
- Application Number
- CN202311073258.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-23
- Publication Date
- 2025-02-25
AI Technical Summary
Due to the timeliness of training data, the generated content is not accurate enough and has poor timeliness, which affects the user's search experience.
By detecting the user's search keyword operations, the search results and generation results are displayed, and when the user adjusts the generation results, the generated results are updated in real time, and the generated results are adjusted using the currently searched search results to make them more accurate and timely.
It improves the accuracy and timeliness of generated results, improves the user's search experience, and allows users to obtain more accurate and latest information.
Smart Images

Figure CN119513335A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal and communication technology, and in particular to a search method, a graphical interface and related devices. Background Art
[0002] Artificial Intelligence Generative Content (AIGC) is a new AI technology. Its core idea is to use AI models to automatically generate various types of text, images, audio, video and other content based on given topics, keywords, formats, styles and other conditions. In other words, the AIGC system can directly generate relevant content to "answer" questions raised by users.
[0003] However, the AIGC system also has certain defects: since the AIGC system uses a model trained with big data to generate answers, the data it trains on generally has timeliness issues, so the content it generates is obviously not accurate enough and has poor timeliness. It can be seen that the AIGC system still needs to be improved. Summary of the invention
[0004] The present application provides a search method, a graphical interface and related devices, which realize the adjustment of generated results using the current search results with timeliness, so that the generated results viewed by the user are more accurate and more timely, thereby improving the user's search experience.
[0005] In a first aspect, the present application provides a search method, which includes: an electronic device detects a first operation of searching for a first keyword; the electronic device displays a first search result and a first generated result, the first search result being all or part of the search results searched using the first keyword, and the first generated result being the result obtained after the first keyword is input into a content generation model; the electronic device detects a second operation; the electronic device updates the first generated result to a second generated result, and the second generated result is the result obtained after one or more search results in the first search result, the first keyword, and the first generated result are input into the content generation model.
[0006] By implementing the method provided in the first aspect, the electronic device can output the retrieved search results and the generated results generated based on the user's keywords after detecting the user's search operation for keywords, so that the user can understand the results of the electronic device's response to the keywords from different angles. In addition, the method also introduces the search results searched in real time by the electronic device to adjust the generated results, so that the electronic device can obtain more accurate and timely generated results, thereby improving the user's search experience.
[0007] In combination with the first aspect, in one implementation, before the electronic device detects the second operation, the method further includes: the electronic device detects a selection operation on one or more search results in the first search results.
[0008] That is to say, before the user adjusts the generated results, the user can also select search results for adjusting the generated results from the search results displayed by the electronic device, so that the electronic device can display the generated results adjusted according to the information selected by the user, thereby improving the authority of the generated results.
[0009] In combination with the first aspect, in one implementation, after the electronic device detects the second operation, the method further includes: the electronic device adjusts the position of the search results in the first search results, wherein after the adjustment, one or more search results are located in front of the search results other than one or more search results in the first search results.
[0010] In this way, the search results used in updating and generating the results can be displayed in an area that is easier for users to view, so that users can quickly view the search results used in updating and generating the results.
[0011] In combination with the first aspect, in one implementation, the second generated result includes: main text content and one or more identifiers, one identifier corresponds to a sub-content in the main text content, and one identifier is used to indicate that the corresponding sub-content originates from a search result.
[0012] That is to say, the updated generated results can be marked with the search results with the source, so that the user can associate the generated results with the search results and understand the source of the information in the generated results.
[0013] In combination with the first aspect, in one implementation, the second generated result also includes: a uniform resource locator URL corresponding to the search result of the sub-content source.
[0014] The URL is provided in the second generated result, so that the user can further understand the detailed content of the search result through the URL and obtain more information associated with the keyword.
[0015] In combination with the first aspect, in one implementation, after the electronic device detects a first operation of searching for a first keyword and before displaying a first search result and a first generated result, the method also includes: the electronic device sends a search request, the search request includes the first keyword; the electronic device receives the first search result and the first generated result, or, first indication information, the first indication information is used to indicate the first search result and the first generated result.
[0016] In combination with the first aspect, in one implementation, before the electronic device updates the first generated result to the second generated result, the method further includes: the electronic device receives the second generated result or indication information of the second generated result.
[0017] That is to say, the generated result can be generated by other devices, reducing the workload of the electronic device.
[0018] In combination with the first aspect, in one implementation, the indication information of the second generated result includes: the first content in the second generated result, and a URL corresponding to the second content in the second generated result.
[0019] That is to say, when the electronic device obtains the second generated result, other devices do not need to send the second generated result itself. Taking the second generated result including text and video as an example, other devices, such as a server, can directly send the video playback link of the text and video for the electronic device to parse. This can reduce the amount of data received by the electronic device and speed up the speed at which the electronic device displays the second generated result.
[0020] In combination with the first aspect, in one implementation, after the electronic device detects the second operation and before updating the first generated result to the second generated result, the method further includes: the electronic device sends an adjustment request.
[0021] It can be seen that the electronic device can trigger other devices to generate the second generation result by sending an adjustment request to other devices, such as a server, and display the update of the generation result on the electronic device.
[0022] In combination with the first aspect, in one implementation, the adjustment request includes: one or more search results, or indication information of one or more search results.
[0023] In a second aspect, an embodiment of the present application provides a search method, which is applied to a server and an electronic device, and the method includes: the electronic device detects a first operation of searching for a first keyword; the electronic device sends a search request to the server, and the search request includes the first keyword; the server determines a first search result and a first generated result, the first search result is all or part of the search results searched by the server using the first keyword, and the first generated result is the result obtained after the server inputs the first keyword into a content generation model; the server sends the first search result and the first generated result, or, first indication information to the electronic device, the first indication information is used to indicate the first search result and the first generated result; the electronic device displays the first search result and the first generated result; the electronic device detects a second operation; the electronic device sends an adjustment request to the server; the server inputs one or more search results in the first search result, the first keyword and the first generated result into the content generation model to obtain a second generated result; the server sends the second generated result or indication information of the second generated result to the electronic device; the electronic device updates the first generated result to the second generated result.
[0024] By implementing the method provided in the second aspect, the server can update and output the generated results, and the electronic device can interact with the user to display the generated results updated and output by the server, so that the electronic device can display the search results and the generated results generated based on the user's keywords, which is convenient for the user to understand the results of the electronic device's response to the keyword from different angles. In addition, the method also introduces the search results searched in real time by the electronic device to adjust the generated results output by the server using the content generation model, so that the electronic device can obtain more accurate and timely generated results, thereby improving the user's search experience.
[0025] In combination with the second aspect, in one implementation, before the electronic device detects the second operation, the method further includes: the electronic device detects a selection operation on one or more search results in the first search results.
[0026] That is to say, before the user adjusts the generated results, the user can also select search results for adjusting the generated results from the search results displayed by the electronic device, so that the electronic device can display the generated results adjusted according to the information selected by the user, thereby improving the authority of the generated results.
[0027] In conjunction with the second aspect, in one implementation, the adjustment request includes: one or more search results or indication information of one or more search results.
[0028] That is, after the electronic device determines the search result for adjusting the generated result, the search result itself or indication information indicating the search result can be sent to the server so that the server can quickly obtain the search result determined by the electronic device.
[0029] In combination with the second aspect, in one implementation, after the electronic device detects the second operation, the method further includes: the electronic device adjusts the position of the search results in the first search results, wherein after the adjustment, one or more search results are located in front of the search results other than one or more search results in the first search results.
[0030] In this way, the search results used in updating and generating the results can be displayed in an area that is easier for users to view, so that users can quickly view the search results used in updating and generating the results.
[0031] In combination with the second aspect, in one implementation, the second generated result includes: main text content and one or more identifiers, one identifier corresponds to a sub-content in the main text content, and one identifier is used to indicate that the corresponding sub-content originates from a search result.
[0032] That is to say, the updated generated results can be marked with the search results with the source, so that the user can associate the generated results with the search results and understand the source of the information in the generated results.
[0033] In conjunction with the second aspect, in one implementation, the second generated result also includes: a uniform resource locator URL corresponding to the search result of the sub-content source.
[0034] The URL is provided in the second generated result, so that the user can further understand the detailed content of the search result through the URL and obtain more information associated with the keyword.
[0035] In combination with the second aspect, in one implementation, the indication information of the second generated result includes: the first content in the second generated result, and a URL corresponding to the second content in the second generated result.
[0036] That is to say, when the electronic device obtains the second generated result, other devices do not need to send the second generated result itself. Taking the second generated result including text and video as an example, other devices, such as a server, can directly send the video playback link of the text and video for the electronic device to parse. This can reduce the amount of data received by the electronic device and speed up the speed at which the electronic device displays the second generated result.
[0037] In a third aspect, an embodiment of the present application provides a search method, the method comprising: a server receives a search request, the search request comprising a first keyword; the server determines a first search result and a first generated result, the first search result being all or part of the search results searched by the server using the first keyword, and the first generated result being the result obtained after the server inputs the first keyword into a content generation model; the server sends the first search result and the first generated result, or, first indication information, the first indication information being used to indicate the first search result and the first generated result; the server receives an adjustment request; the server inputs one or more search results in the first search result, the first keyword and the first generated result into the content generation model to obtain a second generated result; the server sends the second generated result or indication information of the second generated result.
[0038] By implementing the method provided in the third aspect, the server can not only obtain the generation results through the content generation model, but also, after obtaining one or more search results, use the search results to re-obtain the generation results through the content generation model, so that the server can use the search results obtained in real time to adjust the generation results and obtain more accurate and timely generation results.
[0039] In combination with the third aspect, in one implementation, the adjustment request includes: one or more search results, or indication information of one or more search results.
[0040] That is, when the server obtains one or more search results, it may directly obtain the search results themselves, or may obtain indication information of the search results, so that the server can quickly obtain the search results determined by the electronic device.
[0041] In combination with the third aspect, in one implementation, the second generated result includes: main text content and one or more identifiers, one identifier corresponds to a sub-content in the main text content, and one identifier is used to indicate that the corresponding sub-content originates from a search result.
[0042] That is to say, the updated generated results can be marked with the search results with the source, so that the user can associate the generated results with the search results and understand the source of the information in the generated results.
[0043] In combination with the third aspect, in one implementation, the second generated result also includes: a uniform resource locator URL corresponding to the search result of the sub-content source.
[0044] The URL is provided in the second generated result, so that the user can further understand the detailed content of the search result through the URL and obtain more information associated with the keyword.
[0045] In combination with the third aspect, in one implementation, the indication information of the second generated result includes: the first content in the second generated result, and a URL corresponding to the second content in the second generated result.
[0046] That is to say, when the electronic device obtains the second generated result, other devices do not need to send the second generated result itself. Taking the second generated result including text and video as an example, other devices, such as a server, can directly send the video playback link of the text and video for the electronic device to parse. This can reduce the amount of data received by the electronic device and speed up the speed at which the electronic device displays the second generated result.
[0047] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method described in the first aspect or any one of the implementation methods in the first aspect.
[0048] In the fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method described in the third aspect or any one of the implementation methods in the third aspect.
[0049] In a sixth aspect, an embodiment of the present application provides a communication system, the system comprising the electronic device as described in the fourth aspect and the electronic device as described in the fifth aspect.
[0050] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions, which, when executed on an electronic device, cause the electronic device to execute a method as described in the first aspect or any one of the implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A communication system 1000 provided in an embodiment of the present application;
[0052] Figure 2 A schematic diagram of the interaction between a cloud-side search engine, a content generation system, and a terminal side provided in an embodiment of the present application;
[0053] Figure 3A-Figure 3F Some user interfaces provided for embodiments of the present application;
[0054] Figure 4 A flowchart of a search method provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of the structure of a content generation system provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of the present application;
[0057] Figure 7 A software structure block diagram of the electronic device 100 provided in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of the hardware structure of the server 200 provided in the embodiment of the present application;
[0059] Fig. 9 A schematic diagram of the structure of a terminal side device 300 provided in an embodiment of the present application;
[0060] Fig.10 A schematic diagram of the structure of a cloud-side device 400 provided in an embodiment of the present application. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present application will be described clearly and in detail below in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0062] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
[0063] The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device, and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
[0064] An embodiment of the present application provides a search method, in which a first generated result and a first search result can be displayed based on a user's operation of searching for a first keyword, and then based on a user's operation of adjusting the first generated result, the first generated result can be updated to a second generated result, where the second generated result is generated using one or more search results in the first search result.
[0065] The first generation result and the second generation result are the results generated by the content generation system. The content generation system includes a content generation model, which can generate information sequences in the format of text, pictures, audio, video, etc. related to the keyword according to the keyword, and the content generation system can also use natural language processing technology to organize these sequences to obtain the generation results of human-like natural language. The content generation model is obtained by training with a large amount of data.
[0066] The first search result is information retrieved from the Internet using a search engine. The Internet includes a large amount of information in the form of text, pictures, videos, etc. posted by users. The search engine can use a variety of technologies, such as web crawler technology, search and sorting technology, web page processing technology, big data processing technology, natural language processing technology, etc., to retrieve information that is highly correlated with the keywords used by users when searching from a large amount of information posted on the Internet.
[0067] It can be seen that since the search results obtained by the search engine are relevant results retrieved in real time based on the information published on the Internet, they have a certain timeliness. This search method introduces the search results retrieved by the search engine to adjust the results generated by the content generation system, which can optimize the content generation system so that the content generation system can generate timely results. At the same time, it also improves the accuracy of the results generated by the content generation system and enhances the user's search experience.
[0068] Figure 1 A communication system 1000 provided in an embodiment of the present application is shown.
[0069] like Figure 1 As shown, the communication system 1000 may include an electronic device 100 and a server 200 .
[0070] Among them, the electronic device 100 can be regarded as a device on the terminal side, which can directly interact with the user and provide services for the user. Specifically, the electronic device 100 can provide a user interface for the user to view, receive keywords for search input by the user, send a search request to the server 200, receive and display the search results and generated results sent by the server 200, and receive the user's operation to adjust the generated results, initiate a request to adjust the generated results to the server 200, and so on.
[0071] The server 200 can be regarded as a cloud-side device, which is used to receive a search request initiated by the electronic device 100, and generate results related to the search request based on the search request, and retrieve search results related to the search request, and send the generated results and search results to the electronic device 100.
[0072] The server 200 may include a search engine and a content generation system.
[0073] Figure 2 FIG. 1 shows a schematic diagram of the interaction between the search engine on the cloud side and the content generation system and the terminal side. Figure 2 As shown, the search engine can be used to retrieve relevant search results based on the search request sent by the end side and return them to the end side. The content generation system can be used to obtain the search request (and relevant search results) sent by the end side, and generate relevant generated results based on the search request (and relevant search results), and return the generated results to the end side.
[0074] It should be noted that the server mentioned in each embodiment of the present application, such as server 200, can be a server or a server cluster composed of multiple servers. For example, server 200 can be a server cluster in which multiple servers are deployed through a distributed architecture, and the cluster can include one or more of a cloud computing server, a content delivery network (Content Delivery Network, CDN) server, a network time protocol (Network Time Protocol, NTP), a domain name resolution system (Domain Name System, DNS) server, etc. Among them, the various servers can coordinate with each other to jointly complete functions such as computing, data storage, and communication. For the convenience of description, a single server, a distributed server, a server cluster, etc. are collectively referred to as a server in the embodiments of the present application.
[0075] Furthermore, in the embodiment of the present application, the search engine and the content generation system may be located in different server clusters respectively, or in the same server cluster, and the embodiment of the present application does not impose any limitation on this.
[0076] It is understandable that the communication system 1000 may further include more devices. For example, the communication system 1000 may further include an electronic device 300. In addition to sending the search results and / or generated results to the electronic device 100, the server 200 may also send them to the electronic device 300 so that the electronic device 300 can also display them. The embodiment of the present application does not limit the number of devices included in the communication system 1000.
[0077] In order to better understand this solution, Figure 3A-Figure 3F Taking the scenario in which a user searches for movies through a browser application as an example, the relevant user interfaces involved on the electronic device 100 are introduced.
[0078] The browser application can be used to display information on the Internet and use a search engine to retrieve search results related to the keywords searched by the user from the information published on the Internet. In addition, in an embodiment of the present application, the browser application can also use a content generation system to generate results related to the keywords searched by the user.
[0079] Figure 3A An exemplary user interface 10 for a menu of applications on an electronic device 100 is shown.
[0080] like Figure 3AAs shown, the user interface 10 may include: a status bar 101, a time and weather indicator 102, and one or more application icons 103. Among them, the status bar 101 may include one or more signal strength indicators of mobile communication signals, one or more signal strength indicators of wireless high fidelity (wireless fidelity, WiFi) signals, a battery status indicator, and a time indicator. The time and weather indicator 102 can be used to indicate the current time and weather type. One or more application icons 103 can be used to display one or more application icons. Among them, one or more application icons 103 may include an application icon 103A. The application icon 103A can be used to trigger the opening of a browser application.
[0081] When the electronic device 100 detects a user operation on the application icon 103A, such as a click operation, in response to the operation, the electronic device 100 may open the browser application and display the following information: Figure 3B The user interface 20 shown is used to display the main interface of the browser application.
[0082] It is understandable that, in addition to opening the browser application through the user operation of the user acting on the application icon of the browser application, the electronic device 100 can also open the browser application through other interactive methods. For example, the electronic device 100 can detect the user operation of the user acting on the service card of the browser application and open the browser application. For another example, the electronic device 100 can detect the voice command of "open the browser" input by the user and open the browser application. The embodiment of the present application does not limit the interactive method of the electronic device 100 to open the browser application.
[0083] like Figure 3B As shown, the user interface 20 can be used to display multimedia information recommended by the browser application, and the multimedia information may include: news, entertainment, finance, military, novels, real estate, automobiles, videos and other types of information. The user interface 20 may include: a search box 201. The electronic device 100 can detect that the user enters keywords in the search box 201, and after further detecting the user operation of the user acting on the search option 201A in the search box 201, use the search engine to retrieve information, obtain one or more search results, and use the content generation system to generate content, and obtain one or more generated results.
[0084] For example, when the electronic device 100 detects that the user enters "movie XXX" in the search box 201 and acts on the user operation of the search option 201A, it triggers the use of the keyword "movie XXX" to perform information retrieval and content generation, and displays the search results obtained by the retrieval and the generated results on a screen such as Figure 3C In the user interface 30 shown.
[0085] It is understandable that, in addition to being the content input by the user, the keywords can also be the keywords recommended in the browser. For example, the browser application can display one or more recommended keywords, and the electronic device 100 can detect the user's selection operation on one of the keywords and use the keyword to perform information retrieval and content generation. Among them, the recommended one or more keywords can be keywords determined by the browser application based on the most popular topics at the moment, or keywords determined by the browser application based on the user's historical search records. The embodiment of the present application does not limit the source of the keywords.
[0086] In addition, it is understandable that Figure 3A-Figure 3F Taking the keyword "movie XXX" as an example, the search results obtained by the browser application and the generated results are described. In other embodiments of the present application, the keyword can also refer to other information, and the keyword can be information in formats other than text or pictures. The embodiments of the present application do not limit this.
[0087] In addition, in addition to triggering a search by entering a keyword in the browser, the electronic device 100 can also detect keywords input by user voice when displaying other pages, such as when displaying the desktop, trigger opening the browser, and use the keyword to search. The embodiment of the present application does not limit the way in which the electronic device 100 triggers a search.
[0088] like Figure 3C As shown, the user interface 30 may include: a search box 301, a generated result display bar 302, and a search result display bar 303. The search box 301 may be used to display the keywords input by the user, and the electronic device 100 may also detect that the user inputs a keyword to it, and use the keyword to perform information retrieval and content generation. The generated result display bar 302 may be used to display the generated results related to the keyword generated by the content generation system according to the keyword in the search box 301. The search result display bar 303 may be used to display one or more search results related to the keyword retrieved from the Internet by the search engine according to the keyword in the search box 301.
[0089] For example, see Figure 3CAs shown, the keyword displayed in the search box 301 is "movie XXX", and the generated results displayed in the generated result display column 302 include: "Movie XXX is directed by XXX and tells the story of XXXXXXXXXXXXXXXXXXXXXXXXXXX", and the search result display column 303 may include: search result 303A, search result 303B, and search result 303C. Search results 303A, search results 303B, and search results 303C can only be used to display part of the search results information, for example, display the title and part of the content excerpt of the search results. The electronic device 100 can detect the user operation performed by the user on it and display the detailed page of the search result 303A. Among them, the title displayed in the search result 303A is "Movie XXX-Rating 9.0", the title displayed in the search result 303B is "Movie XXX-Plot Introduction", and the title displayed in the search result 303C is "Movie XXX-Actor Introduction".
[0090] It is understandable that when the electronic device 100 retrieves a large number of search results using a search engine, the search results displayed by the electronic device 100 in the search result display bar 303 may be only part of the search results retrieved by the search engine. The electronic device 100 may detect the user's up and down sliding operation on the area where the search result display bar 303 is located, and update the search results displayed in the search result display bar 303. Alternatively, the search result display bar 303 may also include an option to switch between upper and lower pages, and the electronic device 100 may detect the user's operation on the option, and switch the search results displayed in different pages in the search result display bar 303.
[0091] In addition, it is understood that the embodiment of the present application does not limit the positions of the generated result display bar 302 and the search result display bar 303. For example, the generated result display bar 302 can be displayed below the search result display bar 303. For another example, the generated result display bar 302 can be displayed on the left side of the search result display bar 303.
[0092] In addition, optionally, the search results displayed in the search result display column 303 can be arranged in order according to the relevance to the keyword. For example, in the order from top to bottom, the relevance of the search results gradually decreases. In this case, Figure 3C Among the multiple search results shown, the relevance of search result 303A is greater than the relevance of search result 303B, which is greater than the relevance of search result 303C.
[0093] When the electronic device 100 detects a user operation on the user interface 30, such as a long press operation on the search result display bar 303, in response to the operation, the electronic device 100 can trigger entry into an editing mode of the search result display bar 303. In this editing mode, the electronic device 100 can detect the user's selection operation on one or more search results displayed in the search result display bar 303, and select the search result.
[0094] It is understandable that the electronic device 100 may also enter the editing mode of the search result display bar 303 in other ways. For example, the search result display bar 303 may also include an editing icon, and the electronic device 100 may detect an operation on the editing icon, triggering the electronic device 100 to enter the editing mode of the search result display bar 303. Alternatively, when the electronic device 100 displays the search result display bar 303, the search result display bar 303 may always be in the editing mode.
[0095] like Figure 3D As shown, when the search result display bar 303 is in the editing mode, each search result displayed in the search result display bar 303 may be displayed with a selection icon 303D, and the selection icon 303D may be used to indicate whether the corresponding search result is selected.
[0096] Exemplarily, when the search result is selected, the selection icon 303D may be displayed as the corresponding selection icon 303D in the search result 303A, and when the search result is not selected, the selection icon 303D may be displayed as the corresponding selection icon 303D in the search result 303B.
[0097] Among them, see Figure 3D , the electronic device 100 can detect a user operation, such as a click operation, acting on the corresponding selection icon 303D in the search result 303A, and select the search result 303A in response to the operation. Further, if the electronic device 100 detects a user operation on the corresponding selection icon 303D in the selected search result 303A again, the electronic device 100 can deselect the search result 303A.
[0098] like Figure 3E As shown, search results 303A and search results 303C are selected search results. In addition, the user interface 30 also includes: a confirmation option 303E. The confirmation option 303E can be used to trigger the electronic device 100 to regenerate the generated results related to the keywords displayed in the search box 301 using the selected search results.
[0099] For example, Figure 3EAs shown, when the electronic device 100 detects a user operation acting on the confirmation option 303E, such as a click operation, in response to the operation, the electronic device 100 can regenerate the generated results related to the keywords displayed in the search box 301 based on the search results 303A, the search results 303C and the keywords displayed in the search box 301, and update the generated results displayed in the generated result display column 302 to the following: Figure 3F The generation result is displayed in the generation result display column 302 shown in (a) or (b).
[0100] It is understandable that, in addition to Figure 3D and Figure 3E In addition to the user checking the search results to select the search results, the electronic device 100 can also directly use the search results displayed in the search results display bar 303 as the search results selected by the user. In this case, the user can update the search results displayed in the search results display bar 303 by sliding the search results display bar 303 up and down, so that the electronic device 100 can use all the displayed search results to optimize the search results. The embodiment of the present application does not limit the interactive method of the user selecting the search results.
[0101] like Figure 3F As shown in (a) in the figure, the generated result display column 302 includes text and pictures, wherein the text part includes: "The movie XXX is directed by XXX, the movie score is 9.0, it tells the story of XXXXXXXXXXXXXXXXXXXXXXXX, and the following actors participated in the performance", and the picture part includes images of multiple actors.
[0102] Combination Figure 3E It can be seen that Figure 3F The content of the generated result display column 302 shown in (a) includes the content from Figure 3E The contents in search results 303A and 303C are shown.
[0103] In addition, in addition to updating the content in the generated result display column 302 , the electronic device 100 may also adjust the search results displayed in the search result display column 303 .
[0104] In some implementations, the electronic device 100 may adjust the position of the search results displayed in the search result display bar 303, for example, placing the search results used to update the generated results in the front. Figure 3FIn (a), the search result display bar 303 includes search results 303A and search results 303C, which are search results selected by the user for updating the generated results. In this way, in addition to being able to view the updated generated results, the user can also preferentially view the search results used to update the generated results, which is convenient for the user to quickly view the content he wants to know.
[0105] Further optionally, the search results used to update the generated results and the search results not used to update the generated results displayed in the search result display bar 303 may have different display effects. Figure 3F The title text of the search results 303A and 303C shown in (a) can be displayed in bold or highlighted, etc.
[0106] In other embodiments, the electronic device 100 can update the search results in the search results display bar 303 to search results that were not displayed before the generated results were adjusted, or search results that were not selected when the generated results were adjusted. In this way, the user can view more search results and obtain more information related to the keywords input by the user without refreshing the search results in the search results display bar 303. The user also does not need to see repeated content in the user interface, which increases the amount of available information displayed on the page. In addition, when the user further selects a search result from the search results display bar 303 for updating the generated results, the updated search results in the search results display bar 303 can make it more convenient for the user to select a search result from it to update the generated results.
[0107] It is understandable that the updated search result is still the electronic device 100 detecting Figure 3B After the user operates the search option 201A, the search results retrieved by the search engine are only due to Figure 3C The display area of the search result display column 303 is limited and is not displayed to the user.
[0108] like Figure 3F As shown in (b) of FIG. 1 , the generated result display column 302 includes Figure 3FIn addition to the generated results displayed in (a), it may also include: identification 302A, identification 302B, identification source 302C. Among them, identification 302A and identification 302B are used to mark that the content in the generated result display column 302 comes from the search results. Exemplarily, identification 302A and identification 302B can be located in the upper right corner of the marked content. Identification source 302C is used to display the source of the content marked by identification 302A and identification 302B. The electronic device 100 can also detect user operations used to act on any source in the identification source 302C, and switch to the details page of the search results corresponding to the source. Exemplarily, the source can be displayed as a Uniform Resource Locator (URL).
[0109] The logo 302A is used to indicate that the "movie rating 9.0" is derived from "http: / / xxxxxxxx_1" displayed in the logo source 302C. For example, "http: / / xxxxxxxx_1" may refer to Figure 3E The URL corresponding to the search result 303A shown. The logo 302B is used to indicate that the relevant information of the actors participating in the movie comes from "http: / / xxxxxxxxxxxx_2" displayed in the logo source 302C. For example, "http: / / xxxxxxxxxxxx_2" can refer to Figure 3E The URL corresponding to the search result 303C is shown.
[0110] Furthermore, the electronic device 100 can detect a user operation, such as a click operation, performed by the user on a URL in the identification source 302C, and highlight the search result corresponding to the URL in the search result display bar 303. For example, if the electronic device 100 detects a click operation performed by the user on "http: / / xxxxxxxx_1", the electronic device 100 can add a dark background to the search result 303A, so that the user can quickly view the search result corresponding to the identification source 302C from the search result display bar 303. Alternatively, the electronic device 100 can detect a user operation, such as a click operation, performed by the user on a URL in the identification source 302C, and switch the content in the user interface 30 to the detail page of the search result corresponding to the URL.
[0111] It can be seen that when the electronic device 100 displays the adjusted generated results according to the search results selected by the user, it can also mark which part of the generated results comes from the search results selected by the user, and which search results the user selected. In addition, the user can also link to the details page of the search results through the source, so that the user can clearly understand the source of the generated results and understand the content of the user's search in more detail.
[0112] It is understandable that, in addition to displaying the URL of the search result, the identification source 302C may also be displayed as an icon, picture, text, etc. corresponding to the search result, and the identification may be derived from the content included in the search result. The embodiment of the present application does not limit the source form displayed by the identification source 302C.
[0113] In addition, in addition to Figure 3F In addition to displaying an identifier in the upper right corner of a sub-content in the generated content displayed in the generated result display bar 302 to reflect the search result from which the sub-content comes, the relevant information of the search result from which the sub-content comes can also be displayed when a user clicks or hovers the mouse over the sub-content, such as the URL of the search result and the content in the search result. For example, the adjusted generated result displayed by the electronic device 100 can refer to Figure 3F The generated result is shown in (a), wherein if the electronic device 100 detects that the mouse is hovering over the range where the "rating 9.0" displayed in the generated result display bar 302 is located, the electronic device 100 can display a content excerpt of the search result from which the "rating 9.0" comes near the "rating 9.0".
[0114] In addition, the generated result display column 302 may not include the identification source 302C. The content identified by the identification 302A and the content identified by the identification 302B may directly have a hyperlink to link to the detail page of the search result of its source. For example, the electronic device 100 may detect a user operation on "9.0", link to the search result of the movie rating source, and trigger the display of Figure 3C The detail page of search result 303A is shown.
[0115] In some embodiments, see Figure 3F In (b), when the electronic device 100 detects a user operation, such as a click operation, acting on one of the identified sources 302C, the electronic device 100 can highlight the search results corresponding to the source in the search result display bar 303. Exemplarily, if the electronic device 100 detects a user operation, such as a click operation, acting on "http: / / xxxxxxxx_1" displayed in the identified source 302C, in response to the operation, the electronic device 100 can highlight the search result 303A displayed in the search result display bar 303. In this way, the user can view the relevant information of the search result 303A in the search result display bar 303, and the electronic device 100 can detect the user operation of the user acting on the search result 303A and switch to the detailed page of the search result 303A so that the user can understand the search result 303A in more detail.
[0116] It is understandable that in Figure 3F In the user interface 30 shown, the electronic device 100 can further detect the user's selection operation on the search results in the search result display column 303, and continue to adjust the generated results displayed in the generated result display column 302 using the search results selected by the user, and so on.
[0117] from Figure 3A-Figure 3F It can be seen that when users use a browser to search for keywords, in addition to being able to search for information related to the keyword on the Internet, they can also view the content "answered" by the content generation system based on the keyword. In addition, users can also use the information searched from the Internet to optimize the content "answered" by the content generation system, enhance the completeness and timeliness of the content, etc.
[0118] In addition, in the embodiment of the present application, in addition to being present in the electronic device 100 in the form of a browser application for use by the user, the search method can also be located in the application in the form of an application plug-in. For example, the browser mentioned above may refer to an application plug-in in an instant messaging application. It can also be understood that any application with a search function in the electronic device 100 can use the search method, that is, when the user uses the search function of the application to search for keywords, the application can display the search results and generate results, and update the generated results based on the user's operation to adjust the generated results. The embodiment of the present application does not limit the application scenario of the search method.
[0119] Figure 4 A flow chart of a search method provided in an embodiment of the present application is shown.
[0120] like Figure 4 As shown, the search method involves interaction between the electronic device 100 and the server 200. Specifically, the search method may include:
[0121] S101. The electronic device 100 detects a user's search operation.
[0122] The electronic device 100 may refer to a device on the terminal side, which is used to directly provide services to users. For example, the electronic device 100 may refer to a mobile phone, a tablet, a computer, and the like.
[0123] The search operation may include an operation of a user inputting a keyword and an operation of confirming the search. The keyword is information used by the user when searching. The electronic device 100 may use the keyword to search for information related to the keyword from the Internet, and may use the keyword to generate information related to the keyword. The keyword may include information in the format of text, pictures, etc., and the embodiment of the present application does not limit the format of the keyword.
[0124] Before the electronic device 100 detects the user's search operation, the electronic device 100 may also display a first user interface, where the electronic device 100 may detect the user inputting keywords and triggering the search operation. The first user interface may refer to the operation of a browser application, which may use the content generation function of the content generation system to obtain generation results related to the keywords input by the user, and may also use the search function of the search engine to obtain search results related to the keywords input by the user.
[0125] Exemplarily, the first user interface may refer to Figure 3B As shown in the user interface 20, the search operation may include Figure 3B In the user operation shown acting on the search option 201A, the keyword may refer to the “movie XXX” displayed in the search box 201 .
[0126] In the embodiment of the present application, the search operation may refer to a first operation of searching for a first keyword.
[0127] S102 . The electronic device 100 sends a search request to the server 200 .
[0128] Accordingly, the server 200 receives the search request sent by the electronic device 100 .
[0129] The server 200 may refer to a device on the cloud side. The server 200 may refer to one or more servers or one or more server clusters. The server 200 may include two modules, a content generation system and a search engine. The content generation system and the search engine may be in the same device or in different devices.
[0130] The content generation system can use artificial intelligence to generate content (AIGC) technology, and through the content generation model, generate various types of text, images, audio, video and other generation results according to the keywords given by the user. The content generation model is trained using a large amount of data, including text, images, audio, video and so on.
[0131] Search engines can use a variety of technologies, such as web crawler technology, retrieval ranking technology, web page processing technology, big data processing technology, natural language processing technology, etc., to retrieve information that is highly relevant to the keywords used by users when searching from the large amount of information published on the Internet.
[0132] The search request may include information such as keywords input by the user.
[0133] Since the server 200 includes a content generation system and a search engine, step S102 can be decomposed into S1021 and S1022:
[0134] S1021. The electronic device 100 sends a search request to the content generating system.
[0135] S1022. The electronic device 100 sends a search request to the search engine.
[0136] It can be understood that if the content generation system and the search engine are located in different devices, then when the electronic device 100 sends a search request to the server 200, it can execute steps S1021 and S1022 to send a search request to the content generation system and the search engine located in different devices respectively; if the content generation system and the search engine are located in the same device, when the electronic device 100 sends a search request to the server 200, it can send only one search request.
[0137] S103. The server 200 determines the search results and the first generated result according to the search request.
[0138] Since the server 200 includes a content generation system and a search engine, step S103 can be decomposed into S1031 and S1032:
[0139] S1031. The content generation system generates a first generation result according to the search request.
[0140] Specifically, by inputting keywords into the content generation model, information sequences in the formats of text, pictures, audio, video, etc. related to the keywords can be obtained. Then, these sequences can be organized into language using natural language processing technology to obtain the first generation result that resembles human natural language.
[0141] S1032. The search engine determines search results according to the search request.
[0142] Specifically, the search engine can use web crawler technology to retrieve one or more search results related to the keyword from the Internet, and use search ranking technology to rank the relevance of the retrieved one or more search results. For example, the higher the ranking of the search results, the higher the relevance to the keyword, and the lower the ranking of the search results, the lower the relevance to the keyword.
[0143] S104 . The server 200 sends the search results and the first generated result to the electronic device 100 .
[0144] Accordingly, the electronic device 100 receives the search results and the first generated result sent by the server 200 .
[0145] Since the server 200 includes a content generation system and a search engine, step S104 can be decomposed into S1041 and S1042:
[0146] S1041. The content generation system sends a first generation result to the electronic device 100.
[0147] S1042. The search engine sends search results to the electronic device 100.
[0148] It is understandable that if the content generation system and the search engine are located in one device, when the server 200 sends the search results and the first generation results to the electronic device 100, it can send a message to the electronic device 100 once and send the first generation results and the search results to the electronic device 100 at the same time. If the content generation system and the search engine are located in different devices, the content generation system and the search engine can send the first generation results and the search results to the electronic device 100 separately.
[0149] Furthermore, the search results sent by the server 200 may be all or part of the search results retrieved by the server 200 using the first keyword.
[0150] In the case where the search results sent by the server 200 are part of the search results retrieved by the server 200, when the server 200 detects the operation sent by the electronic device 100 to continue to obtain the search results, the server 200 can continue to send other search results retrieved to the electronic device 100. In this way, the number of search results sent by the server 200 at one time can be reduced, and the electronic device 100 can only obtain the number of search results that can be displayed at one time, thereby speeding up the speed at which the electronic device 100 displays the search results.
[0151] In the embodiment of the present application, the search result sent by the server 200 may also be referred to as the first search result.
[0152] In addition, it should be noted that when the server 200 sends the search results and the first generated results, in addition to sending the search results and the first generated results themselves, it can also send indication information (such as the first indication information) for indicating the search results and the first generated results. This is because the search results and the generated results may contain, for example, information with a large amount of data such as video and audio. The server 200 can directly send the URL of these data for the electronic device 100 to parse locally, so that the server 200 does not need to directly send the data itself, thereby reducing the amount of data sent by the server 200 and speeding up the speed at which the server 200 sends data.
[0153] S105. The electronic device 100 displays the first generated result and the search result.
[0154] After the electronic device 100 receives the first generated result and the search results, the electronic device 100 may display the first generated result and the search results in a second user interface.
[0155] It is understandable that, due to the limited display area of the electronic device 100, the search results displayed by the electronic device 100 may be a part of the search results received by the electronic device 100. Further, when the electronic device 100 detects that the user continues to view other search results, the displayed search results are updated to another part of the search results received by the electronic device 100.
[0156] Exemplarily, the second user interface may refer to Figure 3C The user interface 30 shown. The first generated result may refer to Figure 3C The content in the generated result display column 302 shown in the figure, the search result may refer to Figure 3C The content in the search result display column 303 is shown.
[0157] Furthermore, if the electronic device 100 displays multiple search results, the multiple search results can be arranged in descending order according to the relevance to the keyword. Figure 3C The search results displayed in the search result display column 303 are respectively: search result 303A, search result 303B, and search result 303C in descending order of relevance.
[0158] In the embodiment of the present application, the search result displayed by the electronic device 100 may also be referred to as the first search result.
[0159] S106. The electronic device 100 detects the user's operation of adjusting the generated result.
[0160] The operation may refer to a touch operation or a voice command, and the embodiment of the present application does not limit the form of the operation.
[0161] Exemplarily, the operation may include: Figure 3E The user operation shown serves to confirm option 303E.
[0162] In the embodiment of the present application, this operation may also be referred to as a second operation.
[0163] S107 . The electronic device 100 sends an adjustment request to the server 200 .
[0164] Accordingly, the server 200 receives the adjustment request sent by the electronic device 100. Furthermore, the content generation system in the server 200 may receive the adjustment request sent by the electronic device 100.
[0165] The adjustment request may be used to trigger the content generation system to regenerate a second generation result through the content generation model according to the search result keywords and the first generation result.
[0166] In some implementations, the adjustment request may include search results, first generated results, search requests, and the like. Figure 3E Taking the search results 303A and 303B as an example to adjust the generated results, the adjustment request may include the following request body:
[0167] {
[0168] "query": "movie XXX",
[0169] "candidates":[
[0170] {
[0171] "content":"XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
[0172] "domain":""
[0173] "md":""
[0174] "relevance_level": ""
[0175] "rich_content": ""
[0176] "site_category": ""
[0177] "siterank": ""
[0178] "title": "Movie XXX - Rating 9.0"
[0179] "url": "http: / / xxxxxxxx_1"
[0180] }
[0181] {
[0182] “content”: “[Picture] Actor A [Picture] Actor B [Picture] Actor C [Picture] Actor D”
[0183] "domain":""
[0184] "md":""
[0185] "relevance_level": ""
[0186] "rich_content": ""
[0187] "site_category": ""
[0188] "siterank": ""
[0189] "title": "Movie XXX-Actor Introduction"
[0190] "url": "http: / / xxxxxxxxxxxx_2"
[0191] } ]
[0193] "answer": "The movie XXX is directed by XXX and tells the story of XXXXXXXXXXXXXXXXXXXXXXXXX"
[0194] }
[0195] Among them, in the request body, "query" records the keywords searched by the user, and "candidates" is used to indicate the search result set, which may include one or more search results. Among them, in the above request, "candidates" includes two search results. A search result may include fields: "content", "domain", "md", "relevance_level", "rich_content", "site_category", "siterank", "title", "url", etc. Among them, "content" is used to indicate the body content of the search result, "domain" is used to indicate the source library of the search result, "title" is used to indicate the title of the search result, and "url" is used to indicate the URL of the details page of the search result. "answer" is used to indicate the generated result.
[0196] Exemplarily, the request body may be transmitted to the server 200 in the form of JSON.
[0197] It is understandable that, in addition to the information listed in the request body, the adjustment request may also include other content, such as language, intent, and prompt related to the model. Among them, language refers to the language type involved in the keyword, including Chinese, English, Japanese, etc., and intent refers to the category to which the keyword belongs, which is identified by the electronic device 100 based on the keyword input by the user, including: entertainment, sports, games, etc. search categories. Prompt is a supplementary prompt for the keyword added by the electronic device 100 based on the keyword input by the user. The supplementary prompt can be used to enable the content generation system to output the information sequence related to the keyword more accurately based on the keyword. The embodiment of the present application does not limit the content contained in the adjustment request.
[0198] S108. The server 200 generates a second generated result using one or more search results.
[0199] The server 200 may generate a second generated result using one or more search results through a content generation system.
[0200] In a specific implementation, the server 200 can input the one or more search results, keywords, and the first generated results into the content generation model, thereby outputting an information sequence in the format of text, pictures, audio, video, etc. related to the keyword, and then use natural language processing technology to organize these sequences to obtain a second generated result that sounds like human natural language.
[0201] In addition, one or more search results used to generate the second generated result may exist in the following two situations:
[0202] 1) The one or more search results are search results determined by the server 200
[0203] The one or more search results may be all search results retrieved by the search engine, or may be the first N search results retrieved by the search engine, which is not limited in the present embodiment.
[0204] In this case, the search engine can directly send the search results obtained by its retrieval to the content generation system so that the content generation system can adjust the generated results using these search results.
[0205] 2) The one or more search results are search results determined by the electronic device 100
[0206] The one or more search results may be search results selected by the user from the search results displayed by the electronic device 100, or may be the top N search results selected by default by the electronic device 100. This embodiment of the present application does not limit this.
[0207] In this case, the adjustment request sent by the electronic device 100 to the server 200 may include the one or more search results or indication information of the one or more search results, such as the identifier of the search result and the like.
[0208] If the one or more search results are search results selected by the user, before the electronic device 100 detects the user's operation of adjusting the generated results, that is, before executing step S106, the electronic device 100 can also detect the user's selection operation on one or more search results in the displayed search request, and select one or more search results. In this way, the content generation system can use the search results selected by the user to adjust the generated results generated by the content generation model, thereby improving the authority of the generated results.
[0209] Exemplarily, the selection operation acting on the search results may include: Figure 3D The user operation shown acts on selecting icon 303D.
[0210] In addition, since the second generated result is determined based on one or more search results, the second generated result may include: text content and one or more identifiers. One of the identifiers corresponds to a sub-content in the text content, and the one identifier is used to indicate the search result of the corresponding sub-content source.
[0211] Furthermore, the second generated content may also include: a URL corresponding to the search result of the sub-content source. In this way, when the electronic device 100 displays the second generated content, the URL of the search result of the source in the second generated content may be directly displayed, so that the user can directly view the detailed content of the search result through the URL.
[0212] Optionally, the server 200 can also collect the search results selected by the user, and use the collected search results to update the content generation model, so that the results generated by the content generation model are more accurate. In addition, since the content generation model is stored on the cloud side, different users can adjust the content generation model on the cloud side when triggering the adjustment of the generated results, so that the content generation model can be continuously updated.
[0213] In order to better understand the process of the content generation system generating the second generation result, Figure 5 A schematic diagram of the structure of a content generation system provided in an embodiment of the present application is shown.
[0214] like Figure 5 As shown, the content generation system may include two major parts: a data module and a model module.
[0215] The data module may include: a storage module and a processing module. The storage module is used to store search results. The processing module is used to implement data preprocessing of search results, convert search results into vectors, and pass them into the model module. And obtain the results generated by the model module, match the results with the search results, and perform data refinement, such as deduplication, verification, etc.
[0216] The model module may include: a content generation model part, a language model generation part, a language task model part and a search result model part. Among them, the content generation model part includes a content generation model, which is used to output an information sequence according to keywords. The language model generation part is used to organize the information sequence in language to obtain a generation result, so that the generation result is like a natural language of a person. The language task model part is used to further enhance the language organization ability, so that the content generation model has better generation ability and can handle new language tasks, such as translation, question and answer, etc. The search result model part is used to adjust the generation result in combination with the search results.
[0217] In a specific implementation, after the content generation model obtains one or more search results for adjusting the generated results, the following steps are mainly included:
[0218] Step 1: Convert the one or more search results into a vector
[0219] Specifically, after obtaining the one or more search results, the content generation system may pass them to a processing module for data processing and convert them into vectors that can be processed by the content generation model.
[0220] In addition, the content generation model may also transfer the one or more search results to the storage module for storage.
[0221] Step 2: Input keywords, vectors, and the first generated results into the content generation model and output the information sequence
[0222] Step 3: Organize the information sequence to obtain the generated result
[0223] Specifically, the content generation system can organize information sequences into generation results through a language model generation model.
[0224] In addition, the search result model part can be used to further optimize the generated results in combination with the search results.
[0225] Step 4: Match the generated results with the search results and further process the generated results
[0226] Specifically, the content generation system can return the generation result to the processing module, match the generation result with the search result, determine the correspondence between the generation result and the search result, that is, determine the content in the generation result that originates from the search result, so that the user can view the source search result through the displayed generation result.
[0227] It is understandable that step 4 is an optional step, and the content generation system can directly send the generation result obtained in step 3 as the second generation result to the electronic device 100. In this case, the second generation result displayed by the electronic device 100 can be referred to as Figure 3F Alternatively, the content generation system may also send the generated result obtained by further processing in step 4 as the second generated result to the electronic device 100. In this case, the second generated result displayed by the electronic device 100 may refer to Figure 3F (b) in .
[0228] It can be seen that the content generation model is trained using certain data. These data are collected before the user uses the first keyword to search, and are less timely. When adjusting the generated results, the search results obtained after the user searches with the first keyword are re-input into the content generation model, making the generated results more accurate and more timely.
[0229] S109 . The server 200 sends the second generation result to the electronic device 100 .
[0230] Specifically, the server 200 may send the second generation result to the electronic device 100 through the content generation system. Accordingly, the electronic device 100 receives the second generation result sent by the server 200.
[0231] For example, Figure 3F Taking the generation result shown in (b) as an example, when the server 200 sends the second generation result to the electronic device 100, the content sent may include:
[0232] {
[0233] "query": "movie XXX"
[0234] "answer": "The movie XXX is directed by XXX, with a movie rating of 9.0. It tells the story of XXXXXXXXXXXXXXXXXXXXXXXXX and stars the following actors: [Picture] Actor A [Picture] Actor B [Picture] Actor C [Picture] Actor D"
[0235] "aige_page"[
[0236] "http: / / xxxxxxxx_1",
[0237] "http: / / xxxxxxxxxxxx_2" ]
[0239] }
[0240] Among them, "query" records the keywords input by the user, "answer" records the generation result generated by the server 200, and "aige_page" records the website address corresponding to the search result used by the server 200 when adjusting the generation result.
[0241] It is understandable that if the second generated result contains information in multiple formats, for example, including video, picture, audio, text and other formats, the server 200 can send indication information of the second generated result in addition to directly sending the second generated result to the electronic device 100, and the electronic device 100 can obtain the second generated result through the indication information. For example, if the second generated result includes a text part and a video part, the server 200 can directly send the text part to the electronic device 100, and not directly send it to the video part, but send the URL corresponding to the video part to the electronic device 100. In this way, the amount of data transmitted can be reduced and the speed of data transmission can be accelerated. After receiving the URL, the electronic device 100 can parse and obtain the video corresponding to the URL by itself, and assemble to obtain the second generated result.
[0242] S110. The electronic device 100 displays the second generated result.
[0243] Specifically, the electronic device 100 may update the first generated result to the second generated result. In this way, the electronic device 100 may display the adjusted generated result, which is determined by further combining the search results retrieved by the search engine and is more complete and accurate than the generated result before the adjustment.
[0244] Furthermore, when displaying the second generated result, the electronic device 100 may also adjust the displayed search results.
[0245] The adjustment of the search results may include the following two situations:
[0246] 1) Adjust the front and back position relationship of the search results displayed by the electronic device 100
[0247] Specifically, the electronic device 100 may sort the search results used to update the generated results forward, so that the user can view the search results used to update the generated results more quickly.
[0248] In addition, in the search results displayed by the electronic device 100, the display effect of the search results used to update the generated results may be different from the display effect of the search results not used. The display effect includes but is not limited to color, size, position, transparency, brightness, etc. For example, compared with the unused search results, the text of the used search results may be displayed in bold or highlighted, etc.
[0249] 2) Cancel the search results displayed by the electronic device 100 before the update, or the search results selected by the user for updating the generated results
[0250] In this way, the user does not need to repeatedly view the search results that have been browsed, or repeatedly view the search results that the user has selected, thereby improving the utilization rate of the displayed content.
[0251] Exemplarily, the second generated result may refer to Figure 3F The content in the generated result display column 302 shown in FIG. 3 may refer to the updated search results. Figure 3F The content in the search result display column 303 is shown.
[0252] In addition, the adjusted search results may include search results that were not displayed by the electronic device 100 before the update generated results. It should be understood that these previously undisplayed search results are also search results obtained by the search engine based on the keyword search used by the user in step S101, and there may be the following situations:
[0253] 1) The search results are the search results retrieved by the server 200 in step S103, but this part of the search results is not sent to the electronic device 100 when the server 200 sends the first generated result.
[0254] In this case, the search results sent by the server 200 to the electronic device 100 in step S104 are only part of the search results retrieved by the server 200. When sending the second generated result to the electronic device 100, the server 200 may also send the updated search results or indication information of the updated search results to the electronic device 100.
[0255] 2) The search results are the search results sent by the server 200 to the electronic device 100 in step S104, but the search results displayed by the electronic device 100 in step S105 do not include this part of the search results
[0256] In this case, it means that the search results displayed by the electronic device 100 in step S105 are only part of the search results received by the electronic device 100. When displaying the second generated result, the electronic device 100 can directly update the displayed search results using the search results received by the electronic device 100.
[0257] 3) The search result is the search result retrieved by the server 200 using the keyword again
[0258] In this case, when adjusting the generated results, the server 200 can reuse the keyword in the search request received in step S102 to perform a search and re-obtain search results related to the keyword. In this way, when the server 200 sends the second generated results to the electronic device 100, the re-retrieved search results can be sent to the electronic device 100. In this way, the updated search results displayed by the electronic device 100 can be search results retrieved by re-using the keyword, which is more timely.
[0259] In general, the search method provided in the embodiment of the present application can optimize the generated results generated by the content generation system by using one or more search results that the user searches through the Internet, so that the user can obtain more timely generated results. Furthermore, by optimizing the generated results using the search results selected by the user, the user can obtain more inclined generated results, and the search that the user is interested in can be integrated into the generated results, so that the user can obtain the required information more accurately and conveniently, thereby improving the user's search experience.
[0260] Figure 6 A schematic diagram of the hardware structure of the electronic device 100 is shown.
[0261] The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a wearable device, an in-vehicle device, a smart home device and / or a smart city device. The embodiments of the present application do not impose any special restrictions on the specific type of the electronic device.
[0262] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0263] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0264] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0265] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0266] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0267] The charging management module 140 is used to receive charging input from a charger.
[0268] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160.
[0269] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0270] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0271] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0272] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0273] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0274] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
[0275] In some embodiments, the electronic device 100 can send a search request to the server 200 through the mobile communication module 150 or the wireless communication module 160, receive search results and generated results sent by the server 200, and send a request to adjust the generated results to the server 200, etc.
[0276] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0277] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.
[0278] In some embodiments, the display screen 194 may be used to display search results and generate results. Figure 3A-Figure 3F .
[0279] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
[0280] The ISP is used to process the data fed back by the camera 193. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
[0281] The camera 193 is used to capture still images or videos. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0282] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0283] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0284] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0285] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
[0286] The random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of the operating system or other running programs, and can also be used to store user and application data.
[0287] The non-volatile memory may also store executable programs and user and application data, etc., and may be loaded into the random access memory in advance for direct reading and writing by the processor 110 .
[0288] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external non-volatile memory.
[0289] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0290] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals.
[0291] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0292] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0293] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by approaching the microphone 170C with his mouth to input the sound signal into the microphone 170C.
[0294] The earphone jack 170D is used to connect a wired earphone.
[0295] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect a touch operation acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194.
[0296] In some embodiments, the electronic device 100 can detect a touch operation performed by a user on the touch sensor 180K to perform typing, and output keywords input by the user for searching on the display screen 194 .
[0297] The buttons 190 include a power button, a volume button, etc. The electronic device 100 can receive a button input and generate a key signal input related to user settings and function control of the electronic device 100 .
[0298] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
[0299] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.
[0300] The SIM card interface 195 is used to connect a SIM card.
[0301] The electronic device may be a portable terminal device equipped with iOS, Android, Microsoft or other operating systems, such as a mobile phone, a tablet computer, a wearable device, etc., and may also be a non-portable terminal device such as a laptop computer with a touch-sensitive surface or a touch panel, a desktop computer with a touch-sensitive surface or a touch panel. The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present invention takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
[0302] Figure 7 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0303] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
[0304] The application layer can include a series of application packages.
[0305] like Figure 7 As shown, the application package may include applications such as browser, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
[0306] The browser is used to display information on the Internet, and use a search engine to retrieve search results related to the keywords searched by the user from the information published on the Internet. In addition, in an embodiment of the present application, the browser application can also use a content generation system to generate generated results related to the keywords searched by the user. In addition, the browser can also detect the user's selection operation on one or more search results, use the one or more search results to adjust the generated results, and obtain and display the adjusted generated results.
[0307] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0308] like Figure 7 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0309] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0310] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0311] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0312] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
[0313] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0314] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0315] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0316] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0317] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0318] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0319] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0320] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0321] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0322] A 2D graphics engine is a drawing engine for 2D drawings.
[0323] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0324] Figure 8 A schematic diagram of the hardware structure of the server 200 provided in an embodiment of the present application.
[0325] like Figure 8 As shown, the server 200 may include: one or more processors 201, a memory 202, a communication interface 203, a transmitter 205, a receiver 206, a coupler 207 and an antenna 208. These components may be connected via a bus 204 or other means. Figure 8 Take bus connection as an example.
[0326] The communication interface 203 can be used for the server 200 and other communication devices, such as the electronic device 100. Specifically, the communication interface 203 can be a 3G communication interface, a long-term evolution (LTE) (4G) communication interface, a 5G communication interface, a WLAN communication interface, a WAN communication interface, etc. Not limited to a wireless communication interface, the server 200 can also be configured with a wired communication interface 203 to support wired communication, for example, the backhaul link between the server 200 and other servers can be a wired communication connection.
[0327] In some embodiments of the present application, the transmitter 205 and the receiver 206 can be regarded as a wireless modem. The transmitter 205 can be used to transmit and process the signal output by the processor 201. The receiver 206 can be used to receive the signal. In the server 200, the number of the transmitter 205 and the receiver 206 can be one or more. The antenna 208 can be used to convert the electromagnetic energy in the transmission line into electromagnetic waves in the free space, or to convert the electromagnetic waves in the free space into electromagnetic energy in the transmission line. The coupler 207 can be used to divide the mobile communication signal into multiple paths and distribute it to multiple receivers 206. It can be understood that the antenna 208 of the server 200 can be implemented as a large-scale antenna array.
[0328] The memory 202 is coupled to the processor 201 and is used to store various software programs and / or multiple sets of instructions. Specifically, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices.
[0329] The memory 202 can store an operating system (hereinafter referred to as system), such as an embedded operating system such as uCOS, VxWorks, or RTLinux.
[0330] In some embodiments, the processor 201 may be used to retrieve search results related to the keyword from the Internet based on the keyword in the search request, and to generate a generated result related to the keyword based on the keyword, and to adjust the generated result based on the search result, etc. The transmitter 205 may be used to send the search results and the generated result. The receiver 206 may be used to receive the search request and the adjustment request. The memory 202 may be used to store the search results and the generated result.
[0331] Need to explain, Figure 8 The server 200 shown is only one implementation of the embodiment of the present application. In actual applications, the server 200 may also include more or fewer components, which is not limited here.
[0332] Fig. 9 A schematic diagram of the structure of a terminal-side device 300 provided in an embodiment of the present application.
[0333] like Fig. 9 As shown, the terminal-side device 300 may include: an input module 301 , a display module 302 , a storage module 303 , and a communication module 304 .
[0334] in:
[0335] The input module 301 may be used to detect a first operation of searching for a first keyword, and a second operation of optimizing a second generated result.
[0336] The display module 302 can be used to display the first search result and the first generated result, wherein the first search result is all or part of the search result searched using the first keyword, and the first generated result is the result obtained after the first keyword is input into the content generation model. In addition, the display module 302 can also be used to update the first generated result to a second generated result, which is the result obtained after one or more search results in the first search result, the first keyword and the first generated result are input into the content generation model.
[0337] The storage module 303 may be configured to store search results obtained by using the first keyword.
[0338] The communication module 304 can be used to send a search request containing a first keyword, and an adjustment request, to obtain a first search result, a first generated result, or indication information indicating the first search result and the first generated result, and a second generated result or indication information of the second generated result, etc.
[0339] It can be understood that in the embodiment of the present application, the terminal side device 300 may refer to the electronic device 100 mentioned above, and the terminal side device 300 may also include more or fewer modules. The modules included in the terminal side device 300 can also be used to perform other functions. For details, please refer to the above content.
[0340] Fig.10 A schematic diagram of the structure of a cloud-side device 400 provided in an embodiment of the present application.
[0341] like Fig.10 As shown, the cloud-side device 400 may include a computing module 401, a storage module 402, and a communication module 403. Among them:
[0342] The calculation module 401 may be used to determine a first search result and a first generated result, wherein the first search result is all or part of the search results searched by the calculation module 401 using the first keyword, and the first generated result is the result obtained after the calculation module 401 inputs the first keyword into the content generation model. In addition, the calculation module 401 may also input one or more search results in the first search result, the first keyword, and the first generated result into the content generation model to obtain a second generated result.
[0343] The storage module 402 may be used to store the content generation model, as well as all or part of the search results obtained by searching using the first keyword, the first generation result determined using the content generation model, the second generation result, and the like.
[0344] The communication module 403 can be used to receive a search request containing a first keyword, and an adjustment request, send a first search result, a first generated result, or indication information indicating the first search result and the first generated result, as well as a second generated result or indication information of the second generated result, etc.
[0345] It can be understood that in the embodiment of the present application, the cloud-side device 400 may refer to the server 200 mentioned above, and the cloud-side device 400 may also include more or fewer modules. The modules included in the cloud-side device 400 can also be used to perform other functions. For details, please refer to the above content.
[0346] It should be understood that each step in the above method embodiment can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.
[0347] The present application also provides an electronic device, which may include: a memory and a processor. The memory may be used to store a computer program; the processor may be used to call the computer program in the memory, so that the electronic device executes the method executed by the electronic device 100 or the server 200 in any of the above embodiments.
[0348] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the electronic device 100 or the server 200 in any of the above embodiments.
[0349] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.
[0350] The chip system may be composed of the chip, or may include the chip and other discrete devices.
[0351] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.
[0352] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.
[0353] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.
[0354] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which, when executed, enables a computer to execute a method executed by any one of the electronic device 100 or the server 200 in any of the above-mentioned embodiments.
[0355] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by any one of the electronic device 100 or the server 200 in any of the above embodiments.
[0356] It should be understood that the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (digitalsignal processor, DSP), an application specific integrated circuit (AP 800plication specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined to perform. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0357] In addition, an embodiment of the present application further provides a device. The device may be a component or a module, and the device may include one or more processors and a memory connected to each other. The memory is used to store a computer program. When the computer program is executed by one or more processors, the device executes the method in each of the above method embodiments.
[0358] Among them, the device, computer-readable storage medium, computer program product or chip provided in the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here.
[0359] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.
[0360] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state disk (SSD)), etc.
[0361] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.
[0362] In short, the above description is only an embodiment of the technical solution of the present invention, and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.
Claims
1. A search method, characterized in that: The method comprises: The electronic device detects a first operation of searching for a first keyword; The electronic device displays a first search result and a first generated result, wherein the first search result is all or part of the search results searched using the first keyword, and the first generated result is a result obtained after the first keyword is input into a content generation model; The electronic device detects a second operation; The electronic device updates the first generated result to a second generated result, where the second generated result is a result obtained after inputting one or more search results in the first search result, the first keyword, and the first generated result into the content generation model.
2. The method according to claim 1, characterized in that Before the electronic device detects the second operation, the method further includes: The electronic device detects a selection operation on the one or more search results in the first search results.
3. The method according to claim 1 or 2, characterized in that: After the electronic device detects the second operation, the method further includes: The electronic device adjusts the positions of the search results in the first search results, wherein after the adjustment, the one or more search results are located in front of the search results other than the one or more search results in the first search results.
4. The method according to any one of claims 1 to 3, characterized in that: The second generated result includes: main text content and one or more identifiers, one identifier corresponds to a sub-content in the main text content, and one identifier is used to indicate that the corresponding sub-content comes from a search result.
5. The method according to claim 4, characterized in that The second generated result also includes: a uniform resource locator URL corresponding to the search result of the sub-content source.
6. The method according to any one of claims 1 to 5, characterized in that: After the electronic device detects a first operation of searching for a first keyword and before displaying a first search result and a first generated result, the method further includes: The electronic device sends a search request, where the search request includes the first keyword; The electronic device receives the first search result and the first generated result, or first indication information, where the first indication information is used to indicate the first search result and the first generated result.
7. The method according to any one of claims 1 to 6, characterized in that: Before the electronic device updates the first generated result to a second generated result, the method further includes: The electronic device receives the second generation result or indication information of the second generation result.
8. The method according to claim 7, characterized in that The indication information of the second generation result includes: the first content in the second generation result, and a URL corresponding to the second content in the second generation result.
9. The method according to any one of claims 1 to 8, characterized in that: After the electronic device detects the second operation and before updating the first generated result to a second generated result, the method further includes: The electronic device sends an adjustment request.
10. The method according to claim 9, characterized in that The adjustment request includes: the one or more search results, or indication information of the one or more search results.
11. A search method, characterized in that: The method is applied to a server and an electronic device, and the method comprises: The electronic device detects a first operation of searching for a first keyword; The electronic device sends a search request to the server, where the search request includes the first keyword; The server determines a first search result and a first generated result, wherein the first search result is all or part of the search results searched by the server using the first keyword, and the first generated result is a result obtained by the server after inputting the first keyword into a content generation model; The server sends the first search result and the first generated result, or first indication information, to the electronic device, where the first indication information is used to indicate the first search result and the first generated result; The electronic device displays the first search result and the first generated result; The electronic device detects a second operation; The electronic device sends an adjustment request to the server; The server inputs one or more search results in the first search results, the first keyword, and the first generated result into the content generation model to obtain a second generated result; The server sends the second generation result or indication information of the second generation result to the electronic device; The electronic device updates the first generation result to the second generation result.
12. The method according to claim 11, characterized in that Before the electronic device detects the second operation, the method further includes: The electronic device detects a selection operation on the one or more search results in the first search results.
13. The method according to claim 12, characterized in that The adjustment request includes: the one or more search results or indication information of the one or more search results.
14. The method according to any one of claims 11 to 13, characterized in that: After the electronic device detects the second operation, the method further includes: The electronic device adjusts the positions of the search results in the first search results, wherein after the adjustment, the one or more search results are located in front of the search results other than the one or more search results in the first search results.
15. The method according to any one of claims 11 to 14, characterized in that: The second generated result includes: main text content and one or more identifiers, one identifier corresponds to a sub-content in the main text content, and one identifier is used to indicate that the corresponding sub-content comes from a search result.
16. The method according to claim 15, characterized in that The second generated result also includes: a uniform resource locator URL corresponding to the search result of the sub-content source.
17. The method according to any one of claims 11 to 16, characterized in that: The indication information of the second generation result includes: the first content in the second generation result, and a URL corresponding to the second content in the second generation result.
18. A search method, characterized in that: The method comprises: The server receives a search request, wherein the search request includes a first keyword; The server determines a first search result and a first generated result, wherein the first search result is all or part of the search results searched by the server using the first keyword, and the first generated result is a result obtained by the server after inputting the first keyword into a content generation model; The server sends the first search result and the first generated result, or first indication information, where the first indication information is used to indicate the first search result and the first generated result; The server receives an adjustment request; The server inputs one or more search results in the first search results, the first keyword, and the first generated result into the content generation model to obtain a second generated result; The server sends the second generation result or indication information of the second generation result.
19. The method according to claim 18, characterized in that The adjustment request includes: the one or more search results, or indication information of the one or more search results.
20. The method according to claim 18 or 19, characterized in that The second generated result includes: main text content and one or more identifiers, one identifier corresponds to a sub-content in the main text content, and one identifier is used to indicate that the corresponding sub-content comes from a search result.
21. The method according to claim 20, characterized in that The second generated result also includes: a uniform resource locator URL corresponding to the search result of the sub-content source.
22. The method according to any one of claims 18 to 21, characterized in that: The indication information of the second generation result includes: the first content in the second generation result, and a URL corresponding to the second content in the second generation result.
23. An electronic device, characterized in that: The electronic device comprises a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method as claimed in any one of claims 1 to 10.
24. An electronic device, characterized in that: The electronic device comprises a memory, one or more processors, and one or more programs; when the one or more processors execute the one or more programs, the electronic device implements the method as described in any one of claims 18 to 22.
25. A communication system, characterized in that: The system comprises the electronic device as claimed in claim 23 and the electronic device as claimed in claim 24.
26. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method according to any one of claims 1 to 10.
Citation Information
Cited By
Result display method and device, equipment and storage medium
CN120386943A