Home/AI Agents/graphiti
graphiti logo

graphiti

getzep/graphiti

Build Real-Time Knowledge Graphs for AI Agents

GraphCanon updated 3d · GitHub synced 3d · 36 views this month

30k stars3.0k forksLast push 3d Python Apache-2.0

Decision brief

Graphiti is a Python-based toolkit for building real-time knowledge graphs utilized by AI agents, supporting Neo4j, FalkorDB, Amazon Neptune, and Kuzu as database options along with OpenAI, Anthropic, Groq, and Gemini LМ

Good fit when

  • If you require seamless integration with LLM services that support structured output like OpenAI, Anthropic, or Google Gemini.
  • When working on a project that necessitates real-time knowledge graphs for AI agents using Python-based frameworks.

Avoid when

  • Consider alternative tools if your project primarily uses non-compliant LLM providers without structured output support.
  • If you prefer not to use Python or do not need the capability to build real-time knowledge graphs for AI applications.

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Very active (0d since push)
As of 3d
Provenance
Not a fork · Organization account
As of 3d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install graphiti
PyPI

How it fits your stack(13)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Integrates

Related

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Graphiti is a Python-based toolkit designed for building real-time knowledge graphs utilized by AI agents.

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Aug 18, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Aug 18, 2026

Languages
python

Source: github.language+pyproject.toml · Aug 18, 2026

Categories

Graph entities

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

OpenAI APIOpenAI API

Source: README excerpt (regex_v1, Aug 18, 2026)

- OpenAI API key (Graphiti defaults to OpenAI for LLM inference and embedding)
Source link
Python runtimePython

Source: README excerpt (regex_v1, Aug 18, 2026)

- Python 3.10 or higher
Source link

Tags

README

Installation

Requirements:

  • Python 3.10 or higher
  • Neo4j 5.26 / FalkorDB 1.1.2 / Amazon Neptune Database Cluster or Neptune Analytics Graph + Amazon OpenSearch Serverless collection (serves as the full text search backend) / Kuzu 0.11.2 (deprecated, see below)
  • OpenAI API key (Graphiti defaults to OpenAI for LLM inference and embedding)

[!IMPORTANT] Graphiti works best with LLM services that support Structured Output (such as OpenAI, Anthropic, and Gemini). Using other services may result in incorrect output schemas and ingestion failures. This is particularly problematic when using smaller models.

Optional:

  • Google Gemini, Anthropic, or Groq API key (for alternative LLM providers)

[!TIP] The simplest way to install Neo4j is via Neo4j Desktop. It provides a user-friendly interface to manage Neo4j instances and databases. Alternatively, you can use FalkorDB on-premises via Docker and instantly start with the quickstart example:

docker run -p 6379:6379 -p 3000:3000 -it --rm falkordb/falkordb:latest
pip install graphiti-core

or

uv add graphiti-core

You can also install optional LLM providers as extras:


---

# Install with Anthropic support
pip install graphiti-core[anthropic]

---

# Install with Groq support
pip install graphiti-core[groq]

---

# Install with Google Gemini support
pip install graphiti-core[google-genai]

---

# Install with multiple providers
pip install graphiti-core[anthropic,groq,google-genai]

---

# Install with FalkorDB and LLM providers
pip install graphiti-core[falkordb,anthropic,google-genai]

---

# Install with Amazon Neptune
pip install graphiti-core[neptune]

Quick Start

[!IMPORTANT] Graphiti defaults to using OpenAI for LLM inference and embedding. Ensure that an OPENAI_API_KEY is set in your environment. Support for Anthropic, Gemini, and Groq is available, too. Other LLM providers — both hosted OpenAI-compatible APIs (DeepSeek, Together, OpenRouter, …) and local servers (Ollama, vLLM, llama.cpp, LM Studio) — may be used via their OpenAI-compatible endpoints; see Using Graphiti with OpenAI-compatible providers and local LLMs.

For a complete working example, see the Quickstart Example in the examples directory. The quickstart demonstrates:

  1. Connecting to a Neo4j, Amazon Neptune, FalkorDB, or Kuzu database
  2. Initializing Graphiti indices and constraints
  3. Adding episodes to the graph (both text and structured JSON)
  4. Searching for relationships (edges) using hybrid search
  5. Reranking search results using graph distance
  6. Searching for nodes using predefined search recipes

The example is fully documented with clear explanations of each functionality and includes a comprehensive README with setup instructions and next steps.


Running with Docker Compose

You can use Docker Compose to quickly start the required services:

  • Neo4j Docker:

    docker compose up
    

    This will start the Neo4j Docker service and related components.

  • FalkorDB Docker:

    docker compose --profile falkordb up
    

    This will start the FalkorDB Docker service and related components.


Quick Start

from openai import AsyncOpenAI
from graphiti_core import Graphiti
from graphiti_core.llm_client.azure_openai_client import AzureOpenAILLMClient
from graphiti_core.llm_client.config import LLMConfig
from graphiti_core.embedder.azure_openai import AzureOpenAIEmbedderClient

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.