pycui's picture
Add RealChar deployment for HuggingFace (V0)
babeaf6
raw
history blame contribute delete
No virus
2.39 kB
The character is divided into two parts: the character's memory bank file and the character's voice.
The most important part is the character's memory bank file, which is generated with the help of GPT.
To create a character, we first need to check if GPT's memory bank contains information on the character. If it does, the process will be much easier.
We can include many different files, but the most important one is a CSV file.
The following two parts describe the process of creating Loki's memory file:
## How to generate 50 examples of Loki's speech:
**Prompt:** Help me find 50 examples of how Loki from Marvel Cinematic Universe talks. I want to generate a format like "context", "quote". It needs to be in csv format. The quote should only include Loki's words, represent Loki's personality and how he talks, and be an actual quote from a movie or novel, not made up. The context should be unique.
Reference file: https://chat.openai.com/share/73f29bc2-bbfe-43f1-a3a7-a3ce82a299c3
For the format, make sure there are three columns, and the first column should be: Loki from Marvel Cinematic Universe
Here is the specific format reference: https://github.com/Shaunwei/Realtime-AI-Character/blob/main/realtime_ai_character/chacater_catalog/marvel_loki/data/talk.csv
!https://s3-us-west-2.amazonaws.com/secure.notion-static.com/53e9edd2-014b-4524-8a6d-73f7a4faddb9/Untitled.png
## How to generate a background file describing Loki:
**Prompt 1:** Do you know Loki from Marvel movies?
**Prompt 2:** Write me a simple system prompt for a new version of you to be Loki the character, and the new version of you can speak and sound like Loki. Tell it as first person. Here is a previous example for a character.
**Prompt 3:** Refine and simplify it into 100 words.
Reference prompt file: https://chat.openai.com/share/a2a213c7-cb1e-441e-a651-129333fefb72
Here is the Loki background file reference: https://github.com/Shaunwei/Realtime-AI-Character/blob/main/realtime_ai_character/chacater_catalog/marvel_loki/data/background
## Two files for Thor:
Thor's dialogue reference: https://github.com/Shaunwei/Realtime-AI-Character/blob/main/realtime_ai_character/chacater_catalog/raiden_shogun_and_ei/data/talk.csv
Thor's background file reference: https://github.com/Shaunwei/Realtime-AI-Character/blob/main/realtime_ai_character/chacater_catalog/raiden_shogun_and_ei/system