Soumil Rathi and Claude Opus 4.6
3402c67805
fix: address PR review feedback
...
- Remove deprecated custom_update_memory_prompt from MemoryConfig entirely
- Add MAX_BATCH=100 chunking guard to embed_batch in openai.py and azure_openai.py
- Move all inline imports (mem0.utils.*) to top-level in main.py
- Remove custom_update_memory_prompt from test fixture
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-13 09:01:07 -07:00
Soumil Rathi and Claude Opus 4.6
b9e26acf4d
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 >
2026-04-12 16:26:10 -07:00
9d6b79a14e
fix(sdk): removing the enable graph flag and switching from snake case to camel case for client ts sdk ( #4776 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-12 02:40:54 +05:30
Kartik and GitHub
e44b46ef2e
fix(sdk): removing deprecating param from our sdk and docs changes with it ( #4740 )
2026-04-12 00:34:58 +05:30
Soumil Rathi and Claude Opus 4.6
a33c557a25
feat(oss): port v3 pipeline with hybrid search, entity extraction, and additive scoring
...
Replace the 2-LLM-call add pipeline with a single-pass additive extraction
using ADDITIVE_EXTRACTION_PROMPT. Memories now accumulate (ADD-only) instead
of being updated/deleted during extraction.
Search pipeline upgraded to hybrid scoring combining three signals:
- Semantic similarity (vector search)
- BM25 keyword matching (native per vector store, 15 stores supported)
- Entity boost (spaCy NER with entity collection linking)
Combined score = (semantic + bm25 + entity_boost) / max_possible, where
max_possible adapts based on which signals are active.
Key changes:
- Add spaCy-based lemmatization for BM25 keyword search
- Add spaCy-based entity extraction (PROPER, QUOTED, COMPOUND, NOUN types)
- Add entity store as second vector collection ({collection}_entities)
- Add native keyword_search() to 15 vector store adapters
- Add batch embedding support (embed_batch) for OpenAI and Azure OpenAI
- Add message persistence in SQLite (rolling window of 10 per scope)
- Add additive scoring with adaptive normalization
- Add observation_date parameter to add()
- Add custom_instructions config field
- Default search threshold changed to 0.1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-31 14:09:37 -07:00
5edc0cc99f
fix: update parameter added to the update function which is exposed t… ( #3799 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-26 20:02:33 +05:30
5332741961
fix: clean up graph store data on Memory.delete() ( #4505 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-23 19:27:38 +05:30
dhilip_binny and GitHub
35fe30aabd
fix: ensure JSON instruction in prompts for json_object response format ( #3559 ) ( #4271 )
2026-03-16 21:57:57 +05:30
Kartik and GitHub
82d67430dd
fix: remove destructive vector_store.reset() from delete_all() ( #4349 )
2026-03-16 20:55:29 +05:30
Kartik and GitHub
8fcf2b0b29
fix: skip telemetry vector store init when MEM0_TELEMETRY is disabled ( #4351 )
2026-03-16 20:55:04 +05:30
26732771eb
Fix Neo4j Cypher syntax error with agent_id filtering ( #3158 )
...
Co-authored-by: parshvadaftari <daftariparshva@gmail.com >
2025-08-08 09:08:13 -07:00
Deshraj Yadav and GitHub
7484eed4b2
Fix CI issues related to missing dependency ( #3096 )
2025-07-03 18:52:50 -07:00
John Lockwood and GitHub
7c0c4a03c4
Feat/add python version test envs ( #2774 )
2025-06-14 17:43:16 +05:30
Dev Khant and GitHub
d85fcda037
Formatting ( #2750 )
2025-05-22 01:17:29 +05:30
Prateek Chhikara and GitHub
12a268da30
Added docs for criteria based filtering ( #2726 )
2025-05-19 14:52:43 -07:00
Dev Khant and GitHub
ec1d7a45d3
Fix all lint errors ( #2627 )
2025-05-06 01:16:02 +05:30
Dev Khant and GitHub
b8e4d0980a
Memory Reset ( #2558 )
2025-04-16 16:36:45 +05:30
Dev Khant and GitHub
2004427acd
tools fix and formatting ( #2441 )
2025-03-26 11:25:03 +05:30
Wonbin Kim and GitHub
66d3f9b93c
Support Custom Prompt for Memory Action Decision ( #2371 )
2025-03-18 10:43:01 +05:30
d7a26bd0c3
Add infer param and version bump ( #2389 )
...
Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com >
2025-03-18 01:04:58 +05:30
4318663697
Make api_version=v1.1 default and version bump -> 0.1.59 ( #2278 )
...
Co-authored-by: Deshraj Yadav <deshrajdry@gmail.com >
2025-03-01 11:36:20 +05:30
Wonbin Kim and GitHub
6acb00731d
Add config option for vertex embedding tasks ( #2266 )
2025-02-28 15:20:05 +05:30
Dev Khant and GitHub
605558da9d
Code formatting ( #1986 )
2024-10-29 11:32:07 +05:30
Mayank and GitHub
3f2d5bee34
[bug]: Memory.reset() deletes collection and table without re-creating it ( #1952 )
2024-10-15 16:46:50 +05:30
Parshva Daftari and GitHub
c689f94c52
[Add] Error handling for update method in OSS & platform code. ( #1939 )
2024-10-08 15:04:59 +05:30
Dev Khant and GitHub
68c7355f47
Add limit in get_all and search for Graph ( #1920 )
2024-09-28 01:51:38 +05:30
Deshraj Yadav and GitHub
55c54beeab
[Misc] Lint code and fix code smells ( #1871 )
2024-09-16 17:39:54 -07:00
Prateek Chhikara and GitHub
b081e43b8d
Modified the return statement for ADD call | Added tests to main.py and graph_memory.py ( #1812 )
2024-09-09 10:04:11 -07:00