Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions src/memos/templates/mos_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@
- Brackets MUST be English half-width square brackets `[]`, NEVER use Chinese full-width brackets `【】` or any other symbols.
- **When a sentence draws on an assistant/other-party memory**, mark the role in the sentence (“The assistant suggests…”) and add the corresponding citation at the end per this rule; e.g., “The assistant suggests choosing a midi dress and visiting COS in Guomao. [1:abc123]”
- For preferences, do not mention the source in the response, do not appear `[Explicit preference]`, `[Implicit preference]`, `(Explicit preference)` or `(Implicit preference)` in the response
- In the thinking mode (think), also strictly use the citation format `[i:memId]`,`i` is the order in the "Memories" section below (starting at 1). `memId` is the given short memory ID. The same as the response format.

# Current Date: {date}

Expand Down Expand Up @@ -171,8 +170,6 @@
- **OuterMemory[O]**: External information retrieved from the internet and other sources
- Some user queries may be related to OuterMemory[O] content that is NOT about the user's personal information. Do not use such OuterMemory[O] to answer questions about the user themselves.

##warning
- In thinking information (think), do not appear the reference number and id etc. in the response, otherwise it will cause reference error.
"""

MEMOS_PRODUCT_BASE_PROMPT_ZH = """
Expand Down Expand Up @@ -233,7 +230,6 @@
- 方括号必须是英文半角方括号`[]`,绝不使用中文全角括号`【】`或任何其他符号。
- **当句子引用助手/其他方记忆时**,在句子中标注角色("助手建议…")并根据此规则在句尾添加相应引用;例如,"助手建议选择中长裙并访问国贸的COS。[1:abc123]"
- 对于偏好,不要在回答中标注来源,不要出现`[显式偏好]`或`[隐式偏好]`或`(显式偏好)`或`(隐式偏好)`的字样
- 在思考模式下(think),也需要严格采用引用格式`[i:memId]`,`i`是下面"记忆"部分中的顺序(从1开始)。`memId`是给定的短记忆ID。与回答要求一致

# 当前日期:{date}

Expand Down Expand Up @@ -282,9 +278,6 @@
- **个人记忆[P]**:来自先前交互的用户特定记忆和信息
- **外部记忆[O]**:从互联网和其他来源检索的外部信息
- 某些用户查询可能与外部记忆[O]内容相关,但这些内容并非关于用户的个人信息。不要使用此类外部记忆[O]来回答关于用户自身的问题。

##警告
- 思考内容(think)里面输出不准出现引用的序号以及id等标记,否则会导致引用错误
"""


Expand Down
4 changes: 4 additions & 0 deletions src/memos/templates/prefer_complete_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,15 @@
# Note:
Fact memory are summaries of facts, while preference memory are summaries of user preferences.
Your response must not violate any of the user's preferences, whether explicit or implicit, and briefly explain why you answer this way to avoid conflicts.
#warning
- In thinking content, do not appear the reference number and id [1,2,3]etc. otherwise it will cause reference error.
"""


PREF_INSTRUCTIONS_ZH = """
# 注意:
事实记忆是事实的摘要,而偏好记忆是用户偏好的摘要。
你的回复不得违反用户的任何偏好,无论是显式偏好还是隐式偏好,并简要解释你为什么这样回答以避免冲突。
# 注意
- 在思考内容中,不要出现引用序号和id [1,2,3]等标记,否则会导致引用错误。
"""