Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

[docs] redirect with fixed ci fails - langchain (#3699)

Parth Sharma3ca939e21089
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:
---
-![image.png](building_ai_with_personality%20295f22c70c908182affdfc87ec79f2db/image.png)
+![image.png](building_ai_with_personality 295f22c70c908182affdfc87ec79f2db/image.png)
**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"
>
<img
- src="/images/docs%20thumbnails/Mem0%20Platform.png"
+ src="/images/docs thumbnails/Mem0 Platform.png"
alt="Mem0 Platform thumbnail"
className="aspect-[4/3] w-full object-cover"
style={{pointerEvents: "none"}}
@@ -57,7 +57,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"
>
<img
- src="/images/docs%20thumbnails/Mem0%20Open%20Source.png"
+ src="/images/docs thumbnails/Mem0 Open Source.png"
alt="Mem0 Open Source thumbnail"
className="aspect-[4/3] w-full object-cover"
style={{pointerEvents: "none"}}
@@ -77,7 +77,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"
>
<img
- src="/images/docs%20thumbnails/Mem0%20OpenMemory.png"
+ src="/images/docs thumbnails/Mem0 OpenMemory.png"
alt="OpenMemory thumbnail"
className="aspect-[4/3] w-full object-cover"
style={{pointerEvents: "none"}}
@@ -107,7 +107,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"
>
<img
- src="/images/docs%20thumbnails/Cookbooks.png"
+ src="/images/docs thumbnails/Cookbooks.png"
alt="Cookbooks thumbnail"
className="aspect-[4/3] w-full object-cover"
style={{pointerEvents: "none"}}
@@ -127,7 +127,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"
>
<img
- src="/images/docs%20thumbnails/Integrations.png"
+ src="/images/docs thumbnails/Integrations.png"
alt="Integrations thumbnail"
className="aspect-[4/3] w-full object-cover"
style={{pointerEvents: "none"}}
@@ -147,7 +147,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"
>
<img
- src="/images/docs%20thumbnails/API.png"
+ src="/images/docs thumbnails/API.png"
alt="API reference thumbnail"
className="aspect-[4/3] w-full object-cover"
style={{pointerEvents: "none"}}
diff --git a/docs/platform/features/graph-threshold.mdx b/docs/platform/features/graph-threshold.mdx
index 085592d21..8aa1edbce 100644
--- a/docs/platform/features/graph-threshold.mdx
+++ b/docs/platform/features/graph-threshold.mdx
@@ -205,5 +205,5 @@ config = {"graph_store": {"threshold": 0.7}} # Valid: 0.0 ≤ x ≤ 1.0
## Related
-- [Graph Store Configuration](/features/custom-categories)
+- [Graph Memory](/platform/features/graph-memory)
- [Issue #3590](https://github.com/mem0ai/mem0/issues/3590)
diff --git a/docs/v0x/faqs.mdx b/docs/v0x/faqs.mdx
index 22d8e2d7a..ed9149440 100644
--- a/docs/v0x/faqs.mdx
+++ b/docs/v0x/faqs.mdx
@@ -6,7 +6,7 @@ iconType: "solid"
---
<Warning>
-**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).
</Warning>
## 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,
)