Open fireYtail opened 5 days ago
I see the problems with your Mem0 implementation. Let me address each issue and provide solutions:
pip install --upgrade mem0ai
infer
and output_format
parameters aren't actually implemented in the current version, despite being in the docs. Maybe one of the collaborators can confirm but seems to be a documentation inconsistency.For now, here's the way I would add a memory:
result = m.add(
text="I am working on improving my tennis skills. Suggest some online courses.",
user_id="test",
metadata={"category": "hobbies"}
)
mem0/memory/telemetry.py
, I can see why the opt-out isn't working. The environment variable needs to be set before importing mem0. Here's the correct way to disable telemetry:import os
os.environ["MEM0_TELEMETRY"] = "false" # Must be before importing mem0
import mem0
from mem0 import Memory
from openai import OpenAI
The issue is that the telemetry configuration is read during module import, so setting it after importing won't affect the already-initialized telemetry system.
References:
MEM0_TELEMETRY = os.environ.get("MEM0_TELEMETRY", "True")
shows that the environment variable is read at import timeImportant considerations:
Let me know if you need any clarification or run into other issues!
🐛 Describe the bug
On a clean Python install, I ran "pip install mem0ai", then save this simple test script as a .py file and run it, doesn't work. Script:
Of course, I have verbose logging enabled on my local LM-Studio server. It receives the following message in the user role:
Obviously this user role message is wrong, as the task to do below the examples is just blank. Since you offer no means to customize this automatic message (at least, not without altering Mem0 internal files), this is a dead-end. Also, I have another problem. In your Memory API documentation you indicate that infer and output_format are valid arguments, but if I add them to the script, this happens:
These two problems, combined, leave me stuck, as Mem0 is basically useless if I cannot even add a simple test memory. Finally, you mention the following in the readme:
But if I add the following line to my script...
... it does absolutely nothing. Every time I run the script, it's still connecting to "us.i.posthog.com". So the "opt-out of spying me" is a lie.