diff --git a/lib/crewai/pyproject.toml b/lib/crewai/pyproject.toml index 0133eaffa2..a92a957c14 100644 --- a/lib/crewai/pyproject.toml +++ b/lib/crewai/pyproject.toml @@ -43,7 +43,8 @@ dependencies = [ "uv~=0.9.13", "aiosqlite~=0.21.0", "pyyaml~=6.0", - "lancedb>=0.29.2,<0.30.1", + "lancedb>=0.29.2,<0.30.1; sys_platform != 'win32'", + "qdrant-edge-py>=0.6.0; sys_platform == 'win32'", ] [project.urls] diff --git a/lib/crewai/src/crewai/memory/unified_memory.py b/lib/crewai/src/crewai/memory/unified_memory.py index d879bace0c..43b6edd246 100644 --- a/lib/crewai/src/crewai/memory/unified_memory.py +++ b/lib/crewai/src/crewai/memory/unified_memory.py @@ -2,6 +2,7 @@ from __future__ import annotations +import sys from concurrent.futures import Future, ThreadPoolExecutor import contextvars from datetime import datetime @@ -68,7 +69,7 @@ class Memory(BaseModel): description="LLM for analysis (model name or BaseLLM instance).", ) storage: Annotated[StorageBackend | str, PlainValidator(_passthrough)] = Field( - default="lancedb", + default="qdrant-edge" if sys.platform == "win32" else "lancedb", description="Storage backend instance or path string.", ) embedder: Any = Field(