← Back to Leaderboard
Ggetzep

getzep/graphiti

Temporal graph framework for agent memory with traceable, evolving facts

Engineering Health (Methodology)
A+ · 98/100
Maintenance Activity
● Updated today
Latest Release
mcp-v1.1.5
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption23/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedMCPAPI
Total Stars
★ 33,288
24h Growth
+8
7d Growth
+143
Forks
3,438

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

getzep/graphiti Star History (2024-08-18 - 2026-12-04) ALL-TIME STAR HISTORY (2024-08 – 2026-12) +33.3k in 838d · avg +40/day 35.2k 17.6k 0 2024-08-18: ★ 12024-10-12: ★ 1,1872024-12-07: ★ 1,3902025-02-01: ★ 1,6822025-03-29: ★ 2,8822025-05-24: ★ 9,3182025-07-19: ★ 13,8202025-09-13: ★ 17,6002025-11-08: ★ 19,4982026-01-03: ★ 21,1772026-02-28: ★ 22,7772026-04-25: ★ 25,0672026-06-20: ★ 27,4012026-08-15: ★ 29,7722026-10-10: ★ 31,5402026-12-04: ★ 33,288 ★ 33.3k 2024-08 2025-10 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Temporal model: Relationship edges carry validity windows, so superseded facts remain available for historical queries.
Provenance and schema: Source episodes retain ingested text or structured JSON; Pydantic models define custom entity and edge types.
Retrieval: Semantic embeddings, BM25 keyword matching, and graph traversal support node and edge search, with graph-distance reranking.
Storage: Neo4j and FalkorDB are server backends; Neptune uses OpenSearch Serverless for full-text search, while Relate can run in-process.
Model integration: OpenAI is the default for inference and embeddings; OpenAIGenericClient supports compatible /v1 endpoints and defaults to json_schema mode.
API and MCP: The supplied Compose API binds to 127.0.0.1:8000; MCP mcp-v1.1.5 delivers group-scoped checks for affected UUID-based operations.
Best For

Teams building agent memory over changing customer histories, policies, or operational events, where answers need current and historical relationships with source evidence.

Skip If

Passage retrieval already answers the questions, or you need managed ingestion, tenancy, and governance rather than a framework your team operates.

Reviewed on 2026-12-03 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedMCPAPI
pip install graphiti-core

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
graphiti ★33.3k+143PythonApache-2.0Temporal graph framework for agent memory with traceable, evolving facts
hindsight64.7k+884PythonMITA bank-based memory service that turns agent interactions into durable knowledge
crawl4ai88.5k+408PythonApache-2.0Async browser crawler that turns web pages into Markdown and JSON for RAG
LightRAG41k+110PythonMITGraph-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.

Raw .md ↗
curl -sL https://repoforai.com/repo/getzep/graphiti.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

getzep/graphiti Star History on RepoForAI

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?

Install 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?

The default OpenAI configuration uses hosted inference and embeddings, so the Graphiti service does not need a local inference GPU. Size the service and graph backend around ingestion concurrency, graph growth, and query load. For local models, RAM and VRAM depend on the selected models, context lengths, and serving concurrency. No fixed hardware requirement is established; measure structured-output reliability and throughput on representative episodes before sizing production.

Can I self-host Graphiti in a commercial product?

Apache-2.0 permits commercial use and self-hosting, subject to its license and notice requirements when distributing the software. Check the terms of your graph backend and model providers separately. Self-hosting Graphiti does not by itself keep episode data on premises: review where inference, embedding, and any remote reranking calls send data.

When should I choose Graphiti over vector RAG, batch GraphRAG, or Zep?

Use Graphiti when retrieval must follow changing relationships, distinguish current from historical facts, and link results to source episodes. Use flat chunk retrieval when matching passages is enough, or a batch-oriented GraphRAG design when the main task is corpus-level synthesis. Consider managed Zep when enterprise ingestion and governance are requirements you do not want to build and operate.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining getzep/graphiti? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature getzep/graphiti on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare