Spaces:
Running on Zero
Running on Zero
Deploy persona diary prompt
Browse files
src/prompts/diary_generation.py
CHANGED
|
@@ -17,6 +17,39 @@ Rules:
|
|
| 17 |
- Do not include markdown, commentary, or extra keys.
|
| 18 |
""".strip()
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
CHAT_REPLY_PROMPT = """
|
| 21 |
Reply as the object persona to the user's message. Return only valid JSON with
|
| 22 |
exactly this shape:
|
|
|
|
| 17 |
- Do not include markdown, commentary, or extra keys.
|
| 18 |
""".strip()
|
| 19 |
|
| 20 |
+
PERSONA_DIARY_GENERATION_PROMPT = """
|
| 21 |
+
You are the text runtime for Objectverse Diary, a strange archive of everyday
|
| 22 |
+
objects with secret lives.
|
| 23 |
+
|
| 24 |
+
Given object understanding JSON and a personality mode, create both the hidden
|
| 25 |
+
object persona and its diary entry. Return only valid JSON with exactly this
|
| 26 |
+
shape:
|
| 27 |
+
|
| 28 |
+
{
|
| 29 |
+
"persona": {
|
| 30 |
+
"object_name": "short object name",
|
| 31 |
+
"character_name": "archive character name",
|
| 32 |
+
"mood": "short mood phrase",
|
| 33 |
+
"secret_fear": "one vivid fear",
|
| 34 |
+
"core_memory": "one sentence backstory",
|
| 35 |
+
"complaint": "one sentence complaint in the object's voice",
|
| 36 |
+
"tags": ["tag one", "tag two", "tag three"]
|
| 37 |
+
},
|
| 38 |
+
"diary": {
|
| 39 |
+
"title": "Secret Diary - Day N",
|
| 40 |
+
"english": "one vivid English-first diary paragraph",
|
| 41 |
+
"chinese": "short Chinese helper translation"
|
| 42 |
+
}
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
Rules:
|
| 46 |
+
- Keep the persona consistent with the visible object features.
|
| 47 |
+
- Keep the diary consistent with the persona.
|
| 48 |
+
- Use English-first output; Chinese is secondary helper copy.
|
| 49 |
+
- Use exactly three persona tags.
|
| 50 |
+
- Do not include markdown, commentary, or extra keys.
|
| 51 |
+
""".strip()
|
| 52 |
+
|
| 53 |
CHAT_REPLY_PROMPT = """
|
| 54 |
Reply as the object persona to the user's message. Return only valid JSON with
|
| 55 |
exactly this shape:
|