---
source: https://iinventedlight.com/library/notes/ao-memory-mem0-and-graphiti.md
title: "Mem0 memories and Graphiti temporal context graphs"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "Apache-2.0 (mem0ai/mem0 (GitHub)); Apache-2.0 (getzep/graphiti (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: mem0ai/mem0 (GitHub), Mem0 README, Apache-2.0 (https://raw.githubusercontent.com/mem0ai/mem0/main/LICENSE); getzep/graphiti (GitHub), Graphiti README, Apache-2.0 (https://raw.githubusercontent.com/getzep/graphiti/main/LICENSE)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-16
as_of: 2026-11-16
confidence: medium
untested: "Not reproduced (2026-11-16). Repository READMEs read; SDKs, retrieval and isolation were not tested."
category: agent-operations
topic_area: "agent operations: memory representations"
tags: [mem0, graphiti, memory, temporal-knowledge-graph]
client: Librarian
sources:
  - id: S1
    title: "Mem0 README"
    publisher: mem0ai/mem0 (GitHub)
    url: https://github.com/mem0ai/mem0/blob/main/README.md
    accessed: 2026-11-16
    license: "Apache-2.0"
  - id: S2
    title: "Graphiti README"
    publisher: getzep/graphiti (GitHub)
    url: https://github.com/getzep/graphiti/blob/main/README.md
    accessed: 2026-11-16
    license: "Apache-2.0"
---
# Mem0 memories and Graphiti temporal context graphs
**Answer:** Mem0 exposes a memory layer with user, session and agent state. Graphiti builds temporal context graphs that preserve changing facts and their provenance.

## Mem0

The library example searches memories with a `user_id` filter and a `top_k` limit. It calls `memory.add(messages, user_id=user_id)` to add memories.

## Graphiti

Graphiti represents entities, relationships and facts with temporal validity windows. Episodes retain the raw data from which facts were derived. Retrieval combines semantic search, keyword search and graph traversal. Users supply the graph database, LLM and embedder.

## Limits

Mem0's README benchmark scores refer to its managed platform, including proprietary optimizations absent from the open-source SDK.

## See also

- [ao-memory-short-vs-long-term](https://iinventedlight.com/library/notes/ao-memory-short-vs-long-term/)
- [ao-memory-letta-context](https://iinventedlight.com/library/notes/ao-memory-letta-context/)
- [ao-memory-long-term-benchmarks](https://iinventedlight.com/library/notes/ao-memory-long-term-benchmarks/)
- [ao-memory-mechanisms-survey](https://iinventedlight.com/library/notes/ao-memory-mechanisms-survey/)

## Claims

- id: C1
  claim: Mem0 retains user, session and agent state.
  source: S1
  evidence: "User, Session, and Agent state"

- id: C2
  claim: Mem0 searches can filter by user identifier.
  source: S1
  evidence: "filters={\"user_id\": user_id}"

- id: C3
  claim: Graphiti traces facts to episodes.
  source: S2
  evidence: "Everything traces back to"

- id: C4
  claim: Graphiti supports incremental updates.
  source: S2
  evidence: "supports incremental data updates, efficient retrieval, and precise historical queries"

## Sources

- [S1] Mem0 README. mem0ai/mem0 (GitHub). https://github.com/mem0ai/mem0/blob/main/README.md . License: Apache-2.0. Accessed 2026-11-16.

- [S2] Graphiti README. getzep/graphiti (GitHub). https://github.com/getzep/graphiti/blob/main/README.md . License: Apache-2.0. Accessed 2026-11-16.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: mem0ai/mem0 (GitHub), Mem0 README, Apache-2.0 (https://raw.githubusercontent.com/mem0ai/mem0/main/LICENSE); getzep/graphiti (GitHub), Graphiti README, Apache-2.0 (https://raw.githubusercontent.com/getzep/graphiti/main/LICENSE). Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
