Migration Guide Template - Mem0

Migration Guide Template

Migrations lower blood pressure. They explain what’s changing, why it matters, and how to get through the upgrade with verifications and rollbacks close at hand.


❌ DO NOT COPY: Guidance & Constraints


✅ COPY THIS: Content Skeleton

Paste the block below, swap placeholders, and delete optional sections only after you’ve confirmed they aren’t needed.

---
title: [Migration title]
description: [Why this upgrade matters]
icon: "arrows-rotate"
versionFrom: "[current version]"
versionTo: "[target version]"
releaseDate: "[YYYY-MM-DD]" # Optional
---

# [Migration headline: state the move]

| Scope | Effort | Downtime |
| --- | --- | --- |
| [Platform/OSS/etc.] | [Low/Medium/High] ([~time]) | [Expected downtime impact] |

<Info>
  **Should you upgrade?**
  - [Criteria 1]
  - [Criteria 2]
  - [Criteria 3]
</Info>

<Warning>
  [Breaking deadline or critical change. Remove if not needed.]
</Warning>

## Timeline

- [Date]: [Milestone]
- [Date]: [Milestone]

{/* Optional: delete if not needed */}
```mermaid
graph LR
A[Plan] */} B[Migrate]
B */} C[Validate]
C */} D[Roll back if needed]

Plan

Migrate

1.

pip install mem0ai==[version]
npm install mem0ai@[version]

[Optional hint or staging strategy.]

Run [verification command] and confirm it reports [expected output].

2.

- memory_filters = true
+ filters = true

Breaking change:[Explain the new behavior and what to update].

Rollback:[Describe how to revert this specific step].

3.

[Code snippet showing new behavior]

[Describe logs, metrics, or sample response that proves success].

Validate

Breaking changes

Old behavior New behavior Action
[Explain] [Explain] [What to change]
[Explain] [Explain] [What to change]

Rollback plan

  1. [Step-by-step rollback instructions]
  2. [Restore backups or redeploy previous image]
  3. [Validation after rollback]

Known issues

After you migrate


---

## ✅ Publish Checklist
- [ ] Versions (`versionFrom`, `versionTo`) and timelines are accurate.
- [ ] Every breaking change is highlighted via table or `<Warning>`.
- [ ] Rollback instructions are present and placed immediately after risky steps.
- [ ] Verification steps use `<Info icon="check">` and are actionable.
- [ ] Optional sections (Mermaid, tips) removed if unused.
- [ ] Final `<CardGroup>` contains exactly two cards with valid links.