Query method and device, equipment and storage medium
By presenting the response in different formats in the digital assistant page and calling interactive controls for processing applications, the problems of low information processing efficiency and incoherence of information query in real-time communication applications are solved, and the efficiency of user queries and the consistency of information query are achieved.
Patent Information
- Application Number
- CN202480002188.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-12-20
AI Technical Summary
The existing instant messaging applications have low information processing efficiency, incoherent access and operations of key information, and lack of intelligent mutual push mechanisms, resulting in users requiring multiple steps to operate during the chat process and unable to quickly obtain relevant information, affecting communication efficiency and coherence.
In the page of the digital assistant, the response is presented in different formats, and responds to the user's interactive requests, and calls different processing applications to process the associated query requests, providing fast interactive controls to improve query efficiency and the consistency of information query.
Through this method, user query efficiency is improved, information query becomes coherent and efficient, and users can quickly obtain the required information, improving communication efficiency during the chat process.
Smart Images

Figure CN119173867A_ABST
Abstract
Description
Technical Field
[0001] Example embodiments of the present disclosure generally relate to the field of data query, and more particularly, to a method, apparatus, device, and computer-readable storage medium for querying. Background Art
[0002] Machine learning technology has been widely used in a variety of technical fields, and digital assistants can be used to reply to user query requests. In the prior art, digital assistants are provided to assist users in various task processing requirements in different applications and scenarios. Digital assistants usually have intelligent dialogue and task processing capabilities. Digital assistants can be called in response to user input. For example, in the process of interacting with a digital assistant, the user enters an interactive message, and the digital assistant provides a reply message in response to the user input. Summary of the invention
[0003] In a first aspect of the present disclosure, a method for querying is provided. The method includes: in a first page of a first digital assistant, presenting a first answer in a first format, the first answer being generated based on a first query request; presenting a first part of the first answer in a second format; and in response to receiving a first interactive request for the first part, presenting a first interactive control, the first interactive control being used to call a processing application different from the first digital assistant to process a second query request associated with the first part.
[0004] In a second aspect of the present disclosure, a device for querying is provided. The device includes: a first answer presentation module, configured to present a first answer in a first page of a first digital assistant using a first format, the first answer being generated based on a first query request; a second answer presentation module, configured to present a first part of the first answer using a second format; and a first control presentation module, configured to present a first interactive control in response to receiving a first interactive request for the first part, the first interactive control being used to call a processing application different from the first digital assistant to process a second query request associated with the first part.
[0005] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device performs the method of the first aspect of the present disclosure.
[0006] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect of the present disclosure.
[0007] In a fifth aspect of the present disclosure, a computer program product is provided, comprising a computer program, wherein the computer program implements the method of the first aspect of the present disclosure when executed by a processor.
[0008] It should be understood that the contents described in this content section are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:
[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;
[0011] Figure 2 A flowchart showing a process for querying according to some embodiments of the present disclosure is shown;
[0012] Figure 3A and Figure 3B A schematic diagram showing an example page according to some embodiments of the present disclosure;
[0013] Figure 4 A block diagram showing an apparatus for querying according to some embodiments of the present disclosure; and
[0014] Figure 5 A block diagram of an electronic device is shown in which one or more embodiments of the present disclosure may be implemented. DETAILED DESCRIPTION
[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0016] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may also be included below.
[0017] Herein, unless explicitly stated, executing a step “in response to A” does not mean executing the step immediately after “A” but may include one or more intermediate steps.
[0018] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0019] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0020] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information, so that the user can independently choose whether to provide personal information to software or hardware such as electronic devices, applications, servers or storage media that execute operations of the technical solution of the present disclosure based on the prompt message.
[0021] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information is sent to the user in a manner such as a pop-up window, in which the prompt information can be presented in text form. In addition, the pop-up window can also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0022] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0023] As used herein, the term "model" can learn the association between the corresponding input and output from the training data, so that after the training is completed, the corresponding output can be generated for a given input. The generation of the model can be based on machine learning technology. Deep learning is a machine learning algorithm that processes inputs and provides corresponding outputs by using multi-layer processing units. A neural network model is an example of a model based on deep learning. In this article, "model" may also be referred to as "machine learning model", "learning model", "machine learning network" or "learning network", and these terms are used interchangeably in this article.
[0024] A "neural network" is a machine learning network based on deep learning. A neural network is capable of processing inputs and providing corresponding outputs, and typically includes an input layer and an output layer and one or more hidden layers between the input layer and the output layer. Neural networks used in deep learning applications typically include many hidden layers, thereby increasing the depth of the network. The layers of a neural network are connected in sequence so that the output of the previous layer is provided as input to the next layer, where the input layer receives the input of the neural network and the output of the output layer serves as the final output of the neural network. Each layer of a neural network includes one or more nodes (also called processing nodes or neurons), each of which processes input from the previous layer.
[0025] Generally, machine learning can be roughly divided into three stages, namely the training stage, the testing stage, and the application stage (also called the inference stage). In the training stage, a given model can be trained using a large amount of training data, and the parameter values are continuously updated iteratively until the model can obtain consistent inferences that meet the expected goals from the training data. Through training, the model can be considered to be able to learn the association between input and output (also called input-to-output mapping) from the training data. The parameter values of the trained model are determined. In the testing stage, the test input is applied to the trained model to test whether the model can provide the correct output, thereby determining the performance of the model. The testing stage can sometimes be integrated into the training stage. In the application or inference stage, the trained model can be used to process the actual model input based on the parameter values obtained through training to determine the corresponding model output.
[0026] Figure 1 A schematic diagram of an example environment 100 in which an embodiment of the present disclosure can be implemented is shown. The environment 100 involves a query platform 110. In this example environment 100, a processing application 112 and a digital assistant 114 may be integrated into the query platform 110 (it can be understood that although only one processing application 112 and one digital assistant 114 are shown in the figure, there may actually be multiple processing applications 112 and multiple digital assistants 114). The processing application 112 may be any appropriate application that can provide query services. The processing application 112 may also include a digital assistant. The digital assistant 114 may be created by the user 130, provided by the query platform 110 by default, or may be created by other users and shared with the user 130. The user 130 may interact with the processing application 112 and / or the digital assistant 114 via the query platform 110 and / or the attached device of the query platform 110.
[0027] The digital assistant 114 can be configured to have intelligent dialogue and task processing capabilities. The digital assistant 114 is provided to assist users in various task processing requirements in different applications and scenarios. In the interactive process with the digital assistant 114, the user inputs an interactive message, and the digital assistant 114 provides a response message in response to the user input. The interactive message may include messages in multimodal form, such as text messages (e.g., natural language text), voice messages, image messages, video messages, and the like. Typically, the digital assistant 120 can support users to input questions in a natural language, and perform tasks and provide responses based on the understanding and logical reasoning ability of natural language input. In some embodiments, the query platform 110 can present a corresponding page 140 to the user 130 based on the operation of the user 130 to output and / or receive information from the user 130.
[0028] In some embodiments, the implementation of at least part of the functions of the processing application 112 and / or the implementation of at least part of the functions of the digital assistant 114 can be implemented based on a target model. In some embodiments, the target model can be a machine learning model, a deep learning model, a learning model, a neural network, etc. In some embodiments, the model can be based on a language model (LM). The language model can have question-answering capabilities by learning from a large amount of corpus. The target model can also be based on other appropriate models.
[0029] In some embodiments, the query platform 110 communicates with the server 120 to realize the supply of the service of processing application 112 and / or digital assistant 114. The query platform 110 can be run on an appropriate electronic device. The electronic device here can be any type of mobile terminal, fixed terminal or portable terminal, including mobile phone, desktop computer, laptop computer, notebook computer, netbook computer, tablet computer, media computer, multimedia tablet, personal communication system (PCS) device, personal navigation device, personal digital assistant (PDA), audio / video player, digital camera / camcorder, positioning device, television receiver, radio broadcast receiver, electronic book device, game device or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the query platform 110 can also support any type of interface for users (such as "wearable" circuits, etc.). The server 120 can be various types of computing systems / servers that can provide computing power, including but not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.
[0030] It should be understood that the structure and function of the various elements in the environment 100 are described for exemplary purposes only and do not imply any limitation on the scope of the present disclosure.
[0031] In modern network communication technology, communication between users has shifted from traditional email and social platforms to instant messaging applications. With the development of artificial intelligence technology, instant messaging applications not only carry communication between people, but also gradually integrate the interaction between people and robots (Bots). At present, most instant messaging applications provide basic functions such as text communication and file transfer, but there is still a lot of room for improvement in improving information processing efficiency. In particular, in terms of information retrieval, content highlighting, quick operation, etc., a complete and intelligent interaction system has not yet been formed.
[0032] Existing instant messaging applications have the following problems:
[0033] 1. Low efficiency of information processing in chat scenarios: When processing chat content, instant messaging applications lack a quick and intuitive way to process specific text or information, which requires users to perform multiple steps to find or execute specific commands during the chat process, reducing communication efficiency.
[0034] 2. Inconsistent access and operation of key information: Users often need to query additional information during chats, such as names, places, proper nouns, etc. Existing chat applications fail to provide a quick way to directly highlight or perform related operations, forcing users to leave the chat interface, affecting communication continuity.
[0035] 3. Lack of intelligent mutual recommendation mechanism: Although some communication applications have integrated simple robot functions, in actual interactions, there is a lack of a mechanism that can combine artificial intelligence recommendation algorithms to enhance the interaction between people and Bots and provide users with more accurate information or suggestions.
[0036] In view of this, according to an embodiment of the present disclosure, an improved scheme for query is provided. According to the scheme, in a first page of a first digital assistant, a first answer is presented using a first format, and the first answer is generated based on a first query request. The first part of the first answer is presented using a second format. In response to receiving a first interaction request for the first part, a first interaction control is presented, and the first interaction control is used to call a processing application different from the first digital assistant to process a second query request associated with the first part. In this way, the efficiency of user queries can be improved and the consistency of information queries can be ensured.
[0037] Some example embodiments of the present disclosure will be described in detail below with reference to examples of the accompanying drawings. Figure 2 FIG. 2 is a flowchart of a process 200 for querying according to some embodiments of the present disclosure. The process 200 may be implemented at the query platform 110. Figure 1The process 200 is described. It should be noted that, in this document, some operations described with reference to the query platform 110 may require the assistance of the server 120. In addition, the operations performed by the query platform 110 may be specifically performed by an electronic device running the query platform 110.
[0038] In box 210, in the first page of the first digital assistant, the query platform 110 presents the first answer using the first format, and the first answer is generated by the first digital assistant based on the first query request. The first format here can be, for example, any appropriate format such as text format, card format, etc. The first page can be, for example, a conversation page between the user and the first digital assistant. The first query request can be, for example, a query request entered by the user. In some embodiments, the query platform 110 can determine the user input received via the input box in the conversation page as a query request entered by the user. In some embodiments, the query platform 110 can also provide at least one predetermined query request in the conversation page between the user and the first digital assistant, and in response to receiving the user's selection for a predetermined query request, determine the predetermined query request as the first query request.
[0039] In box 220, the query platform 110 presents the first part of the first answer using the second format. The first part can be automatically recognized by the digital assistant, or it can be determined in response to the selection request. For example, the first part can be a keyword automatically recognized by the digital assistant in the first answer, which can be automatically highlighted in the second format (e.g., highlighted, italicized, bolded, underlined, etc.). The first part can also be a portion of the content selected by the user from the first answer. In response to receiving a selection request from the user for a portion of the content, the query platform 110 can determine the portion of the content corresponding to the selection request as the first part, and highlight the first part in the second format.
[0040] For example, reference Figure 3A , Figure 3A A schematic diagram of an example page 300A (also referred to as example 300A) according to some embodiments of the present disclosure is shown. In example 300A, an operation control 311 for creating a digital assistant and an operation control 312 for finding a digital assistant are presented in area 310, and the information stream of the instant messaging application is presented in area 320. In response to the user selecting any contact or any group in the information stream of the instant messaging application, the query platform 110 can present a corresponding conversation window in area 330. For example, in response to the user waking up digital assistant A through a preset operation (e.g., selecting digital assistant A from a contact list), the query platform 110 can present a conversation window in which the user interacts with digital assistant A in area 330.
[0041] The user may input a first query request 331 in the conversation window, and the query platform 110 may present the first query request 331 and the first answer 332 in the conversation window in which the user interacts with the digital assistant A. The first query request 331 may be, for example, a user input received by the query platform 110 via the input box 301. In response to receiving a selection request for text 333 (i.e., the text "Generate corresponding pictures according to the text description" shown in the figure), the query platform 110 may determine the text 333 as the first part, and highlight the first part in the second format (e.g., highlight the text 333).
[0042] In box 230, the query platform 110 presents a first interactive control (e.g., one or more interactive controls 340) in response to receiving a first interactive request for the first part, and the first interactive control is used to call a processing application to process a second query request associated with the first part. The first interactive request may, for example, include a trigger operation for the first part, such as a long press operation, a hover operation, a click operation, a double-click operation, and the like. The first interactive control may, for example, be arbitrarily used to call at least one processing application. The query platform 110 may, for example, directly determine the first part as the second query request. The query platform 110 may, for example, also fill the first part into a predetermined query template and determine the second query request based on the filled result.
[0043] The processing application can be selected by the query platform 110 from multiple processing applications integrated in the query platform 110 based on the first answer and the first part. That is, the query platform 110 can select a processing application that can be called by the first interactive control from multiple processing applications integrated in the query platform 110 based on the first answer and the first part. The processing application can include multiple types, such as search engines, other digital assistants, and chat groups, etc. Exemplarily, if the first answer is related to physical knowledge, the processing application can be a processing application determined by the query platform 110 from multiple processing applications to answer information related to physical knowledge.
[0044] In some embodiments, the query platform 110 may present the first interactive control in response to determining that the duration of the first interactive request meets the first time period. The first interactive control may be presented in a floating manner, for example, on the upper layer of the first page. Further, in some embodiments, the query platform 110 may hide the first interactive control in response to determining that the second interactive request for the first interactive control is not received within the second time period. The first time period and the second time period here may be any appropriate time period, such as 1 second, 3 seconds, 5 seconds, and so on. The second interactive request may include, for example, a trigger operation for the first interactive control, such as a long press operation, a hover operation, a click operation, a double-click operation, and so on. Exemplarily, the query platform 110 may present the first interactive control in response to the hover operation for the first part reaching 3 seconds. The query platform 110 may hide the first interactive control in response to not receiving a click operation for the first interactive control within 5 seconds. In this way, the interactive control may be automatically popped up and hidden, thereby facilitating user operation.
[0045] In some embodiments, the query platform 110 may also present a second page of the processing application in response to receiving a second interaction request for the first interactive control, and present a second response of the processing application to the first part (specifically, to the second query request associated with the first part) on the second page. The second interaction request for the first interactive control here may be, for example, a trigger operation for a target option among multiple options presented for the first interactive control. The second page may be, for example, a new session page corresponding to the user and the processing application.
[0046] refer to Figure 3A and Figure 3B ,like Figure 3A As shown, the query platform 110 may present an interactive control 340 (ie, a first interactive control) in response to receiving a first interactive request for the text 333 (ie, the first part).
[0047] Multiple options may be presented on the interactive control 340, and the multiple options may correspond to multiple processing applications. In response to receiving a trigger operation for a target option, the query platform 110 may call the processing application corresponding to the target option to process the second query request associated with the text 333. For example, in response to receiving a selection operation for the option "Detailed Expansion", the query platform 110 may call the processing application corresponding to the option to process the second query request associated with the text 333.
[0048] The query platform 110 may also present a page as shown in FIG300B. A second page corresponding to the processing application corresponding to the target option may be presented in region 330 of FIG300B. The second page may include, for example, a second query request 351 (which is associated with text 333) and a second response to the second query request 351 (including a plurality of media items and text 353 presented in region 352).
[0049] In some embodiments, the processing application may include a second digital assistant (e.g., Figure 3A The option "digital assistant 123" shown in the interactive control 340 may correspond to the second digital assistant). The query platform 110 may forward the context data in the first page to the second digital assistant so that the second digital assistant provides a response based on the context data. The context data in the first page may, for example, include at least a first query request and a first response. In some embodiments, the context data may also include a predetermined number of historical query requests and historical responses from users and the first digital assistant. Thus, the second digital assistant can understand the context data of the second query request and provide a more accurate response based on the context data.
[0050] In some embodiments, the query platform 110 may also present a response by the second digital assistant to the third interaction request in the second page in response to receiving the third interaction request in the second page. Exemplarily, the query platform 110 may determine that the third interaction request is received in response to receiving user input on the second page. The query platform 110 may also present options (also referred to as shortcuts) associated with the second query request and / or the second response in the second page, for example. The query platform 110 may determine that the third interaction request is received in response to receiving a selection operation for an option. In this way, the desired processing application may be called in a more convenient and effective manner.
[0051] In some embodiments, the processing application may include a search engine (e.g. Figure 3A The query platform 110 may create a search keyword based on the first part, and present search results matching the search keyword on the second page. The query platform 110 may create a search keyword based on the first part based on a predetermined keyword type, keyword template, etc. It is understandable that if the first part itself includes at least one keyword, the query platform 110 may also directly present search results matching the keyword on the second page. In this way, the search engine's capabilities may be directly called to provide real-time search results.
[0052] In some embodiments, a search engine may be deployed in a data providing system, and the search results point to data in the data providing system. Specifically, there may be multiple types of data providing systems, and each data providing system may provide corresponding data based on a search. For example, a data providing system may provide text, images, audio, video, short video, application, rich media, and other types of data that match keywords. Alternatively and / or additionally, a data providing system may be broadly understood as including data involved in one or more websites, applications, tools, databases, and the like in an Internet environment. At this point, the second response provided may include data of multiple contents and represented in multiple media types.
[0053] In some embodiments, the processing application may also include a chat application (e.g. Figure 3A The option "Chat with him" shown in the interactive control 340 may correspond to a chat group in the chat application). The query platform 110 may forward the context data in the first page to the chat group, and present messages from users in the chat group in the second page. This chat group may have been previously created or may be created in real time. For example, if the first query request indicates a query for physical knowledge, the chat group may be a previously existing group of physics enthusiasts or a group of physics enthusiasts created in real time. In this way, answers to desired query questions may be obtained from other users.
[0054] In some embodiments, the content of the second response can be determined based on the context associated with the first response and the first part. Specifically, the context associated with the first response can be obtained, that is, one or more rounds of previous interactions between the user and the first digital assistant and the first part selected by the user can be obtained to determine the user's specific question, thereby generating a second response that better matches the user's needs.
[0055] In some embodiments, the media type of the second response can be determined based on the interaction history in the first digital assistant. Specifically, it can be determined based on the interaction history between the user and the first digital assistant which media type to present the second response. Assuming that the interaction history indicates that the user prefers to view text data, the second response can be presented in text format. Assuming that the interaction history indicates that the user prefers to view video data, the second response can be presented in video format. At this time, responses in video format can be searched preferentially, and alternatively and / or additionally, the second response in video format can be generated based on various generation techniques (e.g., text-generated video, image-generated video, etc.). In this way, the second response can be presented in a media type that is more conducive to user understanding.
[0056] In some embodiments, the query platform 110 may also return to the first page in response to receiving a fourth request for exiting the processing application in the second page. Figure 3A and Figure 3B , the query platform 110 may determine that a fourth request for exiting the processing application is received in response to receiving a trigger operation for the return control 360 in example 300B. The query platform 110 may return to presenting the first page shown in example 300A. In this way, it is convenient for the user to quickly exit the processing application when desired, and then return to the previous digital assistant.
[0057] It should be understood that the accompanying drawings (e.g. Figure 3A and Figure 3B ) are merely examples, and various page designs may exist in practice. The various graphic elements in the page may have different arrangements and different visual representations, one or more of the elements may be omitted or replaced, and one or more other elements may also exist. The embodiments of the present disclosure are not limited in this respect.
[0058] In summary, according to the embodiments of the present disclosure, a suitable processing application can be recommended to the user based on the first part of the first response, which can improve the efficiency of user queries, provide more accurate results, and ensure the consistency of information queries.
[0059] According to some embodiments of the present disclosure, a device for querying is also provided. Figure 4 A block diagram of an apparatus 400 for querying according to some embodiments of the present disclosure is shown. The apparatus 400 may be implemented as or included in the query platform 110. Each module / component in the apparatus 400 may be implemented by hardware, software, firmware, or any combination thereof.
[0060] like Figure 4 As shown, the device 400 includes a first response presentation module 410, which is configured to present a first response in a first format in a first page of a first digital assistant, and the first response is generated based on a first query request. The device 400 also includes a second response presentation module 420, which is configured to present a first part of the first response in a second format. The device 400 also includes a first control presentation module 430, which is configured to present a first interactive control in response to receiving a first interactive request for the first part, and the first interactive control is used to call a processing application different from the first digital assistant to process a second query request associated with the first part.
[0061] In some embodiments, the device 400 further includes: a second page presentation module, configured to present a second page of the processing application in response to receiving a second interaction request for the first interaction control; and a third response presentation module, configured to present a second response of the processing application to the first part in the second page.
[0062] In some embodiments, the processing application includes a second digital assistant that is different from the first digital assistant, and the third response presentation module is further configured to: forward context data in the first page to the second digital assistant so that the second digital assistant provides a response based on the context data.
[0063] In some embodiments, the device 400 further includes: a fourth response presentation module, configured to present a response by the second digital assistant to the third interaction request in the second page in response to receiving the third interaction request in the second page.
[0064] In some embodiments, the processing application includes a search engine, and the third answer presentation module is further configured to: create a search keyword using the first part; and present search results matching the search keyword in a second page, the search engine is deployed in a data provision system, and the search results point to data in the data provision system.
[0065] In some embodiments, the processing application includes a chat application, and the third response presentation module is further configured to: forward the context data in the first page to a chat group in the chat application; and present messages from users in the chat group in the second page.
[0066] In some embodiments, the apparatus 400 further comprises: a second page returning module configured to return to the first page in response to receiving a fourth request for exiting the processing application in the second page.
[0067] In some embodiments, the first portion is: automatically identified by the digital assistant, or determined in response to a selection request.
[0068] In some embodiments, the first digital assistant and the processing application are integrated in the query platform, and the processing application is selected by the query platform from a plurality of processing applications integrated in the query platform based on the first answer and the first part.
[0069] In some embodiments, the first interactive control is presented in response to determining that the duration of the first interactive request satisfies the first time period, and the first interactive control is presented on an upper layer of the first page in a floating manner.
[0070] In some embodiments, the apparatus 400 further includes: a control hiding module configured to hide the first interactive control in response to determining that no second interactive request for the first interactive control is received within a second time period.
[0071] In some embodiments, the content of the second response is determined based on the context associated with the first response and the first portion.
[0072] In some embodiments, the media type of the second response is determined based on the interaction history in the first digital assistant.
[0073] The units and / or modules included in the device 400 can be implemented in various ways, including software, hardware, firmware, or any combination thereof. In some embodiments, one or more units and / or modules can be implemented using software and / or firmware, such as machine executable instructions stored on a storage medium. In addition to or as an alternative to machine executable instructions, some or all of the units and / or modules in the device 400 can be implemented at least in part by one or more hardware logic components. As an example and not limitation, exemplary types of hardware logic components that can be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0074] It should be understood that one or more steps in the above method can be performed by a suitable electronic device or a combination of electronic devices. Such an electronic device or a combination of electronic devices may include, for example, Figure 1 The query platform 110 in.
[0075] Figure 5 1 shows a block diagram of an electronic device 500 in which one or more embodiments of the present disclosure may be implemented. It should be understood that Figure 5 The electronic device 500 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 5 The electronic device 500 shown can be used to implement Figure 1 The query platform 110, and / or Figure 4 Device 400.
[0076] like Figure 5As shown, the electronic device 500 is in the form of a general-purpose computing device. The components of the electronic device 500 may include, but are not limited to, one or more processors or processing units 510, a memory 520, a storage device 530, one or more communication units 540, one or more input devices 550, and one or more output devices 560. The processing unit 510 may be an actual or virtual processor and is capable of performing various processes according to a program stored in the memory 520. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to improve the parallel processing capability of the electronic device 500.
[0077] The electronic device 500 typically includes a plurality of computer storage media. Such media may be any available media accessible to the electronic device 500, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 520 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 530 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data and may be accessed within the electronic device 500.
[0078] The electronic device 500 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 5 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 520 may include a computer program product 525 having one or more program modules that are configured to perform various methods or actions of various implementations of the present disclosure.
[0079] The communication unit 540 implements communication with other computing devices through a communication medium. Additionally, the functions of the components of the electronic device 500 can be implemented in a single computing cluster or multiple computing machines that can communicate through a communication connection. Therefore, the electronic device 500 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.
[0080] The input device 550 may be one or more input devices, such as a mouse, a keyboard, a tracking ball, etc. The output device 560 may be one or more output devices, such as a display, a speaker, a printer, etc. The electronic device 500 may also communicate with one or more external devices (not shown) through the communication unit 540 as needed, such as a storage device, a display device, etc., communicate with one or more devices that allow a user to interact with the electronic device 500, or communicate with any device that allows the electronic device 500 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).
[0081] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.
[0082] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0083] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0084] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0085] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some implementations as application replacement, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0086] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.
Claims
1. A query method, comprising: In a first page of a first digital assistant, presenting a first response in a first format, wherein the first response is generated based on the first query request; presenting the first portion of the first response using a second format; as well as In response to receiving a first interaction request for the first part, a first interaction control is presented, wherein the first interaction control is used to call a processing application different from the first digital assistant to process a second query request associated with the first part.
2. The method according to claim 1, further comprising: In response to receiving a second interaction request for the first interactive control, presenting a second page of the processing application; as well as A second response of the processed application to the first part is presented in the second page.
3. The method of claim 2, wherein the processing application comprises a second digital assistant different from the first digital assistant, and presenting the second response in the second page comprises: Forward the context data in the first page to the second digital assistant so that the second digital assistant provides a response based on the context data.
4. The method according to claim 3, further comprising: In response to receiving a third interaction request in the second page, presenting a response by the second digital assistant to the third interaction request in the second page.
5. The method of claim 2, wherein the processing application comprises a search engine, and presenting the second response in the second page comprises: Using the first part, create a search keyword; as well as Search results matching the search keyword are presented in the second page, the search engine is deployed in a data providing system, and the search results point to data in the data providing system.
6. The method of claim 2, wherein the processing application comprises a chat application, and presenting the second response in the second page comprises: forwarding the context data in the first page to a chat group in the chat application; as well as Messages from users in the chat group are presented in the second page.
7. The method according to claim 2, further comprising: In response to receiving a fourth request for exiting the application in the second page, returning to the first page.
8. The method of claim 1, wherein the first portion is: automatically identified by the digital assistant, or Determined in response to a selection request.
9. The method according to claim 1, wherein the first digital assistant and the processing application are integrated in a query platform, and the processing application is selected by the query platform from a plurality of processing applications integrated in the query platform based on the first answer and the first part.
10. The method according to claim 1, wherein the first interactive control is presented in response to determining that the duration of the first interactive request satisfies a first time period, and the first interactive control is presented on an upper layer of the first page in a floating manner.
11. The method according to claim 10, further comprising: In response to determining that no second interaction request for the first interaction control is received within a second time period, hiding the first interaction control.
12. The method of claim 2, wherein the content of the second response is determined based on a context associated with the first response and the first portion.
13. A method according to claim 2, wherein the media type of the second response is determined based on the interaction history in the first digital assistant.
14. A device for querying, comprising: A first response presentation module is configured to present a first response in a first format on a first page of the first digital assistant, wherein the first response is generated based on the first query request; A second response presenting module, configured to present a first part of the first response in a second format; as well as A first control presentation module is configured to present a first interactive control in response to receiving a first interactive request for the first part, wherein the first interactive control is used to call a processing application different from the first digital assistant to process a second query request associated with the first part.
15. An electronic device, comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 13 when executed by the at least one processing unit.
16. A computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the method according to any one of claims 1 to 13.
17. A computer program product comprising a computer program, wherein the computer program implements the method according to any one of claims 1 to 13 when executed by a processor.
Citation Information
Patent Citations
Query statement processing method and device, equipment and storage medium
CN113434653A
Generative large language model training method and model-based man-machine voice interaction method
CN116127046A
Content display method and device based on artificial intelligence, equipment and storage medium
CN117194814A
Method and device for providing artificial intelligence service
CN117938941A
