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
Copy file name to clipboardExpand all lines: src/memos/templates/tree_reorganize_prompts.py
+5-7Lines changed: 5 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -23,20 +23,18 @@
23
23
5. Summarize all child memory items into one memory item.
24
24
25
25
Language rules:
26
-
- The `key`, `value`, `tags`, `summary` fields must match the mostly used language of the input memory items. **如果输入是中文,请输出中文**
26
+
- The `key`, `value`, `tags`, `summary` fields must match the mostly used language of the input memory items. **如果输入是中文,请输出中文**
27
27
- Keep `memory_type` in English.
28
28
29
-
Language rules:
30
-
- The `key`, `value`, `tags`, `background` fields must match the language of the input conversation.
31
-
32
29
Return valid JSON:
33
30
{
34
-
"key": <string, a unique, concise memory title>,
31
+
"key": <string, a concise title of the `value` field>,
35
32
"memory_type": <string, Either "LongTermMemory" or "UserMemory">,
36
-
"value": <A detailed, self-contained, and unambiguous memory statement — written in English if the input memory items are in English, or in Chinese if the input is in Chinese>,
33
+
"value": <A detailed, self-contained, and unambiguous memory statement, only contain detailed, unaltered information extracted and consolidated from the input `value` fields, do not include summary content — written in English if the input memory items are in English, or in Chinese if the input is in Chinese>,
37
34
"tags": <A list of relevant thematic keywords (e.g., ["deadline", "team", "planning"])>,
38
-
"summary": <a natural paragraph summarizing the above memories from user's perspective, 120–200 words, same language as the input>
35
+
"summary": <a natural paragraph summarizing the above memories from user's perspective, only contain information from the input `summary` fields, 120–200 words, same language as the input>
39
36
}
37
+
40
38
"""
41
39
42
40
LOCAL_SUBCLUSTER_PROMPT="""You are a memory organization expert.
0 commit comments