Breaking Changes Ahead! Mem0 1.0.0 Beta introduces several breaking changes. Please read this guide carefully before upgrading.
Overview
Mem0 1.0.0 Beta is a major release that modernizes the API, improves performance, and adds powerful new features. This guide will help you migrate your existing v0.x implementation to the new version.Key Changes Summary
Feature | v0.x | v1.0.0 Beta | Migration Required |
---|---|---|---|
API Version | v1.0 supported | v1.0 removed, v1.1+ only | ✅ Yes |
Async Mode | Optional | Default and required | ✅ Yes |
Output Format Parameter | Supported | Removed | ✅ Yes |
Response Format | Mixed | Standardized {"results": [...]} | ✅ Yes |
Metadata Filtering | Basic | Enhanced with operators | ⚠️ Optional |
Reranking | Not available | Full support | ⚠️ Optional |
Step-by-Step Migration
1. Update Installation
2. Remove Deprecated Parameters
Before (v0.x)
After (v1.0.0 Beta)
3. Update Configuration
Before (v0.x)
After (v1.0.0 Beta)
4. Handle Response Format Changes
Before (v0.x)
After (v1.0.0 Beta)
5. Update Search Operations
Before (v0.x)
After (v1.0.0 Beta)
6. Migrate Async Operations
Before (v0.x)
After (v1.0.0 Beta)
Configuration Migration
Basic Configuration
Before (v0.x)
After (v1.0.0 Beta)
Enhanced Features (Optional)
Error Handling Migration
Before (v0.x)
After (v1.0.0 Beta)
Testing Your Migration
1. Basic Functionality Test
2. Enhanced Features Test
Common Migration Issues
Issue 1: Version Error
Error:Issue 2: Response Format Error
Error:Issue 3: Parameter Error
Error:Rollback Plan
If you encounter issues during migration:1. Immediate Rollback
2. Gradual Migration
Performance Improvements
Before (v0.x)
After (v1.0.0 Beta)
Next Steps
- Complete the migration using this guide
- Test thoroughly with your existing data
- Explore new features like enhanced filtering and reranking
- Update your documentation to reflect the new API
- Monitor performance and optimize as needed
Need help with migration? Check our GitHub Discussions or reach out to our community for support.