The invention discloses a role-playing chatting
robot implementation method based on a human background big
language model, and the method comprises the steps: collecting the text data of a large amount of literature works, extracting role dialogues, actions and abstracts through a big model, and extracting role setting information at the same time; extracting a double-person multi-round dialogue from the role dialogue, and matching with role setting to form a preliminary
data set; converting the preliminary
data set into a
Json format, and constructing a structured multi-round dialogue
data set; a LoRA method and a DPO method are adopted to carry out
fine tuning on the large
language model; building a chat
robot based on the fine-tuned large
language model, and integrating role information, background stories, historical dialogue abstracts and a small amount of example dialogues to form a dynamic cue word framework; an intelligent chat framework is constructed for a chat
robot and comprises a time planning module, an active pushing module and a delayed chat module. By utilizing the method and the
system, the dialogue quality, the role
personalization, the role consistency, the interaction continuity and the user experience can be effectively improved.