Graphiti

Builds real-time, temporally aware knowledge graphs that give AI agents queryable long-term memory.

Open SourceSelf HostedOffline Capable
0.0 (0)

About

Time is the organizing idea in Graphiti, which builds knowledge graphs for agent memory that record not just facts but when each fact became true and when it was superseded, using a bi-temporal model that tracks event time and ingestion time separately. Instead of batch recomputation, new episodes are integrated incrementally in real time: an LLM extracts entities and relationships, resolves them against the existing graph, and invalidates outdated edges rather than deleting history, so an agent can answer what was true at a given moment. Retrieval combines semantic embeddings, BM25 keyword search, and graph traversal without requiring an LLM call at query time, keeping lookups fast. The Python library is Apache-2.0 licensed, runs against Neo4j or FalkorDB among other backends, supports OpenAI, Anthropic, Gemini, and local models for extraction, and underpins Zep's commercial memory platform, with the architecture described in an arXiv paper. Roughly 29,000 GitHub stars reflect its position as the leading open temporal graph memory layer for agents.

Should you use Graphiti?

Pick it when

Choose Graphiti when your agent's facts change over time, such as customer status, preferences, or project state, and it must answer what was true at a given moment, with retrieval that needs no LLM call at query time.

Look elsewhere when

Skip it if you do not want to run a graph database like Neo4j or FalkorDB, or your data is a static corpus, where LightRAG or GraphRAG fit better. Plain preference recall is lighter with Mem0, and Zep sells the managed version.

Alternatives to Graphiti

  • Cognee

    Pluggable graph, vector, and relational backends and broader document pipelines, but no bi-temporal model for tracking when facts were superseded.

  • Mem0

    A simpler memory layer for user facts and preferences with SDKs and a hosted API, less to operate, but without bi-temporal edges for asking what was true at a given time.

  • Letta

    A full stateful agent platform with editable memory and its own server, rather than a memory library you embed in your own agent code.

  • GraphRAG

    Batch indexing with community summaries for corpus-wide questions, better for static documents, poorly suited to real-time incremental updates.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
Local/Desktop
Difficulty
Intermediate (3/5)
License
Apache-2.0
Added
Jul 29, 2026

Tags