Interaction method, apparatus, electronic device, storage medium, and program product
By receiving and managing user information through various interactive methods and using machine learning models to generate personalized memory information, the problem of insufficient accuracy of human-computer interaction in existing technologies is solved, and a more efficient personalized interactive experience is achieved.
Patent Information
- Application Number
- CN202411404459.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-09
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2044-10-09
AI Technical Summary
In the existing technology, it is difficult for human-computer interaction systems to generate personalized memory information based on the user's historical interaction information and current input information, resulting in insufficient interaction accuracy and effectiveness, and an inability to simulate real human interaction.
Receive user input information through various interactive methods, use machine learning models to identify semantic information, generate and manage users' personalized memory information, including the classification of long-term and short-term memory and effective time management, and refer to memory information for personalized responses during the interaction process.
It improves the accuracy and effectiveness of human-computer interaction, makes the interactive experience closer to real human interaction, can generate personalized memory information according to different users, and enhances the flexibility and accuracy of interaction.
Smart Images

Figure CN119106124B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer, and particularly relates to an interaction method and device, electronic equipment, storage medium and program product. BACKGROUND
[0002] With the development of artificial intelligence (AI) technology, in human-computer interaction, machines can communicate with users more naturally and smoothly.
[0003] In the process of human-computer interaction, the machine can generate reply information based on the current input information of the user and some interaction information before the current input information. SUMMARY
[0004] This summary is provided to introduce a selection of concepts that are further described below in the detailed description. This summary is not intended to identify key or essential features of the claimed technology, nor is it intended to be used to limit the scope of the claimed technology.
[0005] According to some embodiments of the present disclosure, an interaction method is provided, comprising: receiving information input by a user through multiple interaction modes; generating memory information corresponding to the user according to the input information, wherein the way of generating the memory information is different for different interaction modes, and the memory information corresponding to the user includes relevant information of the user; and interacting with the user according to the memory information corresponding to the user.
[0006] According to some other embodiments of the present disclosure, an interaction device is provided, comprising: a receiving module configured to receive information input by a user through multiple interaction modes; a generating module configured to generate memory information corresponding to the user according to the input information, wherein the way of generating the memory information is different for different interaction modes, and the memory information corresponding to the user includes relevant information of the user; and an interaction module configured to interact with the user according to the memory information corresponding to the user.
[0007] According to some other embodiments of the present disclosure, an electronic device is provided, comprising: a processor; and a memory coupled to the processor, configured to store instructions, the instructions being executed by the processor to cause the processor to perform the interaction method of any embodiment of the present disclosure.
[0008] According to some other embodiments of the present disclosure, a computer readable storage medium is provided, having a computer program stored thereon, wherein the program is executed by a processor to implement the interaction method of any embodiment of the present disclosure.
[0009] According to still some embodiments of the present disclosure, there is provided a computer program product comprising instructions which, when executed by a processor, cause the processor to perform the interaction method of any embodiment of the present disclosure.
[0010] Other features of the present disclosure, and their advantages, will become apparent in the non-limiting detailed description of exemplary embodiments of the present disclosure, which is presented in connection with the following drawings. BRIEF DESCRIPTION OF DRAWINGS
[0011] Preferred embodiments of the present disclosure will be described below with reference to the accompanying drawings. The drawings used herein to explain the preferred embodiments of the present disclosure are provided to provide a further understanding about the present disclosure, and together with the following detailed description, comprise a part of the specification and explain the present disclosure. It should be understood that the drawings described below only relate to some embodiments of the present disclosure, and do not constitute a limitation on the present disclosure. In the drawings:
[0012] Figure 1 a flowchart showing the interaction method of some embodiments of the present disclosure;
[0013] Figure 2 a schematic diagram showing the interaction interface in some embodiments of the present disclosure;
[0014] Figure 3 a schematic diagram showing the interaction interface in some embodiments of the present disclosure;
[0015] Figure 4 a schematic diagram showing the interaction interface in some embodiments of the present disclosure;
[0016] Figure 5 a schematic diagram showing the interaction interface in some embodiments of the present disclosure;
[0017] Figure 6 a schematic diagram showing the interaction interface in some embodiments of the present disclosure;
[0018] Figure 7 a schematic diagram showing the interaction device of some embodiments of the present disclosure;
[0019] Figure 8 a schematic diagram showing the electronic device of some embodiments of the present disclosure;
[0020] Figure 9 a schematic diagram showing the computer system of some embodiments of the present disclosure.
[0021] It should be understood that, for the purpose of description, the sizes of the various parts shown in the drawings are not necessarily drawn according to the actual proportions. The same or similar reference signs are used in the drawings to represent the same or similar parts. Therefore, once a part is defined in one drawing, it can not be further discussed in the subsequent drawings. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present disclosure will be described clearly and completely below in combination with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only some of the embodiments of the present disclosure, but not all the embodiments. The description of the embodiments below is actually only illustrative, and is by no means any limitation on the present disclosure and its application or use. It should be understood that the present disclosure can be implemented in various forms, and should not be interpreted as being limited to the embodiments set forth herein.
[0023] It should be understood that each step described in the method embodiments of the present disclosure can be executed in different orders and / or in parallel. In addition, the method embodiments can include additional steps and / or omit the execution of the steps shown. The scope of the present disclosure is not limited in this respect. Unless otherwise specified, the relative arrangement of the components and steps, numerical expressions, and numerical values set forth in these embodiments should be interpreted as merely illustrative, not limiting the scope of the present disclosure.
[0024] The term “comprise” and variations of the term, such as “comprising,” “comprises,” and “comprised of” as used herein, are intended to mean that the compositions and methods include the recited elements, but not excluding others. In addition, the term “contain” and variations of the term, such as “containing,” “contains,” and “contained of” as used herein, are intended to mean that the compositions and methods include the recited elements, but not excluding others. Thus, comprising and containing are synonymous. The term “based on” means “based, at least in part, on.”
[0025] Reference throughout this specification to “an embodiment,” “some embodiments,” or “embodiments” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of the application. The appearances of the phrase “in one embodiment” in various places in the specification are not necessarily all referring to the same embodiment, although they can. Furthermore, the term “another embodiment” is used throughout this specification to introduce an additional embodiment that can include, but is not limited to, features of embodiments described in the specification and / or a combination of elements of previous embodiments.
[0026] It should be noted that the terms “first,” “second,” and the like in the present disclosure are used only to distinguish different devices, modules, or units, and do not imply the order or the mutual dependency of the functions performed by these devices, modules, or units. Unless otherwise specified, the terms “first,” “second,” and the like are not intended to imply a given order or any other way of a given order.
[0027] It should be noted that the modification of "one", "multiple" mentioned in the present disclosure is illustrative rather than restrictive, and those skilled in the art should understand that "one or more" should be understood unless otherwise explicitly indicated in the context.
[0028] The names of the messages or information exchanged between the plurality of devices in the embodiments of the present disclosure are only for illustrative purposes, and are not used to limit the scope of the messages or information.
[0029] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings, but the present disclosure is not limited to these specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes can not be described in some embodiments. In addition, in one or more embodiments, specific features, structures or characteristics can be combined by any suitable means from the present disclosure that is clear to those skilled in the art.
[0030] Human-computer interaction (conversation) can be realized in the form of software or a combination of software and hardware. For example, human-computer interaction can be realized by using software such as interactive application or hardware devices such as computers configured to run interactive application.
[0031] Taking the implementation of human-computer conversation by using interactive application as an example, the interactive application can generate reply information based on the current input information of the user and some interaction information before the current input information. For example, the user restarts the interactive application or restarts the conversation after a certain period of time, and the interactive application can only refer to the interaction information in the current conversation process to generate the reply information, or the interactive application only refers to a preset number of interaction information before the current input information to generate the reply information. The interactive application uses the same logic to reply to all users, and such a setting is generally considered that the interaction information which is far apart from the current input interaction information has nothing to do with the current conversation.
[0032] However, in many cases, the interactive application cannot meet the user's needs by only generating reply information based on the current input information of the user and some interaction information before the current input information. For example, the user mentioned in the conversation process before a period of time that he / she does not like horror movies, and when the user wants the interactive application to recommend some movies, the horror movies are recommended to the user, which makes the user feel unsatisfied.
[0033] In order to further improve the accuracy and effectiveness of the interaction with the user in the human-computer interaction process, and to realize personalized interaction for different users and make the experience of human-computer interaction closer to real human interaction, the present disclosure provides an interaction method, which will be described below in combination with Figures 1-6 .
[0034] The interaction method of the embodiments of the present disclosure can be executed by an interaction device, which can be implemented in the form of hardware and / or software. For example, the interaction device is an agent, a bot, an interactive application, a computer, a terminal, etc. A user can perform human-computer interaction with the interaction device. For example, the user can provide a command and / or a request to the interaction device using spoken natural language input (i.e., a speech), which can be converted into text and then processed in some cases, and / or by providing text (e.g., typed) natural language input.
[0035] Figure 1 A flowchart of some embodiments of the interaction method of the present disclosure is shown in FIG. 1. As shown in FIG. 1, the method of the embodiment includes steps S102-S106. Figure 1
[0036] In step S102, information input by a user is received through various interaction modes.
[0037] The interaction device can perform human-computer interaction with the user and can receive information input by the user through various interaction modes. For example, the interaction device can receive information input by the user through a conversation with the user, or the interaction device can receive information input by the user through interactive configuration with the user, i.e., the user inputs configuration information of the interaction device, without being limited to the examples shown.
[0038] In step S104, memory information corresponding to the user is generated according to the input information.
[0039] The memory information corresponding to the user includes relevant information of the user, which refers to the memory information of the user by the interaction device. For example, the interaction device is an agent, and the memory information corresponding to the user refers to the memory information of the user by the agent. The interaction device can generate memory information for different users by imitating human memory, and can generate memory information for different users to achieve personalized memory information.
[0040] The memory information corresponding to the user can be relevant information of the user extracted according to the information input by the user. For example, the relevant information of the user includes at least one of attribute information and portrait information of the user, and can also include other information that needs to be remembered, without being limited to the examples shown. For example, the relevant information of the user includes hobby information, address information, occupation information, and life information of the user, etc. The memory information corresponding to the user is different from the context of the conversation between the user and the interaction device. The context of the conversation between the user and the interaction device only refers to the content itself of the conversation between the user and the interaction device, while the memory information corresponding to the user can be relevant information of the user extracted from the conversation between the user and the interaction device or relevant information of the user obtained through configuration or other ways.
[0041] The way of generating the memory information is different for different interaction modes. For example, the way of generating the memory information is different for the interaction mode of having a conversation with the user and the interaction mode of interactive configuration with the user.
[0042] In step S106, the user is interacted with according to the memory information corresponding to the user.
[0043] Since the personalized memory information is generated for the user, in the process of interacting with the user, the interaction device not only refers to the information input by the user currently and the interaction information between the user and the interaction device previously, but also refers to the memory information corresponding to the user. That is, the reply information is generated according to the information input by the user currently, the historical interaction information between the user and the interaction device previously, and the memory information corresponding to the user.
[0044] The method of the above embodiment receives the information input by the user through multiple interaction modes, and generates the memory information corresponding to the user according to the input information, and then interacts with the user according to the memory information corresponding to the user. The multiple interaction modes can provide a more flexible way of generating memory information for the user, and the memory information corresponding to the user can be generated for the input information received through different interaction modes, reducing the omission of memory information, thereby improving the accuracy of subsequent interaction. By generating the memory information corresponding to the user and interacting with the user based on the memory information, the experience of human-computer interaction can be closer to real human interaction, and the accuracy and effectiveness of the interaction can be improved. And personalized memory information can be generated for different users, so that personalized interaction can be carried out for different users, further improving the accuracy and effectiveness of the interaction.
[0045] How to generate the memory information corresponding to the user will be described below in combination with some embodiments.
[0046] In some embodiments, the semantic information of the input information is identified; the attribute corresponding to the input information is determined according to the semantic information; and the memory information corresponding to the user is generated according to the attribute and the input information.
[0047] The semantic information of the information input by the user can be identified by using a machine learning model. For example, the machine learning model is a large language model (LLM), which is not limited to the examples shown.
[0048] For example, one or more attributes (or types) can be pre-configured, including one or more of hobbies, addresses, occupations, lives, and the like. The attribute corresponding to the input information can be determined according to semantic information of the input information. Then, the input information can be summarized according to the semantic information of the input information to obtain summary information, and the summary information and the attribute information are associated to generate the memory information corresponding to the user. For example, the input information of the user is “I like to read books of history and philosophy”, and the attribute corresponding to the input information can be determined as hobbies, and then the generated memory information can be “hobbies are reading books of history and philosophy”.
[0049] By determining the attribute through semantic recognition of the input information, and generating the memory information corresponding to the user according to the attribute and the input information, the memory information can be more accurately classified and saved, and in the subsequent interaction process according to the memory information, the memory information of different attributes can be more accurately used for interaction, improving the accuracy and effectiveness of the interaction.
[0050] The generated memory information corresponding to the user can be divided into different types. In some embodiments, the semantic information of the input information is recognized; according to the semantic information, the memory type corresponding to the input information is determined, wherein different memory types correspond to different valid times; and according to the memory type and the input information, the memory information corresponding to the user is generated.
[0051] For example, the memory information corresponding to the user is divided into long-term memory and short-term memory according to the length of the valid time, without being limited to the examples. For example, the memory information of the user's hobbies belongs to long-term memory, and the user's business trip in a certain place in the past week belongs to short-term memory. The memory type to which the memory information corresponding to the user belongs can be recognized according to the semantic information of the input information. And the memory information of different memory types can be stored respectively.
[0052] In some embodiments, in response to the current time exceeding the valid time of the memory information, the stored memory information is deleted.
[0053] The valid time of each piece of memory information can be recorded. For example, the memory information of the user's business trip in a certain place in the past week has a valid time of one week from the start to the end of the business trip. In the case where the current time exceeds the valid time of the memory information, the memory information can no longer be referred to in subsequent interaction, and the memory information can be deleted. For example, the interaction device can recommend local scenic spots, food, and the like to the user when the user is on a business trip, but if the user ends the business trip, the location needs to be changed when the recommendation is made again.
[0054] The method of the above embodiment determines the effective time of the memory information according to the semantic information of the input information, divides the memory information into different memory types, can more accurately store and manage the memory information, and thus more accurately and effectively interacts with the user according to the memory information subsequently.
[0055] The following describes how to generate the memory information corresponding to the user in different interaction modes in combination with some embodiments.
[0056] In some embodiments, the plurality of interaction modes include a first interaction mode of conducting a conversation with the user, semantic information of first information input by the user is recognized in the process of the user conducting the conversation; whether the first information belongs to information that needs to be remembered is determined according to the semantic information; and the memory information corresponding to the user is generated according to the first information in response to the first information belonging to information that needs to be remembered.
[0057] The machine learning model can be used to determine whether the first information includes relevant information of the user that needs to be remembered according to the semantic information of the first information, for example, whether the first information includes attribute information, portrait information, etc. of the user. Alternatively, the attribute (or type) of the information that needs to be remembered can be set in advance, and whether the first information includes information of the attribute is determined according to the semantic information of the first information. For example, the attribute of the information that needs to be remembered includes attribute information such as hobbies, addresses, etc. If the first information belongs to the information that needs to be remembered, the memory information corresponding to the user is generated according to the first information.
[0058] In some embodiments, the attribute corresponding to the first information is determined according to the semantic information of the first information, and the memory information corresponding to the user is generated according to the attribute and the first information.
[0059] For example, if the attribute corresponding to the first information is determined to be hobbies according to the semantic information of the first information, the information representing the hobbies can be extracted from the first information or obtained by summarizing the first information by using the machine learning model, and then the attribute and the information representing the hobbies are associated to generate the memory information corresponding to the user.
[0060] In the process of interacting with the user, whether the information needs to be remembered can be automatically determined through semantic recognition of the first information input by the user, and the memory information can be automatically generated in the case of needing to be remembered. These are unperceived by the user, and the accuracy of the interaction is improved while the experience of the user is improved.
[0061] The following describes some embodiments of generating the memory information in the process of interacting with the user in combination with Figure 2 and Figure 3 The following describes some embodiments of generating the memory information in the process of interacting with the user in combination with
[0062] For example, Figure 2As shown, it is an interaction interface of the user and the intelligent agent A, the first information 201 "I have always liked X's music" input by the user is displayed in the interaction information display area of the interaction interface, the intelligent agent A identifies that the first information 201 contains information that needs to be remembered, and generates the corresponding memory information of the user for saving. The intelligent agent A can reply to the first information 201, generate and display the reply information 202 and can display the prompt information of the memory information update, that is, "memory has been updated", to prompt the user that new memory information has been generated. The reply information 202 can also include guide information "which of his works do you like best", which is used to guide the user to further input information related to the generated memory information, so as to extend the generated memory information according to the input information related to the generated memory information.
[0063] As shown, Figure 2 The one or more recommended questions 203 can also be generated according to the first information 201, and the answer to the target question is displayed in response to the selection operation of the user on the target question in the one or more recommended questions. The one or more recommended questions are associated with the first information 201, and the user does not need to input more questions by himself, which facilitates further interaction of the user with the intelligent agent.
[0064] As shown, Figure 3 It is an interaction interface of the user and the intelligent agent B, the first information 301 "I love to eat pineapple, but not to eat mango" input by the user is displayed in the interaction information display area of the interaction interface, the intelligent agent B identifies that the first information 301 contains information that needs to be remembered, and generates the corresponding memory information of the user for saving. The intelligent agent B can reply to the first information 301, generate and display the reply information 302 and can display the prompt information of the memory information update, that is, "memory has been updated", to prompt the user that new memory information has been generated.
[0065] In some embodiments, the plurality of interaction modes includes a second interaction mode of interactive configuration with the user, in the process of interactive configuration with the user, the second information input by the user is received; the second information is summarized to generate the corresponding memory information of the user.
[0066] The user can configure the memory information through the process of interactive configuration. The user can input the second information for configuring the memory information, and a machine learning model can be used to understand and summarize the second information to generate the corresponding memory information of the user. Of course, the second information input by the user can also be directly used as the corresponding memory information of the user.
[0067] The user is provided with a way to directly configure the interaction information, and the information that the user wants the interaction device to remember is saved, which can improve the accuracy of memory generation, output more reply information that meets the user's intention in the subsequent interaction process, and improve the user's experience.
[0068] The following describes how to perform interactive configuration with the user in conjunction with some embodiments.
[0069] In some embodiments, a configuration guide interface is displayed, wherein the configuration guide interface includes a configuration trigger control; in response to the user's operation on the configuration trigger control, a memory information interface is displayed, wherein the memory information interface includes an add control; in response to the user's operation on the add control, a memory input interface is displayed; and second information input by the user in the memory input interface is received.
[0070] The user can be guided step by step to perform operations through the switching display of multiple interfaces, and the configuration of memory information can be completed, which is convenient for the user to operate accurately.
[0071] The following combination Figures 4-6 Describes some embodiments of interface displays during interactive configuration with users.
[0072] like Figure 4 As shown, a configuration guide interface 401 can be displayed on the interaction interface between the user and agent A to prompt the user that agent A has a memory function. Figure 4 The configuration guide interface is displayed in the form of a panel, and can also be displayed in various forms such as a floating layer, a window or a new page, and is not limited to the examples given.
[0073] Configuration guide interface 401 may display a configuration trigger control 402, which the user may trigger to proceed with the subsequent memory configuration process. Configuration guide interface 401 may also display information explaining the memory function, such as explaining that agent A can learn and generate memory information during a conversation with the user, can continuously generate memory information, and that the user can manage the memory information, etc., without limitation to these examples.
[0074] The configuration guide interface 401 can be displayed in response to the user starting the interaction with the intelligent agent A, the configuration guide interface 401 can be displayed in response to the first determination that the first information input by the user is information that needs to be remembered, and the display of the configuration guide interface 401 can also be triggered in other ways, not limited to the examples given.
[0075] like Figure 5 As shown, in response to the user's operation on the configuration trigger control 402, the memory information interface is displayed. The memory information interface displays an add control 501. The memory information interface may also include one or more stored memory information 502 of the user. The display format of the memory information interface can be configured according to actual needs and is not limited to the example shown.
[0076] like Figure 6As shown, in response to the user's triggering operation on the add control 501, a memory input interface 601 is displayed. The memory input interface may include an input area and a display area. In the input area, the user can input the second information in a variety of ways, and in the display area, the second information input by the user can be displayed. A save control 602 may also be displayed. In response to the user triggering the save control 602, memory information corresponding to the second information may be generated. Figure 5 As shown, the generated memory information can be displayed in the memory information interface.
[0077] Users can manage memory information. In some embodiments, in response to a user triggering an operation on the memory information interface, the memory information interface is displayed and the stored memory information is displayed in chronological order on the memory information interface; in response to a user deleting one or more memory information in the stored memory information, the one or more memory information is deleted.
[0078] like Figure 4 As shown, the memory information interface can be displayed in response to the user's operation of the configuration trigger control in the configuration guide interface, or the memory information interface can be displayed through other means. For example, in response to the user triggering the memory management control in the personal page, the memory information interface is displayed, and is not limited to the examples given. Figure 5 As shown, the stored memory information can be displayed in chronological order in the memory information interface, and a deletion control 503 can be displayed for each memory information. In response to the user triggering the deletion control of one or more memory information, one or more memory information can be deleted.
[0079] In some embodiments, in response to a user modifying one or more pieces of stored memory information, the modified memory information is displayed.
[0080] For example, Figure 5 As shown, the user can click on any memory information 502 to trigger the modification of the memory information. In response to the user's modification operation on any memory information, a memory modification interface can be displayed. The form of the memory modification interface can be the same as Figure 6 The form of the memory input interface is similar to that of the memory input interface in the example above, and other forms may also be used. The memory information to be modified can be displayed in the display area, and the user can modify the memory information to be modified. Figure 5 The modified memory information is displayed in the memory information interface shown.
[0081] Users can also manage the methods for generating memory information. In some embodiments, a switch control corresponding to at least one target interaction method among multiple interaction methods is displayed on the memory information interface; in response to the user turning on the switch control corresponding to the at least one target interaction method, the function of generating user-related memory information based on the information input by the user through the at least one target interaction method is turned on; in response to the user turning off the switch control corresponding to the at least one target interaction method, the function of generating user-related memory information based on the information input by the user through the at least one target interaction method is turned off.
[0082] Users can control various ways of generating memory information. For example, users can choose to turn on or off the function of generating memory information during the conversation, or users can choose to turn on or off the function of generating memory information through the interactive configuration process.
[0083] like Figure 5 As shown, a switch control 504 can be displayed in the memory information interface. This switch control 504 can be used to turn on or off the function of generating corresponding memory information for the user based on the information input by the user through the first interaction method (user and agent dialogue). After turning off this switch control 504, agent A will no longer automatically generate memory information during the user's interaction with agent A. By setting this switch control, the user can flexibly configure different memory information generation functions. For content that is not desired to be remembered, the corresponding memory information generation function can be turned off, thereby improving the user's information security and user experience.
[0084] While the above embodiments guide the user to configure memory information through the provision of multiple interfaces and controls, other methods may also be used to guide the user to configure memory information and input second information to generate memory information. In some embodiments, an information interaction interface is displayed, and preset questions for configuring memory information are displayed in the information interaction interface; and second information input by the user to answer the preset questions is received.
[0085] A question-and-answer format may be used to receive the second information input by the user by answering preset questions, and generate memory information based on the second information. For example, in an interactive interface with the user, the user may be asked about their hobbies during a conversation, and the user may be guided to enter relevant information as the second information.
[0086] In some embodiments, during the interactive configuration process with the user, a file uploaded by the user is received; and the file is used as memory information corresponding to the user.
[0087] The user can save information to be memorized in a file and configure by directly uploading the file. The interaction device can parse the file and extract the content to generate the corresponding memory information of the user.
[0088] The user can input information in multiple ways, and the interaction device can generate memory information in multiple ways, which facilitates the use of the user and makes the generated memory information more comprehensive and accurate. The interaction device can manage the memory information. In some embodiments, after generating the memory information, the generated memory information is compared with the stored memory information to determine whether there is a repetition or contradiction between the generated memory information and the stored memory information. In response to the existence of the repetition, the generated memory information or the stored memory information is deleted. In response to the existence of the contradiction, the stored memory information is deleted.
[0089] By removing the repeated and contradictory memory information, the stored memory information can be more accurate, and the accuracy of subsequent interaction can be improved.
[0090] The following describes how to interact with the user according to the corresponding memory information of the user according to some embodiments.
[0091] In some embodiments, in response to the third information input by the user, it is determined whether to reply based on the memory information according to the third information. In response to determining to reply based on the memory information, target memory information matching the third information is determined from the memory information corresponding to the user. The reply information of the third information is generated according to the third information and the target memory information.
[0092] The machine learning model can be used to understand the semantics of the third information and determine whether to reply based on the memory information. For example, the third information input by the user includes an explicit requirement, such as the third information being "Please help me provide several cherry blossom wallpapers". In this case, it is not necessary to reply in combination with the memory information of the user. Whether to reply based on the memory information can be determined according to the semantic information of the third information, which is not limited to the examples shown.
[0093] If it is determined to reply based on the memory information, target memory information matching the third information is determined from the memory information corresponding to the user. For example, the semantic information of the third information can be matched with the semantic information of the memory information to determine the target memory information. For example, the third information is "I want to find some good food nearby", and through semantic understanding and matching, it can be determined that the target memory information includes the address information of the user and the taste preference information of the user.
[0094] Further, the reply information conforming to the target memory information and capable of responding to the third information is generated according to the third information and the target memory information.
[0095] In some embodiments, according to the third information and the target memory information, generating the reply information of the third information includes: determining whether the reply information of the third information includes the search result and the generative result according to semantic information of the third information; in response to the reply information including the search result and the generative result, searching according to the third information and the target memory information to obtain the search result; determining the generative result according to the search result, the third information and the target memory information; and generating the reply information according to the search result and the generative result.
[0096] The intention of the user can be identified according to the semantic information of the third information, and it is determined whether the user wants to obtain the search result or the generative result. For example, the third information includes indication information of the type of the result included in the reply information, and the indication information is used to determine the search result and / or the generative result. For example, the third information is "help me generate a poem", which explicitly indicates that the user wants to obtain the generative result.
[0097] In some embodiments, according to the semantic information of the third information, the field related to the third information is determined, and in response to the field related to the third information being a preset field, it is determined that the reply information of the third information includes the search result and the generative result. For example, the field related to the third information is the field of travel, film and television, game tutorial, fitness tutorial, news, encyclopedia, etc., and the reply information can include the search result and the generative result, which is not limited to the examples. Moreover, the search result and the generative result are associated with each other, so as to improve the effect of the reply information, better reply to the user's question, and improve the user experience.
[0098] In response to the reply information including the search result and the generative result, the search result can be obtained first according to the third information and the target memory information. The search result can be one or more media types such as text, image, audio and video. For example, the target memory information can involve address information, and the relevant search is performed according to the third information and the address information. For example, the target memory information involves the user's hobby information, and the relevant search is performed according to the third information and the hobby information.
[0099] After obtaining the search result, the generative result can be determined according to the search result, the third information and the target memory information. For example, the search result, the third information and the target memory information are input into a generative model to obtain the generative result. The generative result is associated with the search result and is generated based on the search result. The two are not isolated from each other, which improves the fluency and integrity of the content of the reply information, is easier for the user to understand, and improves the user experience.
[0100] Further, the search result and the generative result are combined and arranged according to a preset layout to generate the reply information. The search result and the generative result can include one or more, and the reply information can include one or more.
[0101] In some embodiments, the search is performed according to the third information and the target memory information, a plurality of candidate search results are obtained, one or more generative results are generated according to the third information and the target memory information, the plurality of candidate search results and the one or more generative results are semantically matched, a candidate search result matched with the one or more generative results is selected as a search result, and further, the search result and the generative result are combined, arranged according to a preset layout, and the reply information is generated.
[0102] In the above embodiments, in response to the user inputting the third information, the reply information can be generated according to the third information and the memory information, improving the accuracy and effectiveness of the interaction with the user. In addition to replying to the user according to the memory information, the dialogue with the user can also be started according to the memory information. In some embodiments, in response to the first start or restart of the dialogue with the user, the start information of the dialogue is generated according to the memory information corresponding to the user; and the start information is displayed.
[0103] The first start or restart of the dialogue with the user indicates that the user starts a new round of dialogue. For example, the user first starts the interactive application or reenters the interactive application after a period of time, indicating that the dialogue with the user is first started or restarted. In the case where the user does not input information, the start information of the dialogue can be generated according to the memory information corresponding to the user.
[0104] In some embodiments, the target information related to the memory information is searched from one or more databases according to the memory information corresponding to the user; and the start information of the dialogue is generated according to the memory information and the target information.
[0105] For example, the target information related to the memory information is searched according to the memory information corresponding to the user and the access heat of the information in the one or more databases. The access heat of the information can be determined according to at least one of the access amount, the comment amount, and the search amount. The target information related to the memory information and having high access heat can be determined, and the start information of the dialogue is generated according to the target information. For example, the user likes the music of a certain star, and the corresponding memory information can be generated. In the case where the star releases a new song, the new song can be recommended to the user as the start information of the dialogue.
[0106] Starting the dialogue with the user according to the memory information can attract the user more, improve the interest of the user in the dialogue, and start the dialogue more smoothly, close to the real human dialogue, and improve the accuracy and effectiveness of the interaction with the user.
[0107] In some embodiments, in response to the memory information corresponding to the user including memory information indicating a plan of the user, a reminder message is sent to the user according to the memory information indicating the plan of the user.
[0108] For example, the memory information includes user's fitness plan information, and a reminder message can be sent to the user according to the fitness plan information. The user can be assisted in managing the formulated plan, and the user's interactive experience can be improved.
[0109] The present disclosure also provides an interactive device, which will be described below in combination with Figure 7 the description.
[0110] Figure 7 A structural diagram of some embodiments of the interactive device of the present disclosure is shown in FIG. 7. As shown in FIG. 7, the interactive device 70 of the embodiment includes a receiving module 710, a generating module 720, and an interacting module 730. Figure 7
[0111] The receiving module 710 is configured to receive information input by the user through multiple interactive modes.
[0112] The generating module 720 is configured to generate memory information corresponding to the user according to the input information, wherein the way of generating the memory information is different for different interactive modes, and the memory information corresponding to the user includes relevant information of the user.
[0113] The interacting module 730 is configured to interact with the user according to the memory information corresponding to the user.
[0114] In some embodiments, the multiple interactive modes include a first interactive mode of having a conversation with the user, and the generating module 720 is configured to, in the process of having the conversation with the user, identify semantic information of first information input by the user; determine, according to the semantic information, whether the first information belongs to information that needs to be remembered; and in response to the first information belonging to the information that needs to be remembered, generate the memory information corresponding to the user according to the first information.
[0115] In some embodiments, the multiple interactive modes include a second interactive mode of interactive configuration with the user, and the generating module 720 is configured to, in the process of the interactive configuration with the user, receive second information input by the user; summarize the second information, and generate the memory information corresponding to the user.
[0116] In some embodiments, the generating module 720 is configured to display a configuration guide interface, wherein the configuration guide interface includes a configuration trigger control; in response to an operation of the configuration trigger control by the user, display a memory information interface, wherein the memory information interface includes an adding control; in response to an operation of the adding control by the user, display a memory input interface; and receive second information input by the user in the memory input interface.
[0117] In some embodiments, the generating module 720 is configured to display an information interaction interface, and display a preset question for configuring the memory information in the information interaction interface; and receive second information input by the user for answering the preset question.
[0118] In some embodiments, the plurality of interaction modes includes a second interaction mode of interacting with the user for interactive configuration, and the generating module 720 is configured to, in the process of interacting with the user for interactive configuration, receive a file uploaded by the user; and take the file as the memory information corresponding to the user.
[0119] In some embodiments, the generating module 720 is configured to identify semantic information of the input information; determine, according to the semantic information, a memory type corresponding to the input information, wherein different memory types correspond to different valid times; and generate, according to the memory type and the input information, the memory information corresponding to the user.
[0120] In some embodiments, the interaction device 70 further includes a management module 740 configured to, in response to the current time exceeding the valid time of the memory information, delete the stored memory information.
[0121] In some embodiments, the generating module 720 is configured to identify semantic information of the input information; determine, according to the semantic information, an attribute corresponding to the input information; and generate, according to the attribute and the input information, the memory information corresponding to the user.
[0122] In some embodiments, the interaction module 730 is configured to, in response to third information input by the user, determine, according to the third information, whether to reply based on the memory information; in response to determining to reply based on the memory information, determine, from the memory information corresponding to the user, target memory information matching the third information; and generate, according to the third information and the target memory information, reply information of the third information.
[0123] In some embodiments, the interaction module 730 is configured to determine, according to semantic information of the third information, whether the reply information of the third information includes search results and generated results; in response to the reply information including the search results and the generated results, search, according to the third information and the target memory information, to obtain the search results; determine, according to the search results, the third information and the target memory information, the generated results; and generate, according to the search results and the generated results, the reply information.
[0124] In some embodiments, the interaction module 730 is configured to, in response to the first start or restart of the conversation with the user, generate, according to the memory information corresponding to the user, start information of the conversation; and display the start information.
[0125] In some embodiments, the interaction module 730 is configured to search, according to the memory information corresponding to the user, target information related to the memory information from one or more databases; and generate, according to the memory information and the target information, start information of the conversation.
[0126] In some embodiments, the interaction module 730 is configured to, in response to the memory information corresponding to the user including memory information representing a plan of the user, send a reminder message to the user according to the memory information representing the plan of the user.
[0127] In some embodiments, the interaction device 70 further includes a management module 740 configured to, in response to a triggering operation of the user on the memory information interface, display the memory information interface and display the stored memory information in chronological order in the memory information interface; and in response to a deletion operation of the user on one or more pieces of the stored memory information, delete the one or more pieces of memory information.
[0128] In some embodiments, the management module 740 is further configured to display, in the memory information interface, a switch control corresponding to at least one target interaction mode of a plurality of interaction modes; in response to an opening operation of the user on the switch control corresponding to the at least one target interaction mode, open a function of generating memory information corresponding to the user according to information input by the user through the at least one target interaction mode; and in response to a closing operation of the user on the switch control corresponding to the at least one target interaction mode, close the function of generating memory information corresponding to the user according to information input by the user through the at least one target interaction mode.
[0129] It should be noted that each unit (module) described above is only a logical module according to the specific function implemented by it, and is not used to limit the specific implementation manner, for example, it can be implemented in software, hardware or a combination of software and hardware. In actual implementation, each unit described above can be implemented as an independent physical entity, or can also be implemented by a single entity (for example, a processor (CPU or DSP, etc.), an integrated circuit, etc.). In addition, each unit described above is indicated by a dashed line in the drawings, indicating that these units can not actually exist, and the operations / functions implemented by them can be implemented by the processing circuit itself.
[0130] In addition, although not shown, the device may also include a memory that can store various information generated by the device and the various units contained in the device during operation, programs and data used for operation, data to be sent by the communication unit, etc. The memory can be volatile memory and / or non-volatile memory. For example, the memory can include but is not limited to random access memory (RAM), dynamic random access memory (DRAM), static random access memory (SRAM), read-only memory (ROM), and flash memory. Of course, the memory can also be located outside the device. Optionally, although not shown, the device may also include a communication unit that can be used to communicate with other devices. In one example, the communication unit can be implemented in an appropriate manner known in the art, for example, including communication components such as an antenna array and / or a radio frequency link, various types of interfaces, communication units, etc. This will not be described in detail here. In addition, the device may also include other components not shown, such as a radio frequency link, a baseband processing unit, a network interface, a processor, a controller, etc. This will not be described in detail here.
[0131] Some embodiments of the present disclosure also provide an electronic device. Figure 8 Block diagrams of some embodiments of the electronic devices of the present disclosure are shown. For example, in some embodiments, the electronic device 80 can be various types of devices, for example, including but not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. For example, the electronic device 80 may include a display panel for displaying data and / or execution results utilized in the scheme of the present disclosure. For example, the display panel can be of various shapes, such as a rectangular panel, an elliptical panel, or a polygonal panel. In addition, the display panel can be not only a flat panel, but also a curved panel or even a spherical panel.
[0132] like Figure 8 As shown, the electronic device 80 of this embodiment includes: a memory 81 and a processor 82 coupled to the memory 81. It should be noted that Figure 8 The components of the electronic device 80 shown are merely exemplary and non-limiting. The electronic device 80 may also have other components according to actual application requirements. The processor 82 may control the other components in the electronic device 80 to perform desired functions.
[0133] In some embodiments, the memory 81 is configured to store one or more computer readable instructions. The processor 82 is configured to execute the computer readable instructions, and the computer readable instructions, when executed by the processor 82, implement the method according to any of the above embodiments. The specific implementation of each step of the method and the related explanations can be referred to the above embodiments, and the repeated parts will not be described here.
[0134] For example, the processor 82 and the memory 81 can communicate with each other directly or indirectly. For example, the processor 82 and the memory 81 can communicate through a network. The network can include a wireless network, a wired network, and / or any combination of a wireless network and a wired network. The processor 82 and the memory 81 can also communicate with each other through a system bus, and the present disclosure does not limit the processor 82 and the memory 81.
[0135] For example, the processor 82 can be embodied as various appropriate processors, processing devices, etc., such as a central processing unit (CPU), a graphics processing unit (GPU), a network processing unit (NP), etc., and can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. The central processing unit (CPU) can be X86 or ARM architecture, etc. For example, the memory 81 can include any combination of various forms of computer readable storage media, such as volatile memory and / or non-volatile memory. The memory 81 may, for example, include system memory, which may, for example, store an operating system, application programs, a boot loader, a database, and other programs, etc. Various application programs and various data, etc. can also be stored in the storage medium.
[0136] In addition, according to some embodiments of the present disclosure, various operations / processes according to the present disclosure, when implemented by software and / or firmware, can be downloaded from a storage medium or a network to a computer system with a dedicated hardware structure, such as Figure 9 The computer system (or electronic device) 90 shown is installed with programs that make up the software, and the computer system, when various programs are installed, can perform various functions, including functions such as the foregoing, etc. Figure 9 is a block diagram showing an example structure of a computer system that can be employed in the embodiment according to the present disclosure.
[0137] In Figure 9In the CPU 901, various processes are executed in accordance with a program stored in the read only memory (ROM) 902 or a program loaded from the storage section 908 to the random access memory (RAM) 903. In the RAM 903, data required when the CPU 901 executes various processes and the like is also stored as necessary. The central processing unit is merely exemplary, and can be other types of processors such as the various processors described above. The ROM 902, the RAM 903, and the storage section 908 can be various forms of computer readable storage media, as described below. Note that, although Figure 9 The ROM 902, the RAM 903, and the storage section 908 are each shown in the CPU 901, but one or more of them can be combined or located in the same or different memory or storage modules.
[0138] The CPU 901, the ROM 902, and the RAM 903 are connected to each other via the bus 904. The input / output interface 905 is also connected to the bus 904.
[0139] The following components are connected to the input / output interface 905: an input section 906, such as a touch panel, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, and the like; an output section 907, including a display, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a speaker, a vibrator, and the like; a storage section 908, including a hard disk, a magnetic tape, and the like; and a communication section 909, including a network interface card, such as a LAN card, a modem, and the like. The communication section 909 allows communication processing to be performed via a network, such as the Internet. It is readily understood that, although Figure 9 The various devices or modules in the computer system 90 are shown in the CPU 901 as communicating via the bus 904, but they can also communicate through a network or other means, where the network can include a wireless network, a wired network, and / or any combination of a wireless network and a wired network.
[0140] A drive 910 is also connected to the input / output interface 905 as necessary. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, is mounted on the drive 910 as necessary, so that a computer program read therefrom is installed in the storage section 908 as necessary.
[0141] In the case where the above series of processes are implemented by software, the program constituting the software can be installed from a network such as the Internet or a storage medium such as the removable medium 911.
[0142] According to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for executing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 909, or installed from the storage section 908, or installed from the ROM 902. When the computer program is executed by the CPU 901, the above-described functions defined in the methods of the embodiments of the present disclosure are executed.
[0143] Note that, in the context of the present disclosure, a computer-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the above. More specific examples of the computer-readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, the computer-readable storage medium can be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, the computer-readable signal medium can include a data signal carried in a baseband or as part of a carrier wave, in which the computer-readable program code is carried. Such a propagated data signal can take any of a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium that is not a computer-readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wire, cable, RF (radio frequency), or the like, or any suitable combination of the above.
[0144] The above-described computer-readable medium can be included in the above-described electronic device; or can exist separately from the electronic device without being incorporated into the electronic device.
[0145] In some embodiments, a computer program including instructions which, when executed by a processor, causes the processor to carry out the method according to any of the embodiments described above is also provided. For example, the instructions can be embodied in a computer program code.
[0146] In an embodiment of the disclosure, the computer program code for carrying out operations of the disclosure can be written in one or more programming languages or combinations thereof including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages such as "C" programming language or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0147] The flow diagrams and the block diagrams in the drawings are illustrations of possible architectures, functions, and operations for systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flow diagrams or block diagrams can represent a module, a segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may
[0148] The modules, components or units described in the embodiments of the present disclosure can be implemented by software or by hardware. In some cases, the name of the module, component or unit does not constitute a limitation on the module, component or unit itself.
[0149] The functionality described herein above can be performed, at least in part, by one or more hardware logic components. For example, and without limitation, example hardware logic components that can be used include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip systems (SOCs), complex programmable logic devices (CPLDs), etc.
[0150] According to some embodiments of the present disclosure, an interaction method is provided, including: receiving information input by a user through multiple interaction modes; generating memory information corresponding to the user according to the input information, wherein the memory information is generated in different ways for different interaction modes, and the memory information corresponding to the user includes relevant information of the user; and interacting with the user according to the memory information corresponding to the user.
[0151] In some embodiments, the multiple interaction modes include a first interaction mode of having a conversation with the user, and the generating of the memory information corresponding to the user according to the input information includes: identifying semantic information of first information input by the user in the process of having the conversation with the user; determining whether the first information belongs to information that needs to be memorized according to the semantic information; and generating the memory information corresponding to the user according to the first information in response to the first information belonging to the information that needs to be memorized.
[0152] In some embodiments, the multiple interaction modes include a second interaction mode of interactive configuration with the user, and the generating of the memory information corresponding to the user according to the input information includes: receiving second information input by the user in the process of the interactive configuration with the user; and summarizing the second information to generate the memory information corresponding to the user.
[0153] In some embodiments, in the process of the interactive configuration with the user, the receiving of the second information input by the user includes: displaying a configuration guide interface, wherein the configuration guide interface includes a configuration trigger control; displaying a memory information interface in response to an operation of the configuration trigger control by the user, wherein the memory information interface includes an adding control; displaying a memory input interface in response to an operation of the adding control by the user; and receiving second information input by the user in the memory input interface.
[0154] In some embodiments, in the process of the interactive configuration with the user, the receiving of the second information input by the user includes: displaying an information interaction interface, and displaying a preset question for configuring the memory information in the information interaction interface; and receiving second information input by the user for answering the preset question.
[0155] In some embodiments, the plurality of interaction modes includes a second interaction mode of interacting with the user in an interactive manner, and generating the memory information corresponding to the user according to the input information includes: receiving a file uploaded by the user in the process of interacting with the user in the interactive manner; and taking the file as the memory information corresponding to the user.
[0156] In some embodiments, generating the memory information corresponding to the user according to the input information includes: identifying semantic information of the input information; determining a memory type corresponding to the input information according to the semantic information, wherein different memory types correspond to different valid time; and generating the memory information corresponding to the user according to the memory type and the input information.
[0157] In some embodiments, the interaction method further includes: deleting the stored memory information in response to the current time exceeding the valid time of the memory information.
[0158] In some embodiments, generating the memory information corresponding to the user according to the input information includes: identifying semantic information of the input information; determining an attribute corresponding to the input information according to the semantic information; and generating the memory information corresponding to the user according to the attribute and the input information.
[0159] In some embodiments, interacting with the user according to the memory information corresponding to the user includes: determining whether to reply based on the memory information according to third information input by the user in response to the third information; determining target memory information matching the third information from the memory information corresponding to the user in response to a determination that the reply is based on the memory information; and generating reply information of the third information according to the third information and the target memory information.
[0160] In some embodiments, generating the reply information of the third information according to the third information and the target memory information includes: determining whether to include search results and generated results in the reply information of the third information according to semantic information of the third information; obtaining the search results by searching according to the third information and the target memory information in response to the reply information including the search results and the generated results; determining the generated results according to the search results, the third information and the target memory information; and generating the reply information according to the search results and the generated results.
[0161] In some embodiments, interacting with the user according to the memory information corresponding to the user includes: generating start information of a conversation according to the memory information corresponding to the user in response to a first start or a restart of the conversation with the user; and displaying the start information.
[0162] In some embodiments, generating the start information of the conversation according to the memory information corresponding to the user includes: searching for target information related to the memory information from one or more databases according to the memory information corresponding to the user; and generating the start information of the conversation according to the memory information and the target information.
[0163] In some embodiments, the interacting with the user according to the memory information corresponding to the user comprises: in response to the memory information corresponding to the user including memory information representing a plan of the user, sending a reminder message to the user according to the memory information representing the plan of the user.
[0164] In some embodiments, the interacting device further comprises: in response to a triggering operation of the user on the memory information interface, displaying the memory information interface and displaying the stored memory information in chronological order in the memory information interface; and in response to a deletion operation of the user on one or more pieces of the stored memory information, deleting the one or more pieces of memory information.
[0165] In some embodiments, the interacting device further comprises: displaying a switch control corresponding to at least one target interaction mode of the plurality of interaction modes in the memory information interface; in response to an opening operation of the user on the switch control corresponding to the at least one target interaction mode, opening a function of generating the memory information corresponding to the user according to the information input by the user through the at least one target interaction mode; and in response to a closing operation of the user on the switch control corresponding to the at least one target interaction mode, closing the function of generating the memory information corresponding to the user according to the information input by the user through the at least one target interaction mode.
[0166] According to another embodiment of the present disclosure, an interacting device is provided, comprising: a receiving module configured to receive information input by a user through a plurality of interaction modes; a generating module configured to generate memory information corresponding to the user according to the input information, wherein the way of generating the memory information is different for different interaction modes, and the memory information corresponding to the user includes relevant information of the user; and an interacting module configured to interact with the user according to the memory information corresponding to the user.
[0167] According to still another embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory coupled to the processor, configured to store instructions, the instructions being executed by the processor to cause the processor to perform the interacting method of any embodiment of the present disclosure.
[0168] According to yet another embodiment of the present disclosure, a computer readable storage medium is provided, having stored thereon a computer program, the program being executed by a processor to perform the interacting method of any embodiment of the present disclosure.
[0169] According to still another embodiment of the present disclosure, a computer program product is provided, comprising: instructions, the instructions being executed by a processor to implement the interacting method of any embodiment of the present disclosure.
[0170] According to some further embodiments of the present disclosure, a computer program is provided, comprising: instructions, which implement the interactive method of any embodiment of the present disclosure when the instructions are executed by a processor.
[0171] The above descriptions are merely some embodiments of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in the present disclosure.
[0172] In the description provided herein, numerous specific details are set forth. However, it is understood that embodiments of the present invention may be practiced without these specific details. In other cases, well-known methods, structures, and techniques are not presented in detail in order not to obscure the understanding of the description.
[0173] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0174] Although some specific embodiments of the present disclosure have been described in detail by way of examples, those skilled in the art will appreciate that the above examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Those skilled in the art will appreciate that modifications may be made to the above embodiments without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. An interactive method, comprising: Receive user input through various interactive methods; Generate memory information corresponding to the user based on the input information, wherein the memory information is generated in different ways for different interaction modes, and the memory information corresponding to the user includes relevant information of the user; interacting with the user according to the memory information corresponding to the user, The multiple interaction modes include a first interaction mode of conducting a conversation with the user, and the generating of memory information corresponding to the user based on the input information includes: During a conversation with the user, the semantic information of the first information input by the user is identified, and based on the semantic information, it is determined whether the first information belongs to information that needs to be remembered. In response to the first information belonging to information that needs to be remembered, memory information corresponding to the user is generated based on the first information, and guidance information is generated and displayed based on the first information, wherein the guidance information is used to guide the user to input information related to the generated memory information, and expand the generated memory information based on the input information related to the generated memory information.
2. The interactive method according to claim 1, wherein: The multiple interaction modes include a second interaction mode for interactive configuration with the user, and the generating of memory information corresponding to the user according to the input information includes: During interactive configuration with the user, receiving second information input by the user; The second information is summarized to generate memory information corresponding to the user.
3. The interactive method according to claim 2, wherein: In the process of interactive configuration with the user, receiving the second information input by the user includes: Displaying a configuration guide interface, wherein the configuration guide interface includes a configuration trigger control; In response to the user's operation on the configuration trigger control, displaying a memory information interface, wherein the memory information interface includes an add control; In response to the user's operation on the adding control, displaying a memory input interface; The second information input by the user in the memory input interface is received.
4. The interactive method according to claim 2, wherein: In the process of interactive configuration with the user, receiving the second information input by the user includes: Displaying an information interaction interface, and displaying preset questions for configuring memory information in the information interaction interface; The second information input by the user for answering the preset question is received.
5. The interactive method according to claim 1, wherein: The multiple interaction modes include a second interaction mode for interactive configuration with the user, and the generating of memory information corresponding to the user according to the input information includes: During interactive configuration with the user, receiving a file uploaded by the user; The file is used as the memory information corresponding to the user.
6. The interactive method according to claim 1, wherein: Generating the memory information corresponding to the user according to the input information includes: Identifying semantic information of the input information; Determining a memory type corresponding to the input information according to the semantic information, wherein different memory types correspond to different effective times; Memory information corresponding to the user is generated according to the memory type and the input information.
7. The interactive method according to claim 6, further comprising: In response to the current time exceeding the effective time of the memory information, the stored memory information is deleted.
8. The interactive method according to claim 1, wherein: Generating the memory information corresponding to the user according to the input information includes: Identifying semantic information of the input information; Determining an attribute corresponding to the input information according to the semantic information; Memory information corresponding to the user is generated according to the attributes and the input information.
9. The interactive method according to any one of claims 1 to 8, wherein: The interacting with the user according to the memory information corresponding to the user includes: In response to third information input by the user, determining whether to reply based on the remembered information according to the third information; In response to determining to reply based on the memory information, determining target memory information that matches the third information from the memory information corresponding to the user; Generate reply information of the third information according to the third information and the target memory information.
10. The interactive method according to claim 9, wherein: The generating of reply information of the third information according to the third information and the target memory information includes: determining, based on the semantic information of the third information, whether the reply information of the third information includes the search results and the generated results; In response to the reply information including the search results and the generated results, searching according to the third information and the target memory information to obtain the search results; determining the generative result according to the search result, the third information, and the target memory information; The reply information is generated according to the search results and the generated result.
11. The interactive method according to any one of claims 1 to 8, wherein: The interacting with the user according to the memory information corresponding to the user includes: In response to the first opening or reopening of a conversation with the user, generating start information of the conversation based on the memory information corresponding to the user; The start information is displayed.
12. The interactive method according to claim 11, wherein: Generating the start information of the conversation according to the memory information corresponding to the user includes: According to the memory information corresponding to the user, searching for target information related to the memory information from one or more databases; The start information of the conversation is generated based on the memory information and the target information.
13. The interactive method according to any one of claims 1 to 8, wherein: The interacting with the user according to the memory information corresponding to the user includes: In response to the memory information corresponding to the user including memory information indicating the user's plan, a reminder message is sent to the user according to the memory information indicating the user's plan.
14. The interaction method according to any one of claims 1 to 8, further comprising: In response to the user triggering the memory information interface, displaying the memory information interface and displaying the stored memory information in chronological order on the memory information interface; In response to the user's deletion operation on one or more pieces of memory information in the stored memory information, the one or more pieces of memory information are deleted.
15. The interactive method according to claim 14, further comprising: Displaying a switch control corresponding to at least one target interaction mode among the multiple interaction modes in the memory information interface; In response to the user turning on a switch control corresponding to at least one target interaction mode, turning on a function of generating memory information corresponding to the user based on information input by the user through the at least one target interaction mode; In response to the user performing a closing operation on a switch control corresponding to at least one target interaction mode, a function of generating memory information corresponding to the user based on information input by the user through the at least one target interaction mode is closed.
16. An interactive device comprising: A receiving module is configured to receive information input by a user through multiple interactive modes; a generating module configured to generate memory information corresponding to the user based on the input information, wherein the memory information is generated in different ways for different interaction modes, and the memory information corresponding to the user includes relevant information of the user; An interaction module is configured to interact with the user according to the memory information corresponding to the user, Among them, the multiple interaction methods include a first interaction method for conducting a conversation with the user, and the generation module is configured to identify the semantic information of the first information input by the user during the conversation with the user, determine whether the first information belongs to information that needs to be remembered based on the semantic information, and in response to the first information belonging to information that needs to be remembered, generate memory information corresponding to the user based on the first information, and generate and display guidance information based on the first information, wherein the guidance information is used to guide the user to input information related to the generated memory information, and expand the generated memory information based on the input information related to the generated memory information.
17. An electronic device comprising: processor; as well as A memory coupled to the processor, for storing instructions, wherein when the instructions are executed by the processor, the processor executes the interaction method according to any one of claims 1 to 15.
18. A computer-readable storage medium having a computer program stored thereon, wherein: When the program is executed by a processor, the interactive method according to any one of claims 1 to 15 is implemented.
19. A computer program product comprising instructions which, when executed by a processor, cause the processor to perform the interaction method according to any one of claims 1 to 15.
Citation Information
Patent Citations
Man-machine conversation generation method and device, electronic equipment and storage medium
CN114969250A
Information storage method and device, electronic equipment and storage medium
CN118012328A
Human-computer interaction method and device, electronic equipment and storage medium
CN118098217A
Information interaction method and device, electronic equipment and storage medium
CN118210886A
Generation method and device of intelligent agent, interaction method and device, medium and equipment
CN118689347A