v2.0.10
tremorlabs/tremorv2.0.10Jun 27, 2026by whysosaket
AI Summary
Mem0 Python SDK v2.0.10 exposes expiration date management for memory updates and fixes numerous bugs related to LangChain integration, reranking logic, and vector store error handling.
Key Highlights
- Exposed expiration_date on MemoryClient.update()
- Fixed LangChain procedural memory code fence stripping
- Fixed HuggingFace reranker scoring using sigmoid
- Fixed Redis KeyError handling for missing fields
New Features
- expiration_date exposure on update methods
- Batch embedding support for LM Studio, Together, HuggingFace, Vertex AI, and Google GenAI
Full Release Notes
## Mem0 Python SDK (v2.0.10) **New Features:** - **Client:** Expose `expiration_date` on `MemoryClient.update()` and `AsyncMemoryClient.update()` — callers can now set or clear a memory's expiration date; `None` is preserved and forwarded to the API ([#5874](https://github.com/mem0ai/mem0/pull/5874)) **Bug Fixes:** - **Memory (OSS):** Apply `remove_code_blocks()` to the LangChain path in async `_create_procedural_memory` so code fences are stripped consistently ([#5711](https://github.com/mem0ai/mem0/pull/5711)) - **Rerankers:** Score HuggingFace cross-encoder results with per-document sigmoid instead of set-relative min-max, preventing a single low-score document from collapsing all relevance scores to zero ([#5715](https://github.com/mem0ai/mem0/pull/5715)) - **Core:** Validate and trim entity IDs (`user_id`, `agent_id`, `run_id`) in `delete_all()` for both sync and async `Memory` ([#5735](https://github.com/mem0ai/mem0/pull/5735)) - **Vector Stores:** Use `.get()` for `hash` and `created_at` in the Redis `insert()` and `update()` paths so entity payloads that omit those fields no longer raise `KeyError` ([#5709](https://github.com/mem0ai/mem0/pull/5709)) - **Memory:** Fix scale-threshold notices not firing for Redis and search-engine backends by resolving `col_info()` signature differences and adding `num_docs` to the count-extraction lookup ([#5687](https://github.com/mem0ai/mem0/pull/5687)) - **Vector Stores:** Escape special characters in Valkey FT.SEARCH tag filter values to prevent wildcard and operator injection through tenant-isolation filters ([#5750](https://github.com/mem0ai/mem0/pull/5750))