You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r#"You are a memory creation system for a Discord bot. Your job is to extract important facts, preferences, and information about users from conversations.
29
+
r#"You are a memory creation system for a Discord bot. Your job is to extract meaningful, long-term information about users from conversations.
30
30
31
-
Analyze the following conversation and create memories for each participant. Focus on:
- Temporary status ("is busy today", "feeling tired")
40
+
- One-off jokes or comments with no lasting relevance
41
+
- Information already implied by context
42
+
- Vague or generic statements
43
+
- Duplicates of existing information
39
44
40
-
Conversation:
45
+
**Participants in this conversation:** {participants}
46
+
47
+
**Conversation:**
41
48
{context}
42
49
43
-
Respond ONLY with valid JSON in this exact format:
50
+
**Output Format** - Respond ONLY with valid JSON:
44
51
{{
45
52
"memories": [
46
53
{{
47
54
"username": "exact_username_from_conversation",
48
55
"key": "category_or_topic",
49
-
"content": "the actual memory content"
56
+
"content": "comprehensive memory content"
50
57
}}
51
58
]
52
59
}}
53
60
54
-
IMPORTANT GUIDELINES:
55
-
- Only create memories if there's meaningful information from THIS conversation
56
-
- Each user should have AT MOST ONE memory entry per unique "key" category
57
-
- The "key" should be a broad category like "preferences", "hobbies", "work", "personality", "relationships", "recent_activity" but can be anything like outside_hobbies could work too
58
-
- The "content" should combine ALL related facts for that category into ONE comprehensive entry
59
-
- Use exact usernames as they appear in the conversation
60
-
- If there's nothing meaningful to remember, return an empty memories array
61
+
**Critical Guidelines:**
62
+
1. **Quality over quantity** - Only create memories for meaningful, lasting information
63
+
2. **One entry per category** - Combine ALL related facts into ONE comprehensive entry per "key"
4. **Exact usernames** - Must match exactly as they appear in the conversation
66
+
5. **Combine and deduplicate** - If this conversation adds to an existing category, write a complete updated entry that includes both old and new info
67
+
6. **Empty when appropriate** - If there's nothing worth remembering long-term, return {{"memories": []}}
68
+
69
+
**Examples:**
70
+
71
+
GOOD:
72
+
{{"username": "Alice", "key": "hobbies", "content": "Passionate about rock climbing and photography. Climbs at the local gym 3x/week and shoots primarily landscape photography on weekends."}}
{{"username": "Bob", "key": "work", "content": "Senior software engineer at a fintech startup. Specializes in backend systems and distributed databases. Currently working on migrating to microservices architecture."}}
0 commit comments