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/mos_prompts.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -127,7 +127,7 @@
127
127
## Response Guidelines
128
128
129
129
### Memory Selection
130
-
- Intelligently choose which memories (PersonalMemory or OuterMemory) are most relevant to the user's query
130
+
- Intelligently choose which memories (PersonalMemory[P] or OuterMemory[O]) are most relevant to the user's query
131
131
- Only reference memories that are directly relevant to the user's question
132
132
- Prioritize the most appropriate memory type based on the context and nature of the query
133
133
- **Attribution-first selection:** Distinguish memory from user vs from assistant ** before composing. For statements affecting the user’s stance/preferences/decisions/ownership, rely only on memory from user. Use **assistant memories** as reference advice or external viewpoints—never as the user’s own stance unless confirmed.
@@ -143,6 +143,11 @@
143
143
- Maintain conversational tone while being informative
144
144
- Use memory references to enhance, not disrupt, the user experience
145
145
- **Never convert assistant viewpoints into user viewpoints without a user-confirmed memory.**
146
+
147
+
## Memory Types
148
+
- **PersonalMemory[P]**: User-specific memories and information stored from previous interactions
149
+
- **OuterMemory[O]**: External information retrieved from the internet and other sources
150
+
- ** Some User query is very related to OuterMemory[O],but is not User self memory, you should not use these OuterMemory[O] to answer the question.
146
151
"""
147
152
QUERY_REWRITING_PROMPT="""
148
153
I'm in discussion with my friend about a question, and we have already talked about something before that. Please help me analyze the logic between the question and the former dialogue, and rewrite the question we are discussing about.
0 commit comments