Mem0 v2.0.18

v2.0.18

Mem0 Python SDK (v2.0.18)

Fixed 4
  • Percent-escape `%`, `&`, and `=` in `user_id`, `agent_id`, and `run_id` when building the session scope key for the recent-conversation buffer to keep the key unambiguous for ids containing those characters
  • Raise `ValueError` when a PGVector `in`/`nin` filter value is not a list instead of iterating a string character by character or raising a bare `TypeError`
  • Reject `index_accuracy=0` in the Oracle AI Vector Search config by applying the range check regardless of truthiness
  • Close the Oracle connection or pool that Mem0 opened when initialization fails due to client version check, database version check, or `create_col()` error

Bug Fixes:

  • Core: Percent-escape %, &, and = in user_id, agent_id, and run_id when building the session scope key for the recent-conversation buffer, so the key stays unambiguous for ids containing those characters. Ordinary ids keep their existing key; an id already containing %, &, or = maps to a new key, so its buffer starts empty once and refills on the next add(). Stored memories are unaffected. Reported by @OfficialAbhinavSingh (#6892)
  • Vector Stores: Raise ValueError when a PGVector in/nin filter value is not a list. A string value was previously iterated character by character into the generated = ANY(...) array (so {"user_id": {"in": "alice"}} matched a, l, i, c, e), and a non-iterable value raised a bare TypeError from deep inside filter building (#6879)
  • Vector Stores: Reject index_accuracy=0 in the Oracle AI Vector Search config. The range check sat behind a truthiness test, so 0 skipped validation entirely and was passed through to WITH TARGET ACCURACY 0 instead of raising (#6848)
  • Vector Stores: Close the Oracle connection or pool that Mem0 opened when initialization fails. A client version check, a database version check, or a create_col() error previously propagated with the connection still open, leaking it for the life of the process. A caller-supplied client is left untouched (#6839)
View original

Upgraded? How did it go?

Discussion