Generation method and device of intelligent agent, interaction method and device, medium and equipment
By obtaining the target user's historical files to generate the target agent, it solves the problem of chat robots being difficult to achieve personalized interaction, and improves the matching and interactive experience between the agent and the user.
Patent Information
- Application Number
- CN202410702873.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-24
AI Technical Summary
Existing chatbots are difficult to achieve personalized interaction and cannot effectively match user needs, resulting in poor interactive experience.
By displaying the interactive interface of the agent, the target user's historical files are obtained, and the target agent is generated based on these files to achieve personalized interaction.
It improves the matching and anthropomorphism level between the agent and the user, enhances the personalization and consistency of the interaction, and improves the user experience.
Smart Images

Figure CN118689347A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular, to a method, apparatus, medium, device, and computer program product for generating an intelligent agent. Background Art
[0002] With the development of computer technology, users can interact with chatbots to achieve communication. In related technologies, chatbots can provide communication with users, which usually rely on general communication scripts and NLP (Natural Language Processing) capabilities, making it difficult to achieve personalized interaction. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a method for generating an intelligent agent, the method comprising:
[0005] Display the interactive interface corresponding to the intelligent agent;
[0006] Based on the interactive interface, a history file of a target user corresponding to the agent is obtained, wherein the history file contains operation records of the target user in a historical period;
[0007] Based on the historical file, a target agent corresponding to the target user is obtained.
[0008] In a second aspect, the present disclosure provides an interaction method, the method comprising:
[0009] Receive user input information;
[0010] Based on a target intelligent agent, determining reply information corresponding to the input information, wherein the target intelligent agent is determined based on the intelligent agent generation method described in the first aspect;
[0011] The reply information is output based on the input type of the input information.
[0012] In a third aspect, the present disclosure provides a device for generating an intelligent agent, the device comprising:
[0013] The first display module is used to display the interactive interface corresponding to the intelligent agent;
[0014] An acquisition module, configured to obtain, based on the interactive interface, a history file of a target user corresponding to the agent, wherein the history file includes an operation record of the target user within a historical period;
[0015] A processing module is used to obtain a target agent corresponding to the target user based on the historical file.
[0016] In a fourth aspect, the present disclosure provides an interactive device, the device comprising:
[0017] A second receiving module is used to receive input information from a user;
[0018] A second determination module, configured to determine reply information corresponding to the input information based on a target agent, wherein the target agent is determined based on the agent generation method described in the first aspect;
[0019] An output module is used to output the reply information based on the input type of the input information.
[0020] In a fifth aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which implements the steps of the method described in the first aspect or the second aspect when the computer program is executed by a processing device.
[0021] In a sixth aspect, the present disclosure provides an electronic device, including:
[0022] a storage device having a computer program stored thereon;
[0023] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in the first aspect or the second aspect.
[0024] In a seventh aspect, the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the first aspect or the second aspect.
[0025] Thus, in the above technical solution, the historical file corresponding to the target user can be obtained, and then the historical file is provided to the agent in the form of file interaction, and the target agent corresponding to the target user is obtained with the historical file. Through the above technical solution, data can be provided to the agent in the form of file interaction, which facilitates the data acquisition of the target agent and reduces the complexity of the operation of generating the target agent. At the same time, the corresponding target agent is generated through the historical file of the target user, which can also improve the matching degree between the target agent and the performance of the target user, improve the consistency between the generated target agent and the user's needs, and improve the personification level and personalization level of the generated target agent, so that the user can interact with the target agent in a personalized way.
[0026] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0028] Figure 1 It is a flowchart of a method for generating an intelligent agent provided according to some embodiments of the present disclosure.
[0029] Figure 2 is a schematic diagram of a target configuration interface provided according to some embodiments of the present disclosure.
[0030] Figure 3 is a flowchart of an interaction method provided according to some embodiments of the present disclosure.
[0031] Figure 4 It is a UML diagram corresponding to the interaction method provided in the embodiment of the present disclosure.
[0032] Figure 5 It is a flowchart of text or voice interaction in a chat page provided based on an embodiment of the present disclosure.
[0033] Figure 6 It is a flowchart of video interaction in a chat page provided based on an implementation manner of the present disclosure.
[0034] Figure 7 It is a block diagram of an agent generation device provided according to some embodiments of the present disclosure.
[0035] Figure 8 is a block diagram of an interaction device provided according to some embodiments of the present disclosure.
[0036] Fig. 9 A schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0037] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0038] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0039] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0040] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0041] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0042] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0043] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0044] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0045] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0046] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0047] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0048] Figure 1 As shown in FIG. 1 , it is a flow chart of a method for generating an intelligent agent according to some embodiments of the present disclosure. Figure 1 As shown, the method may include:
[0049] In step 11, the interactive interface corresponding to the agent is displayed.
[0050] The interactive interface of the agent may include an interface that has an interactive effect on the output of the agent. For example, the interactive interface may include an interface for configuring the agent, such as generating a corresponding agent or adjusting the agent through configuration operations in the interface. For another example, the interactive interface may include an interface for communicating with the agent, so that the user can provide data to the agent through dialogue in the interface, so that the agent can be adjusted based on the data.
[0051] In step 12, based on the interactive interface, a history file of the target user corresponding to the agent is obtained, wherein the history file contains the operation record of the target user in a historical period.
[0052] Among them, the historical period can be set and selected based on the needs of the user, the operation record can be the operation of the target user in multiple interactive applications, and the historical file can be a file exported or obtained by the user in advance from other interactive applications. If the interactive application supports file export, the user can export the chat record file with the target user and the publicly released content corresponding to the target user from the interactive application. As an example, when exporting the chat record, the text data, audio data and video data therein can be exported separately, so that a text file, an audio file and a video file can be obtained. If the interactive application does not support export, the operation record of the target user can be stored in a file by editing. For example, for audio data and video data, the user can manually copy and store them in the corresponding file to obtain the historical file. For example, for text data, the user can manually edit and copy, or take a screenshot and then perform character recognition based on OCR (Optical Character Recognition) technology to obtain the corresponding text file.
[0053] In step 13, based on the historical files, the target agent corresponding to the target user is obtained.
[0054] As an example, the data corresponding to the history file can be added to the memory library corresponding to the agent as the memory data corresponding to the agent, so that the agent has the memory data of the operation record of the target user in the historical period, and the agent with the history file added is used as the target agent corresponding to the target user. Accordingly, when a conversation is conducted with the target agent corresponding to the target user later, for example, the dialogue text "Do you have any favorite movies?" is input, the target agent can simultaneously determine its original memory file and the history file in the process of determining the output, thereby generating a corresponding reply.
[0055] As another example, in this step, the agent can be trained based on the data in the historical file to obtain the target agent corresponding to the target user. For example, in this step, the target agent can be implemented based on an artificial intelligence model, such as training an AI (Artificial Intelligence) model based on the common machine learning technology and deep learning technology in the field with the data in the historical file as training data, so as to obtain a target agent that simulates the target user and improve the anthropomorphism and personalization level of the target agent.
[0056] Thus, in the above technical solution, the historical file corresponding to the target user can be obtained, and then the historical file is provided to the agent in the form of file interaction, and the target agent corresponding to the target user is obtained with the historical file. Through the above technical solution, data can be provided to the agent in the form of file interaction, which facilitates the data acquisition of the target agent and reduces the complexity of the operation of generating the target agent. At the same time, the corresponding target agent is generated through the historical file of the target user, which can also improve the matching degree between the target agent and the performance of the target user, improve the consistency between the generated target agent and the user's needs, and improve the personification level and personalization level of the generated target agent, so that the user can interact with the target agent in a personalized way.
[0057] In a possible embodiment, the interactive interface is a target configuration interface for configuring the agent.
[0058] In order to improve the user experience when interacting with users, users can configure the data of the interactive intelligent agent based on their own needs to improve the personalization of the generated intelligent agent. Among them, the intelligent agent can be a digital human (Digital Human) realized by AI technology. Digital human is a virtual object created by simulating the appearance, behavior and interaction ability of real humans by combining computer graphics, artificial intelligence, machine learning, speech synthesis and other technologies. Accordingly, in this step, the user can trigger the terminal to display the target configuration interface by triggering the configuration operation.
[0059] Accordingly, an example implementation of obtaining the historical file of the target user corresponding to the agent based on the interactive interface may include:
[0060] In response to a selection operation on a historical data configuration item in the target configuration interface, displaying a historical data upload interface;
[0061] The file received based on the data upload interface is used as the historical file.
[0062] like Figure 2 As shown, in the target configuration interface, multiple configurable historical data configuration items can be displayed, each of which is used to upload or import a type of historical file. In this step, the user can upload the corresponding historical file by selecting the corresponding historical data configuration item. For example, the selection operation can be performed by clicking. If the user wants to upload the chat record, the historical data configuration item A2 corresponding to the chat record can be clicked to select it, so that the historical data upload interface corresponding to the chat record can be further displayed.
[0063] Accordingly, in the historical data upload interface, the user can upload data. For example, in the historical data upload interface, the user can select the corresponding file from the local or cloud by file selection, and can submit the file after the file is selected. For example, a file control can be displayed in the historical data upload interface, and the user can upload the corresponding file by clicking the file control. In response to the file submission operation, the selected file can be used as the historical file.
[0064] As another example, there may be a public data acquisition interface in the interactive application corresponding to the target user, and historical files may also be acquired through the interface. Then, after clicking the corresponding upload control in the historical data upload interface, the interface of the interactive application may be displayed, and the verification information of the target user may be input based on the interface. Then, the historical files corresponding to the target user may be directly obtained from the interactive application based on the data acquisition interface.
[0065] Therefore, through the above technical solution, in the process of configuring the intelligent agent, the historical files of the target user can be uploaded so that the intelligent agent can be trained directly based on the historical files, and the target intelligent agent corresponding to the target user can be obtained. This can facilitate the acquisition of training data for the target intelligent agent, reduce the complexity of the user's configuration of the target intelligent agent, provide more comprehensive and reliable data support for the training of the target intelligent agent, and ensure the consistency of the generated target intelligent agent with user needs.
[0066] As an example, the historical file contains at least one of audio data, text data, video data and published content, and different data can be stored in the same file or in different files. For example, taking the chat records of the target user in the historical period as an example, the text records in the chat records can be used as the text data, the voice sent in the chat records can be used as the audio data, and the video sent in the chat records can be used as video data. As an example, the historical file can also contain the published content of the target user in the historical period, that is, the information publicly released by the target user, such as the target user's likes, comments or published texts, videos and other content in social media. Therefore, the interactive behavior and characteristics of the target user can be profiled from multiple dimensions through the above-mentioned historical files, and the accurate representation of the target user can be achieved by fusing the multi-source information of the target user, providing accurate and personalized data for the subsequent generation of intelligent agents.
[0067] Among them, the chat records between the current user and the target user in the corresponding interactive application can be exported to obtain the corresponding chat record file. In this step, the chat record file can be uploaded through the historical data upload interface so that the target intelligent entity can be obtained based on the chat record file in the future to improve its matching degree with the target user.
[0068] In a possible embodiment, the interactive interface is an interface for conducting a dialogue with the agent, U1 is the user side, B1 is the agent side, and the user U1 can interact with B1 by inputting in the dialogue interface.
[0069] Accordingly, an exemplary implementation of obtaining the historical file of the target user corresponding to the agent based on the interactive interface may include:
[0070] During the dialogue process of the intelligent agent, a history file of the target user input by the user is received from the interactive interface.
[0071] In this embodiment, the user can directly input the file from the interactive interface, and the file icon can be displayed in the dialogue window. The user can click the file icon to display the file interface and select the required file to upload, and then provide it to the agent through dialogue. In this process, the user can enter the description of the file through the dialog box so that the agent can perform corresponding operations based on the historical file. For example, the agent can add the historical file as memory data to its corresponding memory file based on the description entered by the user. For another example, the user can upload the file by dragging and dropping the file into the dialog box to receive the historical file of the target user entered by the user from the interactive interface.
[0072] Therefore, through the above technical solution, historical files can be uploaded to the intelligent agent during the interaction with the intelligent agent to adjust the intelligent agent to obtain the target intelligent agent, so that the target intelligent agent can include the historical operations of the target user and improve the personalized interaction of the target intelligent agent.
[0073] In a possible embodiment, the exemplary implementation method of obtaining the target agent corresponding to the target user based on the historical file may include:
[0074] Based on the history file, determine the historical memory data corresponding to the agent, the historical memory data being at least a part of the data in the history file;
[0075] Based on the historical memory data, a target agent corresponding to the target user is obtained.
[0076] As an example, the data in the uploaded history file can be directly determined as historical memory data, and the type of historical memory data can be determined based on the historical data configuration item triggered when uploading the history file. If the user triggers the display of the historical data upload interface by operating the chat record configuration item, the uploaded history file can be used as the historical memory data corresponding to the chat record, so as to distinguish the various uploaded historical memory data and provide multiple types of training data for the subsequent training of the intelligent agent.
[0077] As another example, the data in the historical file can be displayed to the user, and the user can select part of the data in the displayed historical file as historical memory data. If the chat records can be displayed, the user can select the chat records within the last month as the historical memory data to filter the data in the historical file. Subsequently, based on the historical memory data, the target agent corresponding to the target user can be obtained. As an example, the historical memory data can be added to the memory library of the agent to obtain the target agent, and the historical memory data can also be used as training data to train the agent to adjust the performance characteristics of the agent to obtain the target agent. The specific implementation method of obtaining the target agent has been described in detail above and will not be repeated here.
[0078] Therefore, through the above technical solution, the data in the historical files can be directly screened so that the user can select the historical memory data provided by the intelligent agent to meet the user's usage needs, and at the same time, the user satisfaction of the target intelligent agent can be improved.
[0079] As another example, the implementation method of determining the historical memory data corresponding to the agent based on the historical file may include:
[0080] Display the processing interface of the historical file. The processing interface of the historical file can be displayed after the user selects the historical file. As an example, for a text file, the text content contained in the text file can be displayed in the processing interface of the historical file so that the user can edit the text content according to his needs.
[0081] In one scenario: in response to receiving an editing operation of the historical file by the user in the processing interface, the data in the file obtained after editing the historical file can be used as the historical memory data.
[0082] In actual application scenarios, the content in the directly exported text file may contain some content that the user does not want to give to the intelligent agent, or content that the user believes is not suitable for adjusting the intelligent agent. In this embodiment, the user can edit the content in the historical file, such as the user can delete, adjust or add the displayed text content. The data in the file obtained after the user edits the historical file can then be used as the historical memory data.
[0083] In another scenario: in response to receiving a user's selection operation on a time selection control in the processing interface, a target time period may be determined, and the data within the target time period in the history file may be determined as the historical memory data.
[0084] In a possible application scenario, when a user wants to adjust the agent corresponding to the target user, he may only want to use part of the data in the history file, and the present disclosure can provide content selection in the history file through this embodiment. For example, the history file may contain timestamp information of its data, and accordingly, the processing interface of the history file may contain a time selection control to quickly enable the user to select part of the content in the history file.
[0085] As an example, the historical file is a file generated by the interactive operation of the target user within the historical period. When exporting the historical file, the timestamp information corresponding to the content data in the historical file can be obtained at the same time. Accordingly, in this embodiment, the user can quickly select the content in the historical file based on the timestamp information. For example, the time selection control in the processing interface can include a start time control and an end time control. The user can determine the time period he wants to upload based on his own needs, such as configuring the start time based on the start time control, and configuring the end time based on the end time control, so that the target time period can be determined based on the time corresponding to the above two controls.
[0086] Afterwards, the timestamp information of the content in the historical file and the target time period can be combined to obtain the content in the target time period. Taking the text file of the chat record as an example, if the target time period is from April 1, 2023 to April 1, 2024, the text content of the chat record corresponding to April 1, 2023 to April 1, 2024 can be used as the historical memory data. As another example, the data in the historical file can also be adjusted in combination with the screening methods in the above two scenarios to obtain historical memory data.
[0087] Therefore, through the above technical solution, when uploading the historical files of the target user, the user can filter the data to be uploaded from the historical files, and can also edit the data to accurately upload the data determined by the user to ensure that the uploaded data can meet the user's usage needs, so as to improve the user's interaction satisfaction with the generated target intelligent agent, ensure that the target intelligent agent restores the characteristics of the target user, and improve the personalization of the target intelligent agent, thereby enhancing the user's interaction experience with the target intelligent agent.
[0088] In a possible embodiment, an exemplary implementation method of determining the historical memory data corresponding to the agent based on the historical file is as follows. This step may include:
[0089] The historical file is parsed to obtain a plurality of sub-files corresponding to the historical file.
[0090] As an example, historical files can be parsed based on a content understanding model, which can be an intelligent agent that interacts with users, or other understanding models in the field, such as a pre-set model for content understanding, such as an understanding model implemented by a large language model, etc. The present disclosure does not limit this.
[0091] Afterwards, the file information of the plurality of sub-files is displayed; in response to determining the sub-file selected by the user, the data of the selected sub-file is used as the historical memory data.
[0092] As an example, the interactive interface is a target configuration interface for configuring the agent. After the user uploads the corresponding historical file, the corresponding content understanding model can be called according to the preset parsing dimension. For example, the preset parsing dimension can include event theme dimension, character dimension, etc. Taking the historical file as a chat record as an example, after uploading the historical file, the corresponding prompt can be constructed based on the historical file, and it can be understood by the preset content understanding model to determine the sub-files corresponding to the historical file under the parsing dimension. For example, under the event theme dimension, the chat record discussing food can be divided into a sub-file F1, and the chat record discussing movies can be divided into a sub-file F2, etc., where the theme under the event theme dimension can be determined by parsing the historical file, that is, the chat records discussing the same topic are divided together through the content understanding model, and the corresponding event theme is determined to add a dimension identifier to the sub-file, such as the dimension identifier corresponding to the sub-file F1 can be theme-food. For example, under the character dimension, the chat records between the target user and different characters can be divided into different sub-files.
[0093] Correspondingly, the file information of the sub-file may include the dimension identifier corresponding to the sub-file, so that the user can clearly understand the summary of the content in the sub-file through the display of the file information, so that the user can make a selection. Displaying the file information of the multiple sub-files may be to display each file information separately in the display interface so that the user can make a selection based on the file information. For example, a selection box corresponding to each file information may be displayed in the display interface, and the sub-file under the file information selected by the user may be used as the sub-file selected by the user. For example, the user can check the file information by checking the selection box. If the user selects the selection box corresponding to the theme-food, the sub-file under the dimension of the theme-food may be determined as the sub-file selected by the user, thereby determining the historical memory data.
[0094] As another example, the interactive interface is an interface for conducting a dialogue with the agent. After the user uploads the historical file through the dialog box, the historical file can be understood based on the method described above to obtain multiple sub-files. Afterwards, the file information of the multiple sub-files can be displayed in the form of outputting a dialogue to provide the user with options. The dialogue "This file can be divided into the following sub-files from the event theme dimension: Z11: Theme-Food, Z12: Theme-Movie, ..., and divided into the following sub-files from the character dimension: Z21: Character 1, Z22: Character 2, ..., please reply to the corresponding serial number to select the corresponding sub-file". Afterwards, the user can further enter the corresponding serial number in the dialog box to select the file information, and then based on the file information selected by the user, the sub-file under the selected file information can be determined as the sub-file selected by the user to further determine the historical memory data. If the user enters the serial number Z11 in the dialog box, the sub-file under the dimension of the theme-food can be determined as the sub-file selected by the user, and the historical memory data can be determined.
[0095] Therefore, through the above technical solution, the content of the data in the historical file can be automatically understood, so that the historical file can be automatically split into multiple sub-files, so that the user can upload the corresponding data from the sub-files and upload part of the data in the file. In this process, the user does not need to manually split the file, which saves user operations and simplifies the upload process of the data in the file.
[0096] In some possible embodiments, the method further includes:
[0097] Before the step of obtaining the target intelligent entity corresponding to the target user based on the historical file, the historical file is converted into a target format; and the target intelligent entity corresponding to the target user is obtained based on the historical file in the target format.
[0098] Accordingly, in order to improve the efficiency and unify the standards for data uploading, the target format for file uploading can be set in advance. As an example, the target format can be set separately for different data formats in historical files. For example, the corresponding target format for text data can be set to txt format, and the corresponding target format for audio data can be set to mp3 format. It can be set based on the actual application scenario, and the present disclosure does not limit this.
[0099] In this embodiment, when uploading historical files, taking text data as an example, if the format of the historical files is doc format, the doc format can be converted to txt format, and then subsequent processing is performed based on the historical files in txt format.
[0100] Therefore, through the above technical solution, the unified management and uploading of historical files can be achieved by converting the format of historical files, which is convenient for improving data processing efficiency in the subsequent processing of historical files.
[0101] In a possible embodiment, an exemplary implementation method of obtaining the target agent corresponding to the target user based on the historical memory data is as follows, and this step may include:
[0102] The agent is trained based on the training data corresponding to the historical memory data to obtain a target agent corresponding to the target user.
[0103] The training data corresponding to the historical memory data includes the historical memory data, or the training data corresponding to the historical memory data includes the historical memory data and generated data, and the generated data is obtained by performing target processing on the historical memory data, wherein the target processing includes at least one of the following: synonym replacement processing, word order adjustment processing, and semantic enhancement processing.
[0104] Among them, when training the agent, as an example, the obtained historical memory data can be directly used as training data for training to ensure that the performance characteristics of the target agent are consistent with the characteristics of the target user. As another example, in order to further improve the diversity of training data, new training data can be generated based on the historical memory data to enrich the training data set of the agent. For example, the semantic enhancement of historical memory data can be achieved based on target processing, such as synonym replacement processing, which can be a random selection of words in the sentences of historical memory data, and the words are replaced with synonyms of the words to obtain generated data. The word order adjustment processing can be a random selection of sentences in historical memory data, and the order of words or phrases in the sentence is changed to obtain generated data. The semantic enhancement processing can be a random selection of sentences in historical memory data, and the relevant background information is queried based on the semantics of the sentence, and the background information is added to the sentence to enhance the semantics of the sentence to obtain generated data, wherein, in this process, the sentence can be semantically analyzed to query the background information based on the semantics of the sentence, which can be queried based on the semantic search method in this field, which is not limited here. It should be noted that when generating data based on target processing, it is necessary to ensure that the data meaning or label between the historical memory data and the generated data obtained based on the historical memory data is consistent, so that new training data can be obtained by changing the characteristics of the historical memory data, thereby achieving effective expansion of the training data set.
[0105] Therefore, through the above technical solution, new generated data can be obtained based on the existing historical memory data, thereby improving the diversity and richness of the training data set of the intelligent agent. Through data enhancement and fusion strategies, the efficiency of data utilization can be improved, thereby improving the accuracy and reliability of the model, and to a certain extent improving the performance consistency between the target intelligent agent obtained by the training and the target user, thereby improving the user experience when the user interacts with the target intelligent agent.
[0106] In some possible embodiments, the target configuration interface also includes a language configuration item, such as Figure 2 As shown in A1, it can be used by the user to select a language.
[0107] Accordingly, the method further comprises:
[0108] In response to receiving the selection operation of the language configuration item, a language selection interface is displayed, and the language selection interface carries a plurality of candidate languages. Among them, the voice output of the agent can be realized by a speech synthesis (TTS, Text To Speech) model. The candidate language can be each language supported for speech synthesis in the speech synthesis model, such as Chinese, English, etc. In order to further adapt to a variety of application scenarios, the candidate language can also include a variety of dialects.
[0109] As an example, the speech synthesis model can be determined by:
[0110] Acquire training audio data, wherein the training audio data can be obtained by pre-annotation screening, and can be pre-screened high-quality audio data, such as audio data of public speeches, interviews, etc., so as to improve the quality of the training audio data. It can be screened based on actual application scenarios, and the present disclosure does not limit this.
[0111] Afterwards, the training audio data is processed to obtain processed audio data. The processing method may include speed change processing, pitch adjustment processing, etc., so that new training data can be obtained without re-labeling, increasing the diversity of training data to improve the robustness of the speech synthesis model. Furthermore, a speech synthesis model can be trained based on the training audio data and the processed audio data and their corresponding text to obtain a speech synthesis model. In the speech synthesis model, the linguistic parameters of the speech synthesis model can be optimized in combination with the analysis of different dialects in the field to improve the adaptability of the speech synthesis model to different dialect features.
[0112] In response to receiving a selection operation on a candidate language, the candidate language corresponding to the selection operation is determined as a target language corresponding to when the target agent outputs data.
[0113] Among them, the user can determine the language that the target intelligent agent needs to output from the candidate languages based on his or her own needs. For example, if the target intelligent agent needs to be set to output Mandarin, the user can select Mandarin from the candidate languages and confirm it, so that Mandarin can be determined as the corresponding target language when the target intelligent agent outputs data, that is, when the user interacts with the target intelligent agent, the target intelligent agent outputs a response in Mandarin, such as text or voice corresponding to Mandarin.
[0114] Therefore, through the above technical solution, the language used by the target agent to interact with the user can be pre-configured, so that when the user interacts with the target agent, the target agent can output the language type required by the user, so that the generated target agent can meet the needs of a wider user group.
[0115] In some possible embodiments, the history file contains audio data, and the target agent outputs speech corresponding to the target language based on a speech synthesis model;
[0116] The method may further comprise:
[0117] The parameters of the speech synthesis model are updated based on the audio data.
[0118] As an example, further, in order to improve the consistency between the target agent's output voice and the target user's voice, the parameters of the speech synthesis model can be fine-tuned and updated based on the uploaded audio data. For example, the speech synthesis model can be made to generate a voice that matches the sound characteristics of the target user. For example, a diffusion model can be used to adjust the parameters of the language synthesis model using the audio data as a sample voice (speech prompt) so that when subsequent users interact with the target agent, the language synthesis model outputs a voice with a rhythm and style consistent with the target user.
[0119] Therefore, through the above technical scheme, during the training process of the target intelligent agent, the parameters of the speech synthesis model can be adjusted synchronously in combination with the audio data uploaded by the user, so that the speech output based on the speech synthesis model is consistent with the characteristics and style of the target user's voice, thereby improving the simulation and restoration of the personality characteristics and behavioral characteristics of the target user by the target intelligent agent, so that the user's experience of interacting with the target intelligent agent is more in line with the real interaction between the user and the target user, improving the personification and personalization level of the target intelligent agent's interaction, and satisfying the user's emotional needs for interaction to a certain extent.
[0120] In a possible embodiment, the method may further include:
[0121] Receive description information of the target agent, wherein the user can input description information of the target agent when configuring the target agent, and the description information can be input through a text input box, such as Figure 2 As shown in A3 in the figure, the description information may be information used to characterize the personality characteristics and / or behavior characteristics of the target intelligent agent, and the user may describe and input the information based on his / her needs.
[0122] As an example, the target configuration interface may also include configuration items such as name and portrait, such as Figure 2 As shown in A4, the user can generate the attributes corresponding to the target agent by configuring the configuration item, and store them in association with the target agent. For example, the user can choose to interact with the corresponding target agent based on the name attribute.
[0123] Accordingly, obtaining the target agent corresponding to the target user based on the historical memory data includes:
[0124] The agent is trained based on the historical memory data and the description information to obtain a target agent corresponding to the target user.
[0125] Accordingly, the artificial intelligence model can be trained based on the historical memory data and description information as training data, based on machine learning technology and deep learning technology, and the artificial intelligence model obtained after training can be used as the target intelligent agent.
[0126] Therefore, through the above technical scheme, the intelligent agent can be further trained by combining the user's feature description information of the target intelligent agent and the target user's historical memory data, so that the trained target intelligent agent can have similar reaction characteristics and behavioral characteristics to the target user, and can also better match the user's interaction needs for the target intelligent agent, further improving the user experience.
[0127] Based on the same inventive concept, the present disclosure also provides an interactive method, such as Figure 3 As shown, the method may include:
[0128] In step 31, user input information is received. The input information is information provided by the user during interaction, and the input type of the input information may include text type, voice type, video type, etc.
[0129] In step 32, based on the target intelligent agent, reply information corresponding to the input information is determined, wherein the target intelligent agent is determined based on any of the intelligent agent generation methods described above.
[0130] The input information may be input into the target intelligent agent, so that the target intelligent agent analyzes and processes the input information to obtain corresponding reply information, wherein the reply information may be text information.
[0131] In step 33, reply information is output based on the input type of the input information.
[0132] As an example, the input type can be used as the output type of the reply information, so as to output the reply information. For example, the input information is "Do you have any TV series to recommend recently?", and the reply information is determined to be "I'm watching XXX recently, and I feel it's pretty good, the plot rhythm is quite fast." If the input type is a text dialogue type, the reply information can be output as a text dialogue type, that is, the reply information can be output in the form of text in the chat interface. If the input type is a voice dialogue type, the reply information can be output as a voice dialogue type, that is, a voice can be generated based on the reply information, and the voice can be output in the form of voice in the chat interface.
[0133] As another example, the current output type may be determined based on the frequency of use of different output types by the target agent, such as sampling from different output types based on the frequency of use to determine the current output type. For another example, the output type with the highest frequency of use between the target agent and the current user may be used as the output type corresponding to the reply information.
[0134] Therefore, through the above technical scheme, interaction with users can be achieved based on the target intelligent agent. The target intelligent agent is determined based on the user's needs through the historical files of the target user, thereby ensuring the effectiveness and reliability of the reply information determined by the target intelligent agent, improving the user's satisfaction with the interaction, and at the same time, it can enhance the user's interest in interaction to a certain extent and provide emotional support for the user.
[0135] Figure 4 As shown, it is a UML diagram corresponding to the interaction method provided based on the embodiment of the present disclosure. Among them, the UML diagram, that is, a diagram based on the Unified Modeling Language, is a language for visual modeling of software systems. For example, the class used to implement the interaction method may include a MessageViewModel message display class, and the class may include chat room data, message database, WebSocket source, HTTP source and other related properties and methods. Among them, the HTTP source can be used to receive data transmitted via HTTP (Hypertext Transfer Protocol), WebSocket is a protocol for full-duplex communication on a single TCP connection, and the WebSocket source can be used to implement two-way communication. Figure 4As shown, the message display class can include the following methods:
[0136] The prepare method can be used to set the listener of WebSocket and obtain the previous chat history from the message database. Calling the fetchVoice method can obtain the audio content according to the text corresponding to the message list index for playing voice. Calling the fetchTalkId method can generate a video stream based on the audio content and portrait, and return the conversation ID. Calling the fetchTalkUrl method can obtain the URL of the conversation according to the conversation ID, so as to pull the video stream based on the URL for display. Calling the addMessage method can add a new message to the message list and save it to the message database. Calling the fetchRoomMessages method can obtain the message record of the chat room from the message database. Calling the saveRoomMessages method saves the message to the message database. The sendMessage method is used for users to send messages, and the close method is used to end the conversation. Among them, the implementation of the above method can be based on the corresponding processing logic implementation in this field, and the present disclosure is not limited to this.
[0137] Accordingly, the chat room data, message database, WebSocket source, HTTP source, and message data classes may further include corresponding fields and methods, such as the chat room data class may further include fields such as chat room ID and chat room title. The message data class may include fields such as message identifier, text content, audio content, conversation ID, and conversation URL. They may be set based on actual application scenarios, and the present disclosure does not limit this.
[0138] As an example, Figure 5As shown, it is a flowchart of text or voice interaction in a chat page provided based on an embodiment of the present disclosure. For example, when a user interacts with a target agent, the terminal performs an initialization operation (calls the prepare method), obtains the chat record of the current chat room from the message database (calls the fetchRoomMessages method), and then obtains the message sent by the user (calls the sendMessage method), so as to determine the reply message corresponding to the message based on the target agent, and then determines whether to generate audio content (calls the fetchVoice method), if the audio content is generated, the voice is played to reply to the user, and if the audio content is not generated, a text message is output to reply to the user. After replying to the user, the reply message can be added to the message list (calling the addMessage method), and the message can be saved in the message database (calling the saveRoomMessages method), and the information sent by the user can also be continued to be obtained, and the above process is repeated to have a dialogue with the user. When the dialogue is completed, the dialogue process can be ended, such as calling the close method described above to end the dialogue.
[0139] As an example, Figure 6 As shown, it is a flow chart of video interaction in a chat page provided based on an embodiment of the present disclosure. For example, when a user interacts with a target agent, the terminal performs an initialization operation (calls the prepare method), obtains the chat record of the current chat room from the message database (calls the sendMessage method), and then obtains the user's sent message (calls the sendMessage method), so as to determine the reply message corresponding to the message based on the target agent, and then determines whether to generate audio content (calls the fetchVoice method). If the audio content is not generated, the text message is output to reply to the user. If the audio content is generated, the video stream is further generated according to the audio content and the portrait corresponding to the target agent, and the conversation ID is returned (calls the fetchTalkId method), and the URL of the conversation is obtained according to the conversation ID, so as to pull the video stream based on the URL for display (calls the fetchTalkUrl method), and the user is replied by playing the video. After replying to the user, the reply message can be added to the message list (calls the addMessage method), and the message is saved in the message database (calls the saveRoomMessages method), and the information sent by the user can also be continued to be obtained, and the above process is repeated to have a conversation with the user. When the conversation is completed, the conversation flow can be ended.
[0140] Based on the same inventive concept, the present disclosure also provides a device for generating an intelligent agent, such as Figure 7 As shown, the device 10 comprises:
[0141] The first display module 101 is used to display the interaction interface corresponding to the intelligent agent;
[0142] An acquisition module 102, configured to obtain, based on the interactive interface, a history file of a target user corresponding to the agent, wherein the history file includes an operation record of the target user within a historical period;
[0143] The processing module 103 is used to obtain the target agent corresponding to the target user based on the historical file.
[0144] Optionally, the interactive interface is a target configuration interface for configuring the agent;
[0145] The acquisition module comprises:
[0146] A first display submodule, configured to display a historical data upload interface in response to a selection operation on a historical data configuration item in the target configuration interface;
[0147] The first acquisition submodule is used to use the file received based on the data upload interface as the historical file.
[0148] Optionally, the interactive interface is an interface for conducting a dialogue with the agent;
[0149] The acquisition module comprises:
[0150] The second acquisition submodule is used to receive the historical file of the target user input by the user from the interactive interface during the dialogue process of the intelligent agent.
[0151] Optionally, the processing module includes:
[0152] A first determination submodule, configured to determine historical memory data corresponding to the agent based on the historical file, wherein the historical memory data is at least a portion of the data in the historical file;
[0153] The first processing submodule is used to obtain the target agent corresponding to the target user based on the historical memory data.
[0154] Optionally, the first determining submodule includes:
[0155] The second display submodule is used to display the processing interface of the historical file;
[0156] A second processing submodule is used for, in response to receiving an editing operation of the historical file by the user in the processing interface, using the data in the file obtained after editing the historical file as the historical memory data;
[0157] And / or in response to receiving a user's selection operation on a time selection control in the processing interface, determining a target time period, and determining the data within the target time period in the history file as the historical memory data.
[0158] Optionally, the first determining submodule includes:
[0159] A parsing submodule, used to parse the historical file to obtain a plurality of subfiles corresponding to the historical file;
[0160] A third display submodule, used to display file information of the multiple subfiles;
[0161] In response to determining the sub-file selected by the user, the second determining sub-module uses the data of the selected sub-file as the historical memory data.
[0162] Optionally, the first processing submodule includes:
[0163] A training submodule, used to train the agent based on the training data corresponding to the historical memory data to obtain a target agent corresponding to the target user;
[0164] The training data corresponding to the historical memory data includes the historical memory data, or the training data corresponding to the historical memory data includes the historical memory data and generated data, and the generated data is obtained by performing target processing on the historical memory data, and the target processing includes at least one of the following: synonym replacement processing, word order adjustment processing, and semantic enhancement processing.
[0165] Optionally, the device further comprises:
[0166] A first receiving module, used to receive description information of the target intelligent agent;
[0167] The first processing submodule is further configured to:
[0168] The agent is trained based on the historical memory data and the description information to obtain a target agent corresponding to the target user.
[0169] Optionally, the target configuration interface also includes a language configuration item;
[0170] The device also includes:
[0171] A second display module, configured to display a language selection interface in response to receiving a selection operation of the language configuration item, wherein the language selection interface carries a plurality of candidate languages;
[0172] The first determination module is used for, in response to receiving a selection operation on a candidate language, determining the candidate language corresponding to the selection operation as the target language corresponding to the target agent when outputting data.
[0173] Optionally, the history file contains audio data, and the target agent outputs speech based on a speech synthesis model;
[0174] The device also includes:
[0175] An updating module is used to update the parameters of the speech synthesis model based on the audio data.
[0176] Optionally, the history file contains at least one of audio data, text data, video data and published content.
[0177] Based on the same inventive concept, the present disclosure also provides an interactive device, such as Figure 8 As shown, the device 20 comprises:
[0178] The second receiving module 201 is used to receive user input information;
[0179] A second determination module 202 is used to determine reply information corresponding to the input information based on a target agent, wherein the target agent is determined based on any of the agent generation methods described above;
[0180] The output module 203 is used to output the reply information based on the input type of the input information.
[0181] Reference below Fig. 9 , which shows a schematic diagram of the structure of an electronic device (such as a terminal device or a server) 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, notebook 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. Fig. 9 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0182] like Fig. 9As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0183] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Fig. 9 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0184] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0185] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0186] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0187] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0188] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays the interactive interface corresponding to the intelligent agent; based on the interactive interface, obtains the historical file of the target user corresponding to the intelligent agent, and the historical file contains the operation record of the target user within a historical period; based on the historical file, obtains the target intelligent agent corresponding to the target user.
[0189] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device: receives input information from the user; determines reply information corresponding to the input information based on the target agent, wherein the target agent is determined based on the agent generation method described in any of the above embodiments; and outputs the reply information based on the input type of the input information.
[0190] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may 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 may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0191] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0192] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a module does not limit the module itself in some cases. For example, the first display module may also be described as a "module for displaying the interactive interface corresponding to the intelligent agent".
[0193] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0194] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0195] According to one or more embodiments of the present disclosure, Example 1 provides a method for generating an agent, wherein the method includes:
[0196] Display the interactive interface corresponding to the intelligent agent;
[0197] Based on the interactive interface, a history file of a target user corresponding to the agent is obtained, wherein the history file contains operation records of the target user in a historical period;
[0198] Based on the historical file, a target agent corresponding to the target user is obtained.
[0199] According to one or more embodiments of the present disclosure, Example 2 provides the method of Example 1, wherein the interactive interface is a target configuration interface for configuring the agent;
[0200] The step of obtaining the history file of the target user corresponding to the agent based on the interactive interface includes:
[0201] In response to a selection operation on a historical data configuration item in the target configuration interface, displaying a historical data upload interface;
[0202] The file received based on the data upload interface is used as the historical file.
[0203] According to one or more embodiments of the present disclosure, Example 3 provides the method of Example 1, wherein the interactive interface is an interface for conducting a dialogue with the agent;
[0204] The step of obtaining the history file of the target user corresponding to the agent based on the interactive interface includes:
[0205] During the dialogue process of the intelligent agent, a history file of the target user input by the user is received from the interactive interface.
[0206] According to one or more embodiments of the present disclosure, Example 4 provides the method of Example 1, wherein obtaining the target agent corresponding to the target user based on the historical file includes:
[0207] Based on the history file, determine the historical memory data corresponding to the agent, the historical memory data being at least a part of the data in the history file;
[0208] Based on the historical memory data, a target agent corresponding to the target user is obtained.
[0209] According to one or more embodiments of the present disclosure, Example 5 provides the method of Example 4, wherein determining the historical memory data corresponding to the agent based on the historical file includes:
[0210] Displaying a processing interface for the historical file;
[0211] In response to receiving an editing operation of the historical file by the user in the processing interface, using data in a file obtained after editing the historical file as the historical memory data;
[0212] And / or in response to receiving a user's selection operation on a time selection control in the processing interface, determining a target time period, and determining the data within the target time period in the history file as the historical memory data.
[0213] According to one or more embodiments of the present disclosure, Example 6 provides the method of Example 4, wherein determining the historical memory data corresponding to the agent based on the historical file includes:
[0214] Parsing the historical file to obtain multiple sub-files corresponding to the historical file;
[0215] Displaying file information of the multiple sub-files;
[0216] In response to determining that the sub-file is selected by the user, data of the selected sub-file is used as the historical memory data.
[0217] According to one or more embodiments of the present disclosure, Example 7 provides the method of Example 4, wherein obtaining the target agent corresponding to the target user based on the historical memory data includes:
[0218] Training the agent based on the training data corresponding to the historical memory data to obtain a target agent corresponding to the target user;
[0219] The training data corresponding to the historical memory data includes the historical memory data, or the training data corresponding to the historical memory data includes the historical memory data and generated data, and the generated data is obtained by performing target processing on the historical memory data, and the target processing includes at least one of the following: synonym replacement processing, word order adjustment processing, and semantic enhancement processing.
[0220] According to one or more embodiments of the present disclosure, Example 8 provides the method of Example 4, wherein the method further includes:
[0221] Receiving description information of the target agent;
[0222] The step of obtaining a target agent corresponding to the target user based on the historical memory data includes:
[0223] The agent is trained based on the historical memory data and the description information to obtain a target agent corresponding to the target user.
[0224] According to one or more embodiments of the present disclosure, Example 9 provides the method of Example 2, wherein the target configuration interface further includes a language configuration item;
[0225] The method further comprises:
[0226] In response to receiving a selection operation of the language configuration item, displaying a language selection interface, wherein the language selection interface carries a plurality of candidate languages;
[0227] In response to receiving a selection operation on a candidate language, the candidate language corresponding to the selection operation is determined as a target language corresponding to when the target agent outputs data.
[0228] According to one or more embodiments of the present disclosure, Example 10 provides the method of Example 1, wherein the history file contains audio data, and the target agent outputs speech based on a speech synthesis model;
[0229] The method further comprises:
[0230] The parameters of the speech synthesis model are updated based on the audio data.
[0231] According to one or more embodiments of the present disclosure, Example 11 provides the method of Example 1, wherein the history file contains at least one of audio data, text data, video data, and published content.
[0232] According to one or more embodiments of the present disclosure, Example 12 provides an interaction method, the method comprising:
[0233] Receive user input information;
[0234] Determining reply information corresponding to the input information based on a target agent, wherein the target agent is determined based on the agent generation method described in any one of Examples 1-11;
[0235] The reply information is output based on the input type of the input information.
[0236] According to one or more embodiments of the present disclosure, Example 13 provides a device for generating an agent, the device comprising:
[0237] The first display module is used to display the interactive interface corresponding to the intelligent agent;
[0238] An acquisition module, configured to obtain, based on the interactive interface, a history file of a target user corresponding to the agent, wherein the history file includes an operation record of the target user within a historical period;
[0239] A processing module is used to obtain a target agent corresponding to the target user based on the historical file.
[0240] According to one or more embodiments of the present disclosure, Example 14 provides an interactive device, the device comprising:
[0241] A second receiving module is used to receive input information from a user;
[0242] A second determination module, configured to determine reply information corresponding to the input information based on a target agent, wherein the target agent is determined based on the agent generation method according to any one of claims 1 to 11;
[0243] An output module is used to output the reply information based on the input type of the input information.
[0244] According to one or more embodiments of the present disclosure, Example 15 provides a computer-readable medium having a computer program stored thereon, which implements the steps of any of the methods described in Examples 1-12 when executed by a processing device.
[0245] According to one or more embodiments of the present disclosure, Example 16 provides an electronic device, including:
[0246] a storage device having a computer program stored thereon;
[0247] A processing device is used to execute the computer program in the storage device to implement the steps of the method described in any one of Examples 1-12.
[0248] According to one or more embodiments of the present disclosure, Example 17 provides a computer program product, including a computer program, which implements the steps of any one of the methods of Examples 1-12 when executed by a processor.
[0249] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. 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 technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0250] 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 are 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.
[0251] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A method for generating an intelligent agent, characterized in that: The method comprises: Display the interactive interface corresponding to the intelligent agent; Based on the interactive interface, a history file of a target user corresponding to the agent is obtained, wherein the history file contains operation records of the target user in a historical period; Based on the historical file, a target agent corresponding to the target user is obtained.
2. The method according to claim 1, characterized in that The interactive interface is a target configuration interface for configuring the agent; The step of obtaining the history file of the target user corresponding to the agent based on the interactive interface includes: In response to a selection operation on a historical data configuration item in the target configuration interface, displaying a historical data upload interface; The file received based on the data upload interface is used as the historical file.
3. The method according to claim 1, characterized in that The interactive interface is an interface for conducting a dialogue with the intelligent agent; The step of obtaining the history file of the target user corresponding to the agent based on the interactive interface includes: During the dialogue process of the intelligent agent, a history file of the target user input by the user is received from the interactive interface.
4. The method according to claim 1, characterized in that The step of obtaining a target agent corresponding to the target user based on the historical file includes: Based on the history file, determine the historical memory data corresponding to the agent, the historical memory data being at least a part of the data in the history file; Based on the historical memory data, a target agent corresponding to the target user is obtained.
5. The method according to claim 4, characterized in that The determining, based on the historical file, the historical memory data corresponding to the agent comprises: Displaying a processing interface for the historical file; In response to receiving an editing operation of the historical file by the user in the processing interface, using data in a file obtained after editing the historical file as the historical memory data; And / or in response to receiving a user's selection operation on a time selection control in the processing interface, determining a target time period, and determining the data within the target time period in the history file as the historical memory data.
6. The method according to claim 4, characterized in that The determining, based on the historical file, the historical memory data corresponding to the agent comprises: Parsing the historical file to obtain multiple sub-files corresponding to the historical file; Displaying file information of the multiple sub-files; In response to determining that the sub-file is selected by the user, data of the selected sub-file is used as the historical memory data.
7. The method according to claim 4, characterized in that The step of obtaining a target agent corresponding to the target user based on the historical memory data includes: Training the agent based on the training data corresponding to the historical memory data to obtain a target agent corresponding to the target user; The training data corresponding to the historical memory data includes the historical memory data, or the training data corresponding to the historical memory data includes the historical memory data and generated data, and the generated data is obtained by performing target processing on the historical memory data, and the target processing includes at least one of the following: synonym replacement processing, word order adjustment processing, and semantic enhancement processing.
8. The method according to claim 4, characterized in that The method further comprises: Receiving description information of the target agent; The step of obtaining a target agent corresponding to the target user based on the historical memory data includes: The agent is trained based on the historical memory data and the description information to obtain a target agent corresponding to the target user.
9. The method according to claim 2, characterized in that: The target configuration interface also includes a language configuration item; The method further comprises: In response to receiving a selection operation of the language configuration item, displaying a language selection interface, wherein the language selection interface carries a plurality of candidate languages; In response to receiving a selection operation on a candidate language, the candidate language corresponding to the selection operation is determined as a target language corresponding to when the target agent outputs data.
10. The method according to claim 1, characterized in that The history file contains audio data, and the target agent outputs speech based on a speech synthesis model; The method further comprises: The parameters of the speech synthesis model are updated based on the audio data.
11. The method according to claim 1, characterized in that: The history file includes at least one of audio data, text data, video data and published content.
12. An interactive method, characterized in that: The method comprises: Receive user input information; Determining reply information corresponding to the input information based on a target intelligent agent, wherein the target intelligent agent is determined based on the intelligent agent generation method described in any one of claims 1 to 11; The reply information is output based on the input type of the input information.
13. A device for generating an intelligent agent, characterized in that: The device comprises: The first display module is used to display the interactive interface corresponding to the intelligent agent; An acquisition module, configured to obtain, based on the interactive interface, a history file of a target user corresponding to the agent, wherein the history file includes an operation record of the target user within a historical period; A processing module is used to obtain a target agent corresponding to the target user based on the historical file.
14. An interactive device, characterized in that: The device comprises: A second receiving module is used to receive input information from a user; A second determination module, configured to determine reply information corresponding to the input information based on a target agent, wherein the target agent is determined based on the agent generation method according to any one of claims 1 to 11; An output module is used to output the reply information based on the input type of the input information.
15. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 12 are implemented.
16. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 12.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 are implemented.
Citation Information
Cited By
Intelligent agent configuration method, electronic equipment, storage medium and product
CN118885606A
Content generation method and device, electronic equipment, storage medium and program product
CN118898256A
Interaction method and device, electronic equipment, storage medium and program product
CN119106124A
Interaction method, apparatus, electronic device, storage medium, and program product
CN119106124B
Interaction method, interaction device and computer readable storage medium
CN120144012A
