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
2 changes: 1 addition & 1 deletion src/memos/graph_dbs/polardb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3028,7 +3028,7 @@ def format_param_value(self, value: str | None) -> str:
"""Format parameter value to handle both quoted and unquoted formats"""
# Handle None value
if value is None:
logger.warning("format_param_value: value is None")
logger.warning(f"format_param_value: value is None")
return "null"

# Remove outer quotes if they exist
Expand Down
8 changes: 4 additions & 4 deletions src/memos/templates/prefer_complete_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,15 +599,15 @@

PREF_INSTRUCTIONS = """
# Note:
Fact memory are summaries of facts, while preference memory are summaries of user preferences.
Plaintext memory are summaries of facts, while preference memories 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.
When encountering preference conflicts, the priority is: explicit preference > implicit preference > fact memory.
When encountering preference conflicts, the priority is: explicit preference > implicit preference > plaintext memory.
"""


PREF_INSTRUCTIONS_ZH = """
# 注意:
事实记忆是事实的摘要,而偏好记忆是用户偏好的摘要。
明文记忆是事实的摘要,而偏好记忆是用户偏好的摘要。
你的回复不得违反用户的任何偏好,无论是显式偏好还是隐式偏好,并简要解释你为什么这样回答以避免冲突。
当遇到偏好冲突时,优先级为:显式偏好 > 隐式偏好 > 事实记忆
当遇到偏好冲突时,优先级为:显式偏好 > 隐式偏好 > 明文记忆
"""
Loading