gabrielstein-mem0
789122bbea
fix(telemetry): stitch PostHog identities on MemoryClient init
...
The Python sync/async MemoryClient and the TS MemoryClient were silently
switching their PostHog distinct_id from an anonymous on-disk UUID to the
user's email post-ping, without sending the merge instruction. PostHog
ended up tracking each user as 2-3 disconnected personas (OSS UUID, CLI
anon UUID, email), and only ~4 $create_alias events fired across ~300K
users. The Python CLI does this correctly today; this change ports the
same pattern to MemoryClient.
- mem0/memory/setup.py: make setup_config() idempotent so it backfills a
top-level user_id for CLI-first users (the CLI writes
telemetry.anonymous_id, not user_id, which left OSS telemetry silently
dropped). Add read_anon_ids() and mark_aliased() helpers.
- mem0/memory/telemetry.py: add AnonymousTelemetry.capture_identify() that
posts a PostHog $identify event with $anon_distinct_id. Add "$identify"
to _LIFECYCLE_EVENTS so it bypasses the 90% sampling drop.
- mem0/client/main.py: at the end of __init__ for both MemoryClient and
AsyncMemoryClient, fire $identify for each unaliased anon ID and
persist telemetry.aliased_to so the alias only happens once per
(anon_id, email) pair, ever. All telemetry calls swallow exceptions.
- mem0-ts/src/client/telemetry.ts: mirror with captureIdentify().
- mem0-ts/src/client/config.ts (new): node-only readMem0AnonIds() and
markMem0Aliased() using async dynamic imports of fs/path/os, gated on
process.versions.node so browsers no-op cleanly.
- mem0-ts/src/client/mem0.ts: call _maybeAliasAnonToEmail() inside
_initializeClient after ping resolves the email.
Tests cover the matrix (OSS-only, CLI-only, both, already-aliased) plus
failure modes (malformed JSON, read-only fs, posthog errors, browser
env). Telemetry never raises.
2026-04-30 16:47:52 -07:00
1b95c99db4
fix: sql injection, prompt injection ( #4997 )
...
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-04-29 00:51:16 +05:30
Pratik Rai and GitHub
693e709389
fix(api): map entity params to filters in GET /memories ( #4955 ) ( #4960 )
2026-04-24 23:52:14 +05:30
Andrew Halpern and GitHub
cca7551192
fix(memory): honor prompt param in vector store extraction ( #4914 )
2026-04-23 22:36:54 +05:30
cid and GitHub
5be2630f5b
fix: add missing text_lemmatized in AsyncMemory._create_memory ( #4886 )
2026-04-23 20:04:43 +05:30
15feaa8ac4
fix(llms): narrow _is_reasoning_model to not match gpt-5.x variants ( #4746 )
...
Co-authored-by: Claude <noreply@anthropic.com >
2026-04-23 18:58:12 +05:30
573e5212a4
fix(vector-stores): add agent_id and run_id to Elasticsearch/OpenSearch default mappings ( #4906 )
...
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com >
2026-04-20 23:10:59 +05:30
Yarizakura and GitHub
8ba225cec8
fix: merge same-key operator dicts in AND metadata filters ( #4853 )
2026-04-20 21:54:02 +05:30
Kartik and GitHub
e6d6276bb9
refactor: add entity ID and search param validation, rename textLemmatized field, update tests ( #4843 )
2026-04-15 20:57:09 +05:30
9692726db4
fix(ts-oss): isolate entity store from memory store by default ( #4829 )
...
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-04-15 14:47:43 +05:30
d8d776636f
fix(v3): migration crashes + entity linking on OSS ( #4836 )
...
Co-authored-by: Soumil Rathi <soumilrathi@gmail.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-04-15 14:46:28 +05:30
Kartik and GitHub
a5a688295e
fix: prevent arbitrary code execution via pickle in FAISS vector store ( #4833 )
2026-04-15 00:02:07 +05:30
a488e19044
feat(oss): port v3 pipeline with hybrid search, entity extraction, and additive scoring ( #4805 )
...
Co-authored-by: Soumil Rathi <soumilrathi@gmail.com >
Co-authored-by: Saket Aryan <saketaryan2002@gmail.com >
Co-authored-by: chaithanyak42 <chaithanya.kumar42a@gmail.com >
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-04-14 18:00:58 +05:30
shafdev and GitHub
4a7e166f9a
fix(tests): use top_k instead of limit in test_server_params ( #4820 )
2026-04-14 01:11:31 +05:30
Yunsu and GitHub
7b395f3bf7
fix(openai): make store opt-in so it stops leaking to non-OpenAI backends ( #4757 )
2026-04-13 21:53:22 +05:30
Kartik and GitHub
1a53852d93
test: update valkey cluster search test to use top_k parameter ( #4815 )
2026-04-13 20:44:18 +05:30
Swarnaprakash Udayakumar and GitHub
cf530c4bec
feat(valkey): add cluster mode enabled (CME) support ( #4759 )
2026-04-13 20:07:11 +05:30
Asish Kumar and GitHub
c239d8a483
fix(client): prevent feedback telemetry TypeError ( #4795 )
2026-04-12 03:06:05 +05:30
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
Gabriel Stein and GitHub
9d82e2329d
refactor(telemetry): sample OSS hot-path events at 10% to reduce PostHog volume ( #4771 )
2026-04-11 16:25:38 +05:30
081eca6d8f
fix: guard temp_uuid_mapping lookups against LLM-hallucinated IDs ( fixes #3931 ) ( #4674 )
...
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-04-08 21:55:52 +05:30
Rakhee Singh and GitHub
3ffea554bc
fix(azure_openai): forward response_format to Azure OpenAI API ( #4689 )
2026-04-08 19:22:02 +05:30
fcbb70ab3b
fix: prevent thread and memory leaks from PostHog telemetry ( #4535 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-04-03 20:01:04 +05:30
Shaik Faizan Roshan Ali and GitHub
66d34fab3c
fix: update_memory endpoint passing dict instead of str ( #3933 ) ( #4595 )
2026-04-02 19:35:09 +05:30
868b63af63
fix: use DatetimeRange for datetime string values in Qdrant range filters ( #4659 )
...
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-04-02 18:43:58 +05:30
Rakhee Singh and GitHub
93bd4e248c
fix(deepseek): forward response_format to OpenAI-compatible API ( #4635 )
2026-03-31 18:06:53 +05:30
dbac83218f
fix(vllm): forward response_format to OpenAI-compatible API ( #4608 )
...
Co-authored-by: rasingh5 <rasingh@demandbase.com >
2026-03-31 13:25:45 +05:30
HUANG XIAO and GitHub
5d30af9560
feat(bedrock): add MiniMax provider support for AWS Bedrock ( #4609 )
2026-03-30 20:40:24 +05:30
7213e1b1a6
fix: reset graph database in Memory.reset() ( #4185 )
...
Co-authored-by: kartik-mem0 <kartik.labhshetwar@mem0.ai >
2026-03-30 18:45:38 +05:30
Himanshu and GitHub
ae49edec44
fix(memory): centralize entity cleanup and skip malformed LLM relation dicts ( #4515 )
2026-03-28 21:23:05 +05:30
Br1an and GitHub
27a6e7863e
fix: rebuild FAISS index on vector deletion ( #4178 )
2026-03-28 20:56:39 +05:30
Kartik and GitHub
cd2dd7cc54
refactor: update default Gemini and Vertex AI embedder model to gemini-embedding-001 ( #4571 )
2026-03-28 20:39:27 +05:30
Kartik and GitHub
c2698f2b71
fix: preserve original actor_id during memory update ( #4570 )
2026-03-28 00:02:58 +05:30
e87240d4d9
fix(vector_stores): handle vector=None in Milvus and Qdrant update methods ( #4568 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-27 21:50:54 +05:30
Gopal Bagaswar and GitHub
68cf4e118d
feat: add reasoning_effort parameter support for reasoning models ( #4461 )
2026-03-27 17:54:44 +05:30
12624555b4
fix(memory): set updated_at on creation and preserve pre-existing created_at ( #4499 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-27 16:59:44 +05:30
3ac4e047de
fix: merge multiple filter operators for same key ( #4559 )
...
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:28:37 +05:30
a2ffca3266
fix: prevent SQL injection in Databricks vector store ( #4558 )
...
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:22:34 +05:30
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
VictorECDSA and GitHub
1aecfadf45
fix: add timestamps for DELETE operations in history ( #4492 )
2026-03-26 18:52:10 +05:30
2a59c9fd99
fix: handle chatty LLM responses in JSON parsing ( #4525 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-26 16:39:17 +05:30
Himanshu and GitHub
f06e2d744d
Fix/OpenAI embedding dimensions 4153 ( #4481 )
2026-03-25 19:59:28 +05:30
lamost423 and GitHub
f9e30304d7
fix: sanitize hyphens in Neo4j Cypher relationship names ( #4154 )
2026-03-25 19:58:27 +05:30
7e3b727528
Fix: prevent double embedding in mem0.add ( fixes #3723 ) ( #3996 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-25 18:14:48 +05:30
2a36960f4c
fix: prevent in-place mutation of metadata in _create_memory ( #4529 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-25 13:56:30 +05:30
Himanshu and GitHub
2e0f91e70d
fix(bedrock): omit topP for Anthropic Converse; use AWSBedrockConfig in LlmFactory ( #4469 )
2026-03-25 11:22:52 +05:30
Kartik and GitHub
5431badfd4
fix: preserve custom metadata when updating memory ( #4495 )
2026-03-24 10:58:21 +05:30
bda5b726bd
fix: avoid sending both temperature and top_p to Anthropic API ( #4471 )
...
Co-authored-by: utkarsh240799 <utkarsh240799@users.noreply.github.com >
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-23 21:00:41 +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