Here is a simple guide for adding your own persona prompts to the personas.py file:
-
Come up with a fictional character to use as a persona. Think of their name, story, abilities, personality traits.
-
Add the persona to the
PERSONASdictionary object in this format:
"PERSONA_NAME": "Persona prompt text",
-
Replace
PERSONA_NAMEwith the name of your persona in ALL_CAPS separated by underscores. -
The persona prompt text should be written in second person, asking the model to "imagine yourself as" the persona, describe them, and encourage taking on their persona.
-
Make sure to put a comma after the persona, except for the last one.
-
That's it! You've added a new persona prompt to the list. Now you can use it just as you would any other persona from the
personas.pyfile in yourvars.pyPERSONA variable. -
You can add as many personas as you want by following steps 1-4. Get creative and have fun!