getzep/graphiti
Temporal graph framework for agent memory with traceable, evolving facts
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Graphiti is an Apache-2.0 Python framework for constructing and querying temporal graphs, not a standalone database engine. graphiti_core/ ingests text or structured JSON as episodes. Model-assisted extraction and deduplication turn these inputs into entities and relationship edges while retaining links to their sources. An edge records when a fact is valid; when a new fact supersedes it, the old one remains available for historical queries rather than being deleted.
The graphiti-core manifest targets Python 3.10+ and includes Pydantic 2.11.5+, the Neo4j driver 5.26.0+, and the OpenAI client 1.91.0+. Pydantic models extend the entity and relationship schema, while the graph_driver constructor argument selects the storage implementation. Inference and embeddings can be configured separately from storage. The tree separates the Python core, HTTP service (server/), and MCP service (mcp_server/), so an application can embed the library or call it across a service boundary.
Key Capabilities & Differentiators
Graphiti incrementally incorporates new episodes instead of rebuilding the entire graph. It can infer entity and relationship structure from inputs or use application-defined Pydantic types. For retrieval, it combines semantic embeddings, BM25 keyword matching, and graph traversal. The quickstart exercises relationship search, graph-distance reranking, and predefined node-search recipes. Validity windows and source links let applications ask not only what is relevant, but what was true at a given time and which evidence produced the fact.
Storage choices include Neo4j, FalkorDB, Amazon Neptune, and embedded Relate; Neptune uses an OpenSearch Serverless collection for full-text search. OpenAI is the default for inference and embeddings, with optional Anthropic, Gemini, and Groq integrations for inference. OpenAIGenericClient can target hosted or local OpenAI-compatible /v1 endpoints such as Ollama or vLLM. Compatibility with the API is not enough on its own: extraction and deduplication depend on reliable structured JSON output, especially when evaluating smaller models.
Trade-offs & Limitations
Graphiti earns its extra complexity when time and relationships change the answer. A vector index over document chunks is simpler when relevant passages are sufficient, and a batch-oriented GraphRAG pipeline is a better fit when the main output is a synthesis of a largely stable corpus. Graphiti takes on graph construction and temporal tracking, but compared with managed Zep it leaves ingestion integration, user and thread modeling, tenancy, authorization, and operations to the application team.
Ingestion speed and graph quality depend on provider quotas and the reliability of extraction and deduplication. SEMAPHORE_LIMIT defaults to 10 concurrent operations; tune it against observed throughput and HTTP 429 errors rather than assuming higher concurrency helps. Before committing, test whether representative episodes produce correct entity matches, fact supersession, and historical results. A local endpoint can reduce external data exposure, but only if the relevant model calls are routed locally, and serving those models adds operational work.
Hardware & Deployment Guide
Install graphiti-core on Python 3.10+, configure the graph and model clients, and initialize graph indexes and constraints before ingestion. Relate requires Python 3.11+ and runs in-process; its default :memory: storage is ephemeral, so pass a file path when persistence is required. The supplied Docker Compose setup builds the HTTP service from the repository root, runs Neo4j 5.26.2, and publishes the API at 127.0.0.1:8000. It waits for Neo4j health and probes the API at /healthcheck. Replace the development database password before exposing a deployment.
With hosted models, size the application and graph backend for workload rather than local inference; for a local deployment, configure the inference and embedding endpoints separately and benchmark their resource use. Pin core and MCP versions independently: core v0.32.1 replaces v0.32.0 without functional code changes, while mcp-v1.1.5 replaces an MCP release that failed to publish Docker images. The MCP update passes the selected group to the core and rejects UUIDs from other groups in affected operations, including delete_episode and get_episode_entities. That check does not replace application-level authorization.
OpenAIGenericClient supports compatible /v1 endpoints and defaults to json_schema mode.127.0.0.1:8000; MCP mcp-v1.1.5 delivers group-scoped checks for affected UUID-based operations.Teams building agent memory over changing customer histories, policies, or operational events, where answers need current and historical relationships with source evidence.
Passage retrieval already answers the questions, or you need managed ingestion, tenancy, and governance rather than a framework your team operates.
Quick Start & Installation
pip install graphiti-coreComparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| graphiti ★ | 33.3k | +143 | Python | Apache-2.0 | Temporal graph framework for agent memory with traceable, evolving facts |
| hindsight | 64.7k | +884 | Python | MIT | A bank-based memory service that turns agent interactions into durable knowledge |
| crawl4ai | 88.5k | +408 | Python | Apache-2.0 | Async browser crawler that turns web pages into Markdown and JSON for RAG |
| LightRAG | 41k | +110 | Python | MIT | Graph-backed RAG for cross-document retrieval and multimodal indexing |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/getzep/graphiti.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about graphiti
How do I integrate Graphiti into an existing agent application?
graphiti-core, configure a graph driver and model clients, and initialize the indexes and constraints. Ingest text or structured JSON as episodes, then search for nodes or relationship edges. Use the HTTP service or MCP server when callers should not import the Python library directly. Keep authorization in the surrounding service rather than treating a group identifier as a complete access-control policy.Do I need a GPU, and what determines runtime overhead?
Can I self-host Graphiti in a commercial product?
When should I choose Graphiti over vector RAG, batch GraphRAG, or Zep?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy