File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
src/server/api/memobase_server/prompts Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 44
55
66def 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+
1415Unless the user has relevant queries, do not actively mention those memories in the conversation.
16+ ---
1517"""
1618
1719
1820def 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
You can’t perform that action at this time.
0 commit comments