ChatHaruhi: Reviving Anime Character in Reality via Large Language Model

Cheng Li, Ziang Leng, Chenxi Yan, Junyi Shen, Hao Wang +9 more
8/18/2023
cs.CLcs.HC

Official code: LC1332/Chat-Haruhi-Suzumiya (2,098 stars, Apache-2.0, last commit 2024-08-13).

Abstract

Role-playing chatbots built on large language models have drawn interest, but better techniques are needed to enable mimicking specific fictional characters. We propose an algorithm that controls language models via an improved prompt and memories of the character extracted from scripts. We construct ChatHaruhi, a dataset covering 32 Chinese / English TV / anime characters with over 54k simulated dialogues. Both automatic and human evaluations show our approach improves role-playing ability over baselines. Code and data are available at https://github.com/LC1332/Chat-Haruhi-Suzumiya .

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Chat凉宫春日, An open sourced Role-Playing chatbot Cheng Li, Ziang Leng, and others.

2,098181Python, Jupyter NotebookMay 31, 20232 years agoApache-2.0
role-playingtext-generation

Cite this paper

@article{li2023chatharuhi,
  title  = {ChatHaruhi: Reviving Anime Character in Reality via Large Language Model},
  author = {Cheng Li and Ziang Leng and Chenxi Yan and Junyi Shen and Hao Wang and Weishi MI and Yaying Fei and Xiaoyang Feng and Song Yan and HaoSheng Wang and Linkang Zhan and Yaokai Jia and Pingyu Wu and Haozhen Sun},
  year   = {2023},
  eprint = {2308.09597},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.09597v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.09597.svg)](https://codeofpaper.com/paper/2308.09597)

Discussion