style(memory): instruct AI to avoid emojis in responses
Some checks failed
Build and Push Docker / build-and-push (push) Failing after 2m32s
Some checks failed
Build and Push Docker / build-and-push (push) Failing after 2m32s
This commit is contained in:
@ -28,7 +28,7 @@ class Mem0Integration:
|
|||||||
self.memory_template = """根据以下关于用户的记忆:
|
self.memory_template = """根据以下关于用户的记忆:
|
||||||
{memories}
|
{memories}
|
||||||
请回应用户的询问:{query}
|
请回应用户的询问:{query}
|
||||||
在你的回复中,请参考上述记忆以提供个性化的回答。"""
|
在你的回复中,请参考上述记忆以提供个性化的回答。注意回复不要加表情符号。"""
|
||||||
|
|
||||||
def search_memories(self, query: str, user_id: str, limit: int = 5) -> List[Any]:
|
def search_memories(self, query: str, user_id: str, limit: int = 5) -> List[Any]:
|
||||||
"""Search for relevant memories about the user."""
|
"""Search for relevant memories about the user."""
|
||||||
|
Reference in New Issue
Block a user