Mem0 Python SDK v2.2.1 修复核心与向量存储缺陷
原标题:Mem0 Python SDK (v2.2.1)
AI 摘要
Mem0 发布 Python SDK v2.2.1,集中修复核心、LLM 与向量存储三方面的缺陷。核心层面,add() 不再把向量库拒绝的记录当作成功写入,全部失败时抛出 VectorStoreError,并恢复 Memory/AsyncMemory 的上下文管理器协议。LLM 层面修复 AWS Bedrock Anthropic 路径读取 Claude 推理模型内容块时的 KeyError;向量存储层面修复 Turbopuffer 过滤操作符被静默丢弃、Turbopuffer 与 S3 Vectors 搜索评分未按距离度量换算导致排序错误的问题。
正文节选
**Bug Fixes:** - **Core:** `add()` (`Memory` and `AsyncMemory`) no longer reports records the vector store rejected as successful `ADD` events. Only records that were actually inserted are written to history, entity-linked, and returned. If none of the extracted memories could be inserted, `add()` now raises `VectorStoreError` instead of returning memories that were never stored ([#7066](https://github.com/mem0ai/mem0/pull/7066)) - **Core:** Restore the context-manager protocol on `Memory` (`w