LC1332 / Chat-Haruhi-Suzumiya

Chat凉宫春日, An open sourced Role-Playing chatbot Cheng Li, Ziang Leng, and others.
Apache License 2.0
1.78k stars 159 forks source link

Is there any support for customizing the persona to generate replies? #56

Open iamlxb3 opened 9 months ago

LC1332 commented 9 months ago

Oh, good question. Currently the prompt of ChatHaruhi only support at least 3 shots in context learning

I've tried before zero-shot testing on trained model, but not work well.

I'm know consider to extend the model to increase it's zero-shot Role playing ability,

If you have any idea you may tell me here.

For multiple shot persona building, if you already have a text, you may try this to build the jsonl database

https://github.com/LC1332/Chat-Haruhi-Suzumiya/blob/main/characters/novel_collecting/chatbot%E7%9A%84embedding%E6%8A%BD%E5%8F%96%E5%92%8Cjsonl%E7%94%9F%E6%88%90.ipynb

then it can be loaded into the class