v2.0.3
mem0ai/mem0v2.0.3May 26, 2026by whysosaket
AI Summary
A bug fix release for the Mem0 Python SDK improving vector store filtering and server endpoint handling.
Key Highlights
- PGVector adapter now supports rich filter operators
- Fixed /search endpoint returning 502 for top-level ID fields
Breaking Changes
- Top-level user_id, agent_id, and run_id fields are deprecated in the OpenAPI schema
Full Release Notes
## Mem0 Python SDK (v2.0.3)
**Bug Fixes:**
- **Vector Stores:** PGVector adapter now supports rich filter operators (`eq`, `ne`, `gt`, `gte`, `lt`, `lte`, `in`, `nin`, `contains`, `icontains`, wildcard `*`, `$or`, `$not`) in `search()`, `keyword_search()`, and `list()`. Previously only exact-equality filters worked — operator dicts were silently stringified and returned zero results ([#5263](https://github.com/mem0ai/mem0/pull/5263))
- **Server:** Fixed `/search` endpoint returning 502 when `user_id`, `agent_id`, or `run_id` are sent as top-level request fields. The server now maps these into the `filters` dict before calling `Memory.search()`, matching the v3 API contract. Top-level entity ID fields are marked as deprecated in the OpenAPI schema and emit a warning log — clients should migrate to `filters={"user_id": "..."}` ([#5263](https://github.com/mem0ai/mem0/pull/5263))