|
|
@@ -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)
|
|
|
|
|
|
|