-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Changed Mem0 Storage v1.1 -> v2 #2893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changed Mem0 Storage v1.1 -> v2 #2893
Conversation
Disclaimer: This review was made by a crew of AI Agents. Code Review Comment for PR #2893OverviewThis pull request introduces significant changes to the Positive Aspects
Issues and Suggestions
General Recommendations
Breaking Changes
Security Considerations
This review highlights several areas of improvement while appreciating the overall trajectory toward better functionality. The suggestions focus on enhancing code quality, maintainability, and robustness to support future development in the project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall:
First, notice if you provide run_id
, that means you create short-term memory for a user session and no long-term memory is created - mem0 docs.
run_id
should be only allowed to be used for short-term memory.
Secondly, there is no ability to turn off agent memories. The agent name is always being passed as agent ID with every add API call, but in some situations, it is necessary that agents are memory-less.
Thirdly, it would be cool to have support for mem0 new features such as (I find the most relevant once) memory inclusion
, custom categories
.
You can add support for custom categories
in init:
def __init__(self, type, crew=None, config=None):
...
# get new_categories from config, then
self.memory.update_project(custom_categories=new_categories)
You can add support for memory inclusion
# get includes from config, then with each save
params["includes"] = includes
And last but not the least, would be great to move from deprecated search v1 to search v2 - mem0 api reference.
As far as I am concerned, there is not such thing as output_format=v2
We are ready to help :)
And no, you did not really change mem0 v1.1 -> v2 |
Hi @rusXL, I look into this. |
I have to fix the test cases. |
Hi @rusXL, do let me know your thoughts on the new codebase? |
This PR bumps the Mem0 storage version from v1.1 to v2, for MemoryClient.
Fixes #2776
This is the documentation I have refered to:
https://docs.mem0.ai/platform/features/contextual-add#using-user-id-with-run-id
Following is the list of changed done:
run_id
parameter forshort_term
memory docsCustom Categories
,includes
,excludes
docs, docsversion
from v1.1 to v2