Overview
User preferences, interests, and behaviors often evolve over time. Theupdate
operation lets you revise a stored memory, whether it’s updating facts and memories, rephrasing a message, or enriching metadata.
Mem0 supports both:
- Single Memory Update for one specific memory using its ID
- Batch Update for updating many memories at once (up to 1000)
Use Cases
- Refine a vague or incorrect memory after a correction
- Add or edit memory with new metadata (e.g., categories, tags)
- Evolve factual knowledge as the user’s profile changes
- A user profile evolves: “I love spicy food” → later says “Actually, I can’t handle spicy food.”
Update Memory
Batch Update
Update up to 1000 memories in one call.Tips
- You can update both
text
andmetadata
in the same call. - Use
batchUpdate
when you’re applying similar corrections at scale. - If memory is marked
immutable
, it must first be deleted and re-added. - Combine this with feedback mechanisms (e.g., user thumbs-up/down) to self-improve memory.