From 57c8468ce6e49fab363d1682b240ac88fd86f380 Mon Sep 17 00:00:00 2001 From: youneshima Date: Fri, 15 May 2026 13:16:20 -0700 Subject: [PATCH] docs: add hosted Qdrant migration script (#5156) --- docs/migration/oss-to-platform.mdx | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/docs/migration/oss-to-platform.mdx b/docs/migration/oss-to-platform.mdx index 8ffc503ba..d409cf0af 100644 --- a/docs/migration/oss-to-platform.mdx +++ b/docs/migration/oss-to-platform.mdx @@ -14,6 +14,10 @@ Move your Mem0 implementation to managed infrastructure with enterprise features | --------------------- | -------------- | ---------------------------- | | Infrastructure & Code | Low (~30 mins) | None (Parallel run possible) | + + Using Mem0 Open Source with **hosted Qdrant**? You can migrate your existing memories to Mem0 Platform with a one-line script below. + + **Why migrate to Platform?** @@ -34,7 +38,21 @@ Move your Mem0 implementation to managed infrastructure with enterprise features ## Migrate -### 1. Install or Update SDK +### 1. Import Memories Into Platform + +If your Mem0 Open Source setup uses **hosted Qdrant** as the vector store, you can import your existing memories to Mem0 Platform with one command: + +```bash +curl -fsSL https://raw.githubusercontent.com/mem0ai/mem0/main/scripts/oss-to-platform-migrate.sh | bash +``` + + + This migration script currently supports **hosted Qdrant only**. Support for local Qdrant, pgvector, and other vector stores is coming soon. + + +If you are using a different vector store and want to migrate to Platform, please contact Mem0 support and we’ll send you a custom migration script for your setup. + +### 2. Install or Update SDK Ensure you have the latest version of the SDK, which supports both OSS and Platform clients. @@ -42,7 +60,7 @@ Ensure you have the latest version of the SDK, which supports both OSS and Platf pip install mem0ai --upgrade ``` -### 2. Update Initialization +### 3. Update Initialization Switch from the local `Memory` class to the managed `MemoryClient`. @@ -75,7 +93,7 @@ client = MemoryClient(api_key="m0-...") Run `client.get_all(filters={"user_id": "test_connection"})` to verify your API key works. It should return an empty list or valid results. -### 3. Update Retrieval Calls (Critical) +### 4. Update Retrieval Calls (Critical) **Critical Change**: Platform uses v2 endpoints that require filtering parameters to be nested inside a `filters` dictionary.