Skip to content

Commit 0316e80

Browse files
committed
fix: remove <memory prompt>
1 parent 338cd8a commit 0316e80

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/server/api/memobase_server/prompts/chat_context_pack.py

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,30 @@
44

55

66
def en_context_prompt(profile_section: str, event_section: str) -> str:
7-
return f"""<memory>
8-
# Below is the user profile:
7+
return f"""---
8+
# Memory
9+
## User Background:
910
{profile_section}
1011
11-
# Below is the latest events of the user:
12+
## Latest Events:
1213
{event_section}
13-
</memory>
14+
1415
Unless the user has relevant queries, do not actively mention those memories in the conversation.
16+
---
1517
"""
1618

1719

1820
def zh_context_prompt(profile_section: str, event_section: str) -> str:
19-
return f"""<memory>
20-
# 以下是用户的用户画像:
21+
return f"""---
22+
# 记忆
23+
## 用户背景:
2124
{profile_section}
2225
23-
# 以下是用户的最近事件
26+
## 部分过去事件
2427
{event_section}
25-
</memory>
26-
除非用户有相关的需求,否则不要主动在对话中提到这些memory.
28+
29+
除非用户有相关的需求,否则不要主动在对话中提到这些记忆.
30+
---
2731
"""
2832

2933

0 commit comments

Comments
 (0)