The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
Fix docs and config for vector store
Dev-Khantb10ec8c34a06
diff --git a/docs/components/vectordb.mdx b/docs/components/vectordb.mdxindex 051177b2b..dd17e1f8b 100644--- a/docs/components/vectordb.mdx+++ b/docs/components/vectordb.mdx@@ -24,7 +24,7 @@ from mem0 import Memoryconfig = {- "vectordb": {+ "vector_store": {"provider": "qdrant","config": {"collection_name": "test",@@ -50,7 +50,7 @@ from mem0 import Memoryconfig = {- "vectordb": {+ "vector_store": {"provider": "chroma","config": {"collection_name": "test",diff --git a/mem0/configs/vector_stores/chroma.py b/mem0/configs/vector_stores/chroma.pyindex ad4d7a292..625d0fbff 100644--- a/mem0/configs/vector_stores/chroma.py+++ b/mem0/configs/vector_stores/chroma.py@@ -13,7 +13,7 @@ class ChromaDbConfig(BaseModel):client: Optional[Client] = Field(None, description="Existing ChromaDB client instance")path: Optional[str] = Field(None, description="Path to the database directory")host: Optional[str] = Field(None, description="Database connection remote host")- port: Optional[str] = Field(None, description="Database connection remote port")+ port: Optional[int] = Field(None, description="Database connection remote port")@model_validator(mode="before")def check_host_port_or_path(cls, values):diff --git a/mem0/vector_stores/qdrant.py b/mem0/vector_stores/qdrant.pyindex fff492527..d4a32adff 100644--- a/mem0/vector_stores/qdrant.py+++ b/mem0/vector_stores/qdrant.py@@ -44,10 +44,6 @@ class Qdrant(VectorStoreBase):self.client = clientelse:params = {}- if path:- params["path"] = path- if os.path.exists(path) and os.path.isdir(path):- shutil.rmtree(path)if api_key:params["api_key"] = api_keyif url:@@ -55,6 +51,12 @@ class Qdrant(VectorStoreBase):if host and port:params["host"] = hostparams["port"] = port++ if not params:+ params["path"] = path+ if os.path.exists(path) and os.path.isdir(path):+ shutil.rmtree(path)+self.client = QdrantClient(**params)self.create_col(collection_name, embedding_model_dims)