Interaction system and chat robot for carrying out stylized dialogue based on large language model
By designing the memory module, dialogue module, reflection module and character image module in the chat robot to interact with the large language model, the problem of the chat robot being difficult to promote plot development according to the script is solved, and a vivid stylized dialogue effect is achieved.
Patent Information
- Application Number
- CN202410539372.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-30
- Publication Date
- 2024-09-06
AI Technical Summary
It is difficult for existing chatbots to promote the development of the story according to a given fixed script and specific style, and cannot serve as a dialogue character with a specific style to conduct anthropomorphic and stylistically different conversations with other chatbots or humans.
A stylized dialogue interaction system based on a large language model is designed, including a memory module, a dialogue module, a reflection module and a character image module. These modules interact with the large language model to generate responses that conform to the role settings of the script, and in the script Update the character image during the development process.
It is possible to generate dialogue responses that fit the character's image in a well-founded and controllable manner based on the events and dialogue examples in the memory module. It can change with the development of the script and enhance the anthropomorphic stylized dialogue effect.
Smart Images

Figure CN118606441A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an interactive system and a chat robot for stylized dialogue based on a large language model. Background Art
[0002] Chatbots are software applications that use technologies such as machine learning (ML) and artificial intelligence (AI) to simulate human natural language communication and conduct intelligent conversations with other robots or human users. The latest form of chatbots is mainly represented by the ChatGPT series released by OpenAI on November 30, 2022. They can generate answers based on the patterns and statistical laws they are exposed to in the pre-interaction stage, and can also interact according to the chat context, truly chatting and communicating like humans, and even completing tasks such as writing emails, video scripts, copywriting, translation, code, and papers. In actual applications, chatbots developed based on large language models similar to ChatGPT are also being tried in various scenarios that require dialogue and communication.
[0003] At present, chatbots are widely used as intelligent customer service to provide specific consulting services to users, and as NPCs (non-player characters) with specific characteristics and dialogue styles in games. However, it is difficult for existing chatbots to realize the function of promoting the development of the story plot according to a given fixed script and a specific style of dialogue. They can only retrieve the corresponding content from a prefabricated database to give answers or can only generate a large number of random answers according to given personality characteristics and dialogue styles. They cannot play a distinctive dialogue role that can promote the development of the plot according to the script. This means that there is currently no ideal technical solution for allowing chatbots to be dialogue roles with specific styles to conduct anthropomorphic and style-different dialogues with other chatbots or human users according to a given script, and promote the development of the dialogue plot according to the script.
[0004] Patent document CN117033587A discloses a human-computer interaction method, device, electronic device and medium, including: determining a target topic to be discussed and a target role to be set; based on the target role and the target topic, controlling an interactive dialogue model to interact with a user based on the target topic in a language style consistent with the target role; wherein the interactive dialogue model is a pre-trained large language model. However, this patent cannot completely solve the existing technical problems, nor can it meet the needs of the present invention. Summary of the invention
[0005] In view of the defects in the prior art, the object of the present invention is to provide an interactive system and a chat robot for stylized dialogue based on a large language model.
[0006] The interactive system for stylized dialogue based on a large language model provided by the present invention includes:
[0007] The memory module is used to store the character's setting items, interpersonal relationship items, and historical interaction records in the script;
[0008] The dialogue module is used to interact with users or other interactive systems and generate responses that are consistent with the script role settings;
[0009] The reflection module is used to periodically organize the items currently stored in the memory module and update the image of the character to be played by the character;
[0010] The character image module is used to store the settings and images of the character to be played at the current script stage to guide the generation of stylized responses.
[0011] Preferably, the memory module comprises:
[0012] The event memory submodule is used to encode and store the script events pre-set in the script and the historical interaction records between the interactive system and the user or other interactive systems;
[0013] The character memory submodule is used to store the interpersonal relationships and character impressions of the character played by the user or other characters involved in the script.
[0014] Preferably, the event memory submodule includes:
[0015] Event memory, which is used to store external events including plot text, character observations, and dialogue history for reference during role-playing;
[0016] A memory retrieval unit, for retrieving the most relevant multiple memories according to the semantic relevance between the event text and the memory items when given an external event including a user message and a plot text;
[0017] Semantic encoding unit, used to embed the text content of memory items to provide an index when retrieving memory items.
[0018] Preferably, the character memory submodule includes:
[0019] The character relationship library is used to store the relationships between characters in the current script from the perspective of the character being played;
[0020] Character impression library, used to store the views of other characters in the current script from the perspective of the character being played;
[0021] The character extraction unit is used to extract text including names, titles, personal pronouns, etc. that can refer to other characters in the current script from the text, and obtain other characters involved in the text through reference analysis.
[0022] Preferably, the dialogue module includes:
[0023] The dialogue generation submodule is used to generate character-styled responses;
[0024] The dialogue judgment unit is used to judge whether the character should dialogue and respond to the event when an external event is given.
[0025] Preferably, the dialogue generation submodule includes:
[0026] Dialogue sample library, used to store stylized dialogue samples of characters for reference;
[0027] A sample retrieval unit, for retrieving the most relevant sample replies according to the semantic relevance between the message text and the conversation sample when a user message is given;
[0028] The semantic encoding unit is used to embed the question text content in the dialogue sample to provide an index for the sample reply when retrieving the dialogue sample.
[0029] Preferably, the reflection module includes:
[0030] The event reflection unit is used to generate subjective thoughts and opinions on the event from the perspective of the role to be played when given an objective description of the event;
[0031] The character reflection unit is used to reflect and update the relationships and impressions of other characters extracted according to the content of the event when an objective event description is given;
[0032] The role image reflection unit is used to reflect and update the role image according to the event content in a preset time period when the number of new events in the preset time period reaches a preset threshold.
[0033] Preferably, the character image module includes:
[0034] A character status unit is used to indicate the status description of the character including the current position and the action being performed;
[0035] Character monologue units are used to indicate the character's psychological activities, including current inner thoughts;
[0036] The role-playing guidance unit is used to instruct the interactive system how to play the role.
[0037] Preferably, before using the interactive system, the memory module, the dialogue module, and the character image module are initialized, and the pre-set script content, character relationships, and dialogue samples are stored; then the interactive system responds to external events, which include the plot in the script and the dialogue messages input during user interaction;
[0038] The interactive system obtains script events from the outside, and the events will enter the memory module and be stored in the event memory bank of the event memory submodule. At the same time, each unit in the reflection module will interact with the large language model to generate a view of the event from the perspective of the role played, and update the description of each content in the character memory submodule and the character image module based on the content of the event.
[0039] The dialogue judgment unit will determine whether the interactive system should respond to the event with a dialogue. If the interactive system decides that a dialogue is necessary, the dialogue module will retrieve the dialogue sample most relevant to the event and provide it to the large language model as a reference for the response. At the same time, the role image module will provide each unit's description of the role to be played to the large language model as a role-playing guide. Finally, the response generated by the large language model will be provided to the user or other objects in the script, and the response will also be stored in the event memory, completing an interaction with the external event.
[0040] The chat robot for stylized dialogue based on a large language model provided by the present invention is equipped with the interactive system for stylized dialogue based on a large language model.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The chat robot proposed in the present invention can use a large language model to generate dialogue responses that conform to the character image in a reasonable and controllable manner based on the events and character impressions stored in the memory module and the dialogue samples stored in the dialogue module. The character image can also change as the plot of the script develops, thereby more vividly achieving an anthropomorphic and stylized dialogue effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0044] Figure 1 The overall structural block diagram of the chat robot for generating stylized dialogues according to scripts based on a large language model of the present invention is shown;
[0045] Figure 2 A block diagram showing the memory module in the chat robot for generating stylized dialogues according to scripts based on a large language model of the present invention;
[0046] Figure 3 A block diagram showing the dialogue module in the chat robot for generating stylized dialogues according to scripts based on a large language model of the present invention;
[0047] Figure 4 A block diagram showing the reflection module in the chat robot for generating stylized dialogues according to scripts based on a large language model of the present invention;
[0048] Figure 5 A block diagram of the character image module in the chat robot for generating stylized dialogues according to a script based on a large language model of the present invention is shown. DETAILED DESCRIPTION
[0049] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0050] Example
[0051] See also Figure 1 The present invention proposes a chatbot interaction system 100 for generating stylized dialogues according to a script based on a large language model, including a role chatbot and a large-scale language model; the role chatbot is the main technical feature of the present invention, and the large-scale language model can be ChatGPT or other large-scale language models similar to it with equal or stronger language understanding and generation capabilities. After an external event is transmitted to the role chatbot, each module of the role chatbot generates a stylized role reply by interacting with the large-scale language model.
[0052] More specifically, the role chat robot 100 includes: a memory module 110, which is used to store the role's setting items, interpersonal relationship items, and historical interaction records in the script; a dialogue module 120, which is used to interact with users or other chat robots to generate replies that conform to the script role settings; a reflection module 130, which is used to periodically organize the items currently stored in the memory module and update the character image to be played by the role; a role image module 140, which is used to store the settings and image of the role to be played by the chat robot at the current script stage to guide the generation of stylized replies.
[0053] Accordingly, if Figure 2As shown, the memory module 110 includes: an event memory submodule 111, which is used to encode, store and maintain the historical interaction records of the script events preset in the script and the chat robot and the user or other characters involved in the script; and a character memory submodule 112, which is used to store and maintain the interpersonal relationship and character impression of the character played by the chat robot on the user or other characters involved in the script. More specifically, the event memory submodule 111 includes: an event memory library, a memory retrieval unit, and a semantic encoding unit. The event memory library is used to store the preset events experienced by the character played by the chat robot in the script, and can also store the events received by the character from the outside world during the script, and maintain the creation time and the last access time for each memory entry. When coordinated with the reflection module, the stored memory entry should also include the subjective explanation and opinion of the character played by the chat robot on the event. The memory retrieval unit is used to retrieve the latest and related memories in the event memory library according to the semantic similarity and the last access time of the memory entry, for reference by each module or unit of the subsequent dialogue process. The retrieval here is a weighted priority retrieval, and the memory retrieval unit will assign weights to both semantic relevance and temporal proximity, thereby obtaining retrieval results of comprehensive relevance and timeliness. The semantic encoding unit is used to encode the event text into a vector of fixed dimension using an embedding method as an index of the event, thereby providing a retrieval basis for semantic similarity for the memory retrieval unit. The character memory submodule 112 includes: a character relationship library, a character impression library, and a character extraction unit. The character relationship library is used to store the relationship between the role played by the chat robot and the user or other roles. The character impression library is used to store the subjective impressions and views of the role played by the chat robot on the user or other roles. When used in conjunction with the reflection module, the content of the entries stored in the character relationship library and the character impression library may change with the direction of the script or the communication between the user and the chat robot, so that the attitude of the character chat robot towards a certain character can change at different script stages. The character extraction unit is used to extract words such as names or personal pronouns that can refer to characters from events such as observations and conversations, and determine the specific characters referred to by the words, thereby providing character indexes for the character relationship library and the character impression library.
[0054] Since the role chat robot is designed as a whole, it needs multiple modules to be used together. Therefore, when introducing the workflow of the memory module below, it will involve cooperation with other modules. In a specific example of the present disclosure, after the external event is transmitted to the role chat robot, the memory module processes the external event, including: in the event memory submodule, the semantic coding unit is used to make an embedded representation of the event, and then the memory retrieval unit retrieves the relevant memory entries in the event memory library, and sends these memory entries to the reflection module; after obtaining the subjective explanation and opinion of the role played by the chat robot on the event from the reflection module, the reflected event is stored together with the original event and the embedded coding representation in the event memory library. At the same time, in the character memory submodule, the character extraction unit extracts other characters involved in the event and sends them to the reflection module together with the relevant memory entries; after obtaining the reflected character relationship and character impression from the reflection module, the content of the relevant character entries in the character relationship library and the character impression library is updated. Finally, the reflected event is sent to the dialogue module for determining whether to conduct a dialogue, how to generate a dialogue, and other subsequent processes.
[0055] Furthermore, after the memory module completes processing of the external event, the dialogue module will receive the content from the memory module and perform subsequent processing.
[0056] Accordingly, if Figure 3As shown, the dialogue module 120 includes: a dialogue judgment unit, which is used to judge whether the chat robot should respond to the external event in the form of a dialogue; and a dialogue generation submodule 121, which is used to generate a stylized role response according to the dialogue sample and the role-related information provided by the role image module when the chat robot judges that it is necessary to have a dialogue. More specifically, the dialogue generation submodule 121 includes: a dialogue sample library, a sample retrieval unit, and a semantic encoding unit. The dialogue sample library is used to store dialogue samples provided in advance for the chat robot. The dialogue sample can be manually written or automatically generated, but it should be able to reflect the style of the role played by the chat robot from the sample, so that the large language model can generate dialogue responses with similar styles. In addition, in actual implementation, the dialogue sample library is designed to work normally even if no dialogue sample is provided, but at this time, due to the lack of sample reference, the ability of the chat robot to generate stylized responses may be reduced. The sample retrieval unit is used to retrieve several dialogue samples that are most relevant to the semantics of the external event in the dialogue sample library according to semantic similarity for reference when the large language model is generated. The semantic encoding unit is used to encode the questions and other sentences raised by other characters when talking to the character played by the chat robot into a vector of fixed dimension using an embedding method when storing the dialogue sample into the dialogue sample library, as the index of the dialogue sample, so as to provide a basis for semantic similarity retrieval for the sample retrieval unit. The semantic encoding unit has similar functions to the semantic encoding unit in the event memory submodule, and the same embedding model can be used for encoding processing in implementation.
[0057] Similarly, when introducing the workflow of the dialogue module below, cooperation with other modules will be involved. In a specific example of the present disclosure, before applying the role chat robot, the dialogue sample library of the dialogue generation submodule should be initialized first. The user can provide pre-written dialogue samples involving the role played by the chat robot, encode and index the samples through the semantic coding unit, and store them in the dialogue sample library. When applying the role chat robot, after receiving the reflected event processed by the memory module, the dialogue module first uses the dialogue judgment unit to comprehensively judge whether the role chat robot should make a dialogue response to the external event based on the current status of the character provided by the character image module. If the dialogue judgment unit determines that it is necessary to have a dialogue, the next process continues. The semantic encoding unit of the dialogue generation submodule will encode the incoming external events, and the sample retrieval unit will retrieve the most similar dialogue samples according to the semantic similarity; at the same time, the dialogue module will obtain the memory related to the event from the event memory submodule of the memory module, obtain the character information related to the event from the character memory submodule, and obtain the character status, character monologue and role-playing guidance from the character image module, and provide this information to the large language model, requiring the large language model to use the character's memory to generate a response that conforms to the script setting, and by instructing the large model on how to play the role, the large model uses the character's current psychological state and the pre-provided samples to generate a response that conforms to the character's style. In this way, the dialogue module will be able to generate a response that is both consistent with the script setting and stylized, and provide it to the user or other characters in the script. It should be noted that the event of the character chatbot generating a response can also be regarded as an external event, which needs to be stored in the event memory library of the memory module, but there is no need to continue to generate a dialogue response to the event.
[0058] When the above-mentioned memory module and dialogue module are working, they need to cooperate with the reflection module and role image module in the role chat robot.
[0059] Accordingly, if Figure 4As shown, the reflection module 130 includes: an event reflection unit, a character reflection unit, and a role image reflection unit. More specifically, the event reflection unit is used to perform a role-stylized retelling of the incoming objective external events, and use the large language model to generate a subjective description and opinion of the event from the perspective of the role played by the chat robot. The generation process can be represented by the following formula: subjective description-LLM (role image, objective external event), where LLM() represents the large language model function, which generates corresponding text output by accepting the text input in the brackets. The character reflection unit is used to reflect on the characters involved in the incoming objective external events, and use the large language model to generate the relationship between the relevant characters and the role played by the chat robot according to the content of the event, as well as the subjective impression and opinion of the relevant characters from the perspective of the role played. In this way, the role chat robot will be able to show different attitudes to different characters, and can make the character impression change accordingly according to the progress of the script. The character image reflection unit is used to generate a subjective summary of the character's thoughts on these events in the form of a monologue using a large language model from the perspective of the character played by the chat robot when a certain number of external events are input or a certain time has passed in the script. The summary is provided to the character image module. In this way, the character's image and psychological state will be able to change accordingly according to the development of the event and the progress of the script, so that the character image is not static during the script performance; the generated character monologue can also help the dialogue module generate a stylized response that better reflects the character's inner state.
[0060] Similarly, when introducing the workflow of the reflection module, the following will involve cooperation with other modules. In a specific example of the present disclosure, after the external event is passed into the memory module, the event reflection unit and the character reflection unit in the reflection module need to use the large language model to generate the corresponding reflected content, which is used to maintain the event memory library, the character relationship library and the character impression library in the memory module. When the number of external events passed in reaches a certain threshold, or the chat robot has passed a certain time in the script, the external events that occurred during this period of time will be collected from the event memory library and provided to the role image reflection unit in the form of reflection. The guidance provided by the role playing guidance unit of the comprehensive role image module to the chat robot is used to generate the inner monologue of the role played by the chat robot after these events using the large language model, which is used to maintain the content of the role monologue unit in the role image module. In the specific implementation, the method and technical means of triggering the role image reflection unit can be flexibly set by the user, including but not limited to event counters, script timers and the like.
[0061] Accordingly, if Figure 5As shown, the character image module 140 includes: a character state unit, a character monologue unit, and a role-playing guidance unit. More specifically, the character state unit is used to detect and record the character status of the character chat robot, such as the position and ongoing actions at the current time. These status information can be provided by the script environment in which the character chat robot is located, or can be set manually. The character monologue unit is used to receive and store the inner monologue of the character from the reflection module at the current time, and describe the psychological activities of the role played by the chat robot through the inner monologue. The role-playing guidance unit is used to store guiding statements on how to play the role of the script. The guiding statements should specify the overall principles that the character chat robot should follow when playing the role of the script, and will not change throughout the script. The role-playing guidance should be pre-defined manually, and will guide the large language model on how to reflect and maintain the character image to better fit the expected character style.
[0062] Similarly, the following will involve cooperation with other modules when introducing the workflow of the role image module. In a specific example of the present disclosure, before applying the role chat robot, the role playing guidance unit should first be provided with a manually written role playing guidance to determine the expected role style as a whole. When applying the role chat robot, when the reflection module is about to reflect on an event, a person or a role image, the role image module will provide the reflection module with necessary role status, monologue, and role playing guidance information, so that the reflection module can perform relevant reflection processes according to the image of the role played by the chat robot. Among them, the role status stored in the role status unit will be updated by the script environment as the script progresses; the role monologue stored in the role monologue unit will be updated by the role image reflection unit of the reflection module as the script progresses, so that the role image can change as the script progresses. On the other hand, when the dialogue module is about to generate a dialogue, the role image module will provide the dialogue module with necessary role status, monologue, and role playing guidance information, so that the dialogue module can generate a stylized role response that fits the script environment according to the image of the role played by the chat robot and the time, place, occasion and other factors.
[0063] In summary, a chatbot interaction system 100 for generating stylized dialogues according to scripts based on a large language model is explained based on an embodiment of the present disclosure. Through the coordination of a memory module, a dialogue module, a reflection module, and a character image module and the use of a large-scale language model, it is possible to more effectively simulate script roles, enable the character chatbot to participate in the script, and generate stylized responses that fit the script environment and are consistent with the character image.
[0064] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0065] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. An interactive system for stylized dialogue based on a large language model, characterized in that: include: The memory module is used to store the character's setting items, interpersonal relationship items, and historical interaction records in the script; The dialogue module is used to interact with users or other interactive systems and generate responses that are consistent with the script role settings; The reflection module is used to periodically organize the items currently stored in the memory module and update the image of the character to be played by the character; The character image module is used to store the settings and images of the character to be played at the current script stage to guide the generation of stylized responses.
2. The interactive system for stylized dialogue based on a large language model according to claim 1, characterized in that: The memory module comprises: The event memory submodule is used to encode and store the script events pre-set in the script and the historical interaction records between the interactive system and the user or other interactive systems; The character memory submodule is used to store the interpersonal relationships and character impressions of the character played by the user or other characters involved in the script.
3. The interactive system for stylized dialogue based on a large language model according to claim 2, characterized in that: The event memory submodule comprises: Event memory, which is used to store external events including plot text, character observations, and dialogue history for reference during role-playing; A memory retrieval unit, for retrieving the most relevant multiple memories according to the semantic relevance between the event text and the memory items when given an external event including a user message and a plot text; Semantic encoding unit, used to embed the text content of memory items to provide an index when retrieving memory items.
4. The interactive system for stylized dialogue based on a large language model according to claim 2, characterized in that: The character memory submodule includes: The character relationship library is used to store the relationships between characters in the current script from the perspective of the character being played; Character impression library, used to store the views of other characters in the current script from the perspective of the character being played; The character extraction unit is used to extract text including names, titles, personal pronouns, etc. that can refer to other characters in the current script from the text, and obtain other characters involved in the text through reference analysis.
5. The interactive system for stylized dialogue based on a large language model according to claim 1, characterized in that: The dialogue module comprises: The dialogue generation submodule is used to generate character-styled responses; The dialogue judgment unit is used to judge whether the character should dialogue and respond to the event when an external event is given.
6. The interactive system for stylized dialogue based on a large language model according to claim 5, characterized in that: The dialogue generation submodule comprises: Dialogue sample library, used to store stylized dialogue samples of characters for reference; A sample retrieval unit, for retrieving the most relevant sample replies according to the semantic relevance between the message text and the conversation sample when a user message is given; The semantic encoding unit is used to embed the question text content in the dialogue sample to provide an index for the sample reply when retrieving the dialogue sample.
7. The interactive system for stylized dialogue based on a large language model according to claim 1, characterized in that: The reflection module includes: The event reflection unit is used to generate subjective thoughts and opinions on the event from the perspective of the role to be played when given an objective description of the event; The character reflection unit is used to reflect and update the relationships and impressions of other characters extracted according to the content of the event when an objective event description is given; The role image reflection unit is used to reflect and update the role image according to the event content in a preset time period when the number of new events in the preset time period reaches a preset threshold.
8. The interactive system for stylized dialogue based on a large language model according to claim 1, characterized in that: The character image module includes: A character status unit is used to indicate the status description of the character including the current position and the action being performed; Character monologue units are used to indicate the character's psychological activities, including current inner thoughts; The role-playing guidance unit is used to instruct the interactive system how to play the role.
9. The interactive system for stylized dialogue based on a large language model according to claim 3, characterized in that: Before using the interactive system, the memory module, dialogue module, and character image module are initialized, and the pre-set script content, character relationships, and dialogue samples are stored; The interactive system then responds to external events, which include plots in the script and dialogue messages input by the user during interaction; The interactive system obtains script events from the outside, and the events will enter the memory module and be stored in the event memory bank of the event memory submodule. At the same time, each unit in the reflection module will interact with the large language model to generate a view of the event from the perspective of the role played, and update the description of each content in the character memory submodule and the character image module based on the content of the event. The dialogue judgment unit will determine whether the interactive system should respond to the event with a dialogue. If the interactive system decides that a dialogue is necessary, the dialogue module will retrieve the dialogue sample most relevant to the event and provide it to the large language model as a reference for the response. At the same time, the role image module will provide each unit's description of the role to be played to the large language model as a role-playing guide. Finally, the response generated by the large language model will be provided to the user or other objects in the script, and the response will also be stored in the event memory, completing an interaction with the external event.
10. A chat robot for stylized dialogue based on a large language model, characterized in that: An interactive system for stylized dialogue based on a large language model according to any one of claims 1 to 9.
Citation Information
Cited By
LLM character character shaping-based emotional accompanying platform for elderly at home
CN119807344A
Dialogue data generation method, electronic device, storage medium and program product
CN120144723A
Conversation data generation method, electronic device, storage medium, and program product
CN120144723B
Character memory alignment method for role-based large language model
CN120525051A
Dialogue method and device based on large model, equipment and medium
CN120561234A
