1
0

2 Коммиты 5c27ac6471 ... 32868738d1

Автор SHA1 Сообщение Дата
  Lukas Goldschmidt 32868738d1 infere false - workaround 2 дней назад
  Lukas Goldschmidt 3fa56ec245 extraction prompt 2 дней назад
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      mem0server.py

+ 6 - 4
mem0server.py

@@ -64,13 +64,15 @@ Extract facts that describe:
 5. Goals or plans
 6. Constraints or requirements
 7. Discoveries or conclusions
-8. Important context about tasks
+8. Important context about tasks, persons, programs, projects and locations
+
 
 Ignore:
 - greetings
 - casual conversation
 - general world knowledge
 - temporary statements
+- debugging work
 
 Return the result in JSON format:
 
@@ -285,8 +287,8 @@ async def handle_add(req: Request, mem: Memory, verbatim_allowed: bool = False):
     data = await req.json()
     user_id = extract_user_id(data)
     metadata = data.get("metadata") or {}
-    infer = data.get("infer", True)
-
+    # infer = data.get("infer", False)
+    infer = False
     messages = data.get("messages")
     text = data.get("text")
 
@@ -310,7 +312,7 @@ async def handle_add(req: Request, mem: Memory, verbatim_allowed: bool = False):
     else:
         result = mem.add(text, user_id=user_id, metadata=metadata)
 
-    print(f"[add] user={user_id} infer=True meta={metadata}")
+    print(f"[add] user={user_id} infer={infer} meta={metadata}")
     return SafeJSONResponse(content=result)