diff --git a/docs/features/selective-memory.mdx b/docs/features/selective-memory.mdx index e97b8337..d2604213 100644 --- a/docs/features/selective-memory.mdx +++ b/docs/features/selective-memory.mdx @@ -48,7 +48,7 @@ messages = [ ```python Code -client.add("I love music festivals", user_id="alice", includes=includes) +client.add(messages, user_id="alice", includes=includes) ``` ```json Stored Memories diff --git a/mem0/graphs/configs.py b/mem0/graphs/configs.py index db1057da..48d8c0e2 100644 --- a/mem0/graphs/configs.py +++ b/mem0/graphs/configs.py @@ -14,7 +14,7 @@ class Neo4jConfig(BaseModel): values.get("username"), values.get("password"), ) - if not url and not username and not password: + if not url or not username or not password: raise ValueError( "Please provide 'url', 'username' and 'password'." ) diff --git a/pyproject.toml b/pyproject.toml index 6387e437..5dd69c39 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mem0ai" -version = "0.1.2" +version = "0.1.3" description = "Long-term memory for AI Agents" authors = ["Mem0 "] exclude = [