merge: integrate main into feat/v3-pipeline + port AsyncMemory to v3
Merge 190 commits from main including: - limit→top_k rename across all vector store APIs - custom_fact_extraction_prompt→custom_instructions rename - enable_graph flag removal (use self.graph truthiness) - US/Pacific→timezone.utc normalization - 18 Category A bug fixes (partial updates, graph cleanup on delete, telemetry gating, metadata mutation prevention, filter operator merging, delete timestamps, actor_id preservation, etc.) Conflict resolutions: - openai.py: merged _pass_dimensions_to_api with embed_batch - milvus.py: merged partial-update logic with BM25 text field - qdrant.py: took main's enhanced _create_filter, merged BM25 sparse vectors with partial-update endpoints - test_main.py: adopted main's test structure, removed obsolete test_custom_prompts, kept hybrid search over-fetch assertion AsyncMemory v3 port (full parity): - Rewrote AsyncMemory._add_to_vector_store with the same 8-phase batch pipeline as sync Memory (single LLM call, batch embed, hash dedup, batch persist, batch entity linking, message saving) - All blocking calls wrapped in await asyncio.to_thread() - Moved _build_session_scope to module level for shared access Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+13
-8
@@ -4,10 +4,10 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "mem0ai"
|
||||
version = "1.0.5"
|
||||
version = "1.0.11"
|
||||
description = "Long-term memory for AI Agents"
|
||||
authors = [
|
||||
{ name = "Mem0", email = "founders@mem0.ai" }
|
||||
{ name = "Mem0", email = "support@mem0.ai" }
|
||||
]
|
||||
readme = "README.md"
|
||||
license = "Apache-2.0"
|
||||
@@ -17,10 +17,10 @@ dependencies = [
|
||||
"qdrant-client>=1.12.0",
|
||||
"pydantic>=2.7.3",
|
||||
"openai>=1.90.0",
|
||||
"posthog>=3.5.0",
|
||||
"posthog>=4.5.0",
|
||||
"pytz>=2024.1",
|
||||
"sqlalchemy>=2.0.31",
|
||||
"protobuf>=5.29.0,<6.0.0",
|
||||
"protobuf>=5.29.6,<7.0.0",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
@@ -34,6 +34,7 @@ graph = [
|
||||
"neo4j>=5.23.1",
|
||||
"rank-bm25>=0.2.2",
|
||||
"kuzu>=0.11.0",
|
||||
"apache-age-python>=0.0.6",
|
||||
]
|
||||
vector_stores = [
|
||||
"vecs>=0.4.0",
|
||||
@@ -65,7 +66,7 @@ llms = [
|
||||
"together>=0.2.10",
|
||||
"litellm>=1.74.0",
|
||||
"openai>=1.90.0",
|
||||
"ollama>=0.1.0",
|
||||
"ollama>=0.3.0",
|
||||
"vertexai>=0.1.0",
|
||||
"google-generativeai>=0.3.0",
|
||||
"google-genai>=1.0.0",
|
||||
@@ -105,9 +106,6 @@ exclude = [
|
||||
packages = ["mem0"]
|
||||
only-include = ["mem0"]
|
||||
|
||||
[tool.hatch.build.targets.wheel.shared-data]
|
||||
"README.md" = "README.md"
|
||||
|
||||
[tool.hatch.envs.dev_py_3_9]
|
||||
python = "3.9"
|
||||
features = [
|
||||
@@ -168,3 +166,10 @@ test = [
|
||||
[tool.ruff]
|
||||
line-length = 120
|
||||
exclude = ["embedchain/", "openmemory/"]
|
||||
|
||||
[tool.ruff.lint.isort]
|
||||
known-first-party = ["mem0", "mem0_cli"]
|
||||
|
||||
[tool.isort]
|
||||
profile = "black"
|
||||
known_first_party = ["mem0", "mem0_cli"]
|
||||
|
||||
Reference in New Issue
Block a user