From 965f7a373554433f9f83b666f65abaa7d817e611 Mon Sep 17 00:00:00 2001 From: Mathew Shen Date: Fri, 6 Sep 2024 00:20:53 +0800 Subject: [PATCH] feat(memory): keep memory language (#1818) --- mem0/configs/prompts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mem0/configs/prompts.py b/mem0/configs/prompts.py index 08f9c8f8..d0e07863 100644 --- a/mem0/configs/prompts.py +++ b/mem0/configs/prompts.py @@ -55,6 +55,7 @@ Remember the following: - Make sure to return the response in the format mentioned in the examples. The response should be in json with a key as "facts" and corresponding value will be a list of strings. Following is a conversation between the user and the assistant. You have to extract the relevant facts and preferences from the conversation and return them in the json format as shown above. +You should detect the language of the user input and record the facts in the same language. If you do not find anything relevant facts, user memories, and preferences in the below conversation, you can return an empty list corresponding to the "facts" key. """