|
|
|
@@ -4,10 +4,14 @@ description: "Retrieve, review, and migrate user memories with structured export
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mem0 is a dynamic memory store that gives you full control over your data. Along with storing memories, it gives you the ability to retrieve, export, and migrate your data whenever you need.
|
|
|
|
|
Mem0 is a dynamic memory store that lets you retrieve memories as raw records or transform them into a structured export for downstream use.
|
|
|
|
|
|
|
|
|
|
This cookbook shows you how to retrieve and export your data for inspection, migration, or compliance.
|
|
|
|
|
|
|
|
|
|
<Warning>
|
|
|
|
|
The structured export job is not a raw backup. It uses the schema and instructions you provide to transform matching memories. Use paginated `get_all()` calls when you need the original memory records. For an account-level data access or compliance request that the API cannot complete, contact support.
|
|
|
|
|
</Warning>
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
@@ -254,7 +258,7 @@ You can also export memories directly from the Mem0 platform UI:
|
|
|
|
|
3. Select your filters and schema
|
|
|
|
|
4. Download the completed export as JSON
|
|
|
|
|
|
|
|
|
|
This is useful for one-off exports or manual data reviews.
|
|
|
|
|
This is useful for one-off structured exports or manual data reviews. It does not create a raw backup of every memory record; use paginated `get_all()` calls for raw retrieval.
|
|
|
|
|
|
|
|
|
|
<Warning>
|
|
|
|
|
Exported data expires after 7 days. Download and store exports locally if you need long-term archives. After expiration, you'll need to recreate the export job.
|
|
|
|
@@ -272,13 +276,13 @@ A complete memory export system with multiple retrieval methods:
|
|
|
|
|
- **Export instructions** - Guide conflict resolution and data formatting
|
|
|
|
|
- **Platform UI exports** - One-off manual downloads via dashboard
|
|
|
|
|
|
|
|
|
|
This covers data portability, GDPR compliance, system migrations, and manual reviews.
|
|
|
|
|
These approaches support data inspection, portability workflows, system migrations, and manual reviews. Use raw retrieval or contact support when a compliance request requires the original records rather than a schema-transformed export.
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
## Summary
|
|
|
|
|
|
|
|
|
|
Use **`get_all()`** for bulk retrieval, **`search()`** for specific questions, and **`create_memory_export()`** for structured data exports with custom schemas. Remember exports expire after 7 days: download them locally for long-term archives.
|
|
|
|
|
Use **`get_all()`** for paginated raw retrieval, **`search()`** for specific questions, and **`create_memory_export()`** for schema-transformed data. Structured exports expire after 7 days, so download completed results promptly. Do not treat them as raw backups.
|
|
|
|
|
|
|
|
|
|
<CardGroup cols={2}>
|
|
|
|
|
<Card title="Build a Mem0 Companion" icon="users" href="/cookbooks/essentials/building-ai-companion">
|
|
|
|
|