From 3ca939e2108986f6dcf680137857327dab20e8fe Mon Sep 17 00:00:00 2001
From: Parth Sharma <109902593+parthshr370@users.noreply.github.com>
Date: Fri, 31 Oct 2025 16:45:15 +0530
Subject: [PATCH] [docs] redirect with fixed ci fails - langchain (#3699)
---
.../essentials/building-ai-with-personality.mdx | 2 +-
docs/docs.json | 4 ++++
docs/introduction.mdx | 12 ++++++------
docs/platform/features/graph-threshold.mdx | 2 +-
docs/v0x/faqs.mdx | 2 +-
mem0/vector_stores/vertex_ai_vector_search.py | 10 ++++++----
6 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/docs/cookbooks/essentials/building-ai-with-personality.mdx b/docs/cookbooks/essentials/building-ai-with-personality.mdx
index dc34d6493..0c740d871 100644
--- a/docs/cookbooks/essentials/building-ai-with-personality.mdx
+++ b/docs/cookbooks/essentials/building-ai-with-personality.mdx
@@ -399,7 +399,7 @@ The response combines:
---
-
+
**Three memory layers:**
diff --git a/docs/docs.json b/docs/docs.json
index 3bd867657..a9897c39e 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -786,6 +786,10 @@
{
"source": "/api-reference/memory/v2-get-memories",
"destination": "/api-reference/memory/get-memories"
+ },
+ {
+ "source": "/quickstart",
+ "destination": "/platform/quickstart"
}
]
}
diff --git a/docs/introduction.mdx b/docs/introduction.mdx
index 54115d939..85227ee2b 100644
--- a/docs/introduction.mdx
+++ b/docs/introduction.mdx
@@ -37,7 +37,7 @@ mode: "custom"
className="group flex h-full flex-col overflow-hidden rounded-2xl border border-zinc-800/40 bg-zinc-900/40 transition hover:border-primary/60 hover:bg-zinc-900"
>
-**This is legacy documentation for Mem0 v0.x.** For the latest FAQs, please refer to [v1.0.0 FAQs](/faqs).
+**This is legacy documentation for Mem0 v0.x.** For the latest FAQs, please refer to [v1.0.0 FAQs](/platform/faqs).
## General Questions
diff --git a/mem0/vector_stores/vertex_ai_vector_search.py b/mem0/vector_stores/vertex_ai_vector_search.py
index f8dc7296c..9e2a9a5c4 100644
--- a/mem0/vector_stores/vertex_ai_vector_search.py
+++ b/mem0/vector_stores/vertex_ai_vector_search.py
@@ -5,13 +5,15 @@ from typing import Any, Dict, List, Optional, Tuple
import google.api_core.exceptions
from google.cloud import aiplatform, aiplatform_v1
-from google.cloud.aiplatform.matching_engine.matching_engine_index_endpoint import (
- Namespace,
-)
+from google.cloud.aiplatform.matching_engine.matching_engine_index_endpoint import Namespace
from google.oauth2 import service_account
-from langchain.schema import Document
from pydantic import BaseModel
+try:
+ from langchain_core.documents import Document
+except ImportError: # pragma: no cover - fallback for older LangChain versions
+ from langchain.schema import Document # type: ignore[no-redef]
+
from mem0.configs.vector_stores.vertex_ai_vector_search import (
GoogleMatchingEngineConfig,
)