# graphiti

> Build Real-Time Knowledge Graphs for AI Agents

- Type: agent or tool
- Field: ML & AI
- Repository: https://github.com/getzep/graphiti
- GitHub stars: 33205
- Licence: Apache-2.0
- Language: Python
- Last push: 2026-12-01
- Page: https://imutechz.in/agents/graphiti

## What it is
Graphiti is an open-source Python framework for building and querying temporal context graphs that track how facts change over time. It continuously integrates user interactions, structured and unstructured data into a coherent graph with provenance to source episodes. The framework supports incremental updates, hybrid retrieval (semantic, keyword, and graph traversal), and precise historical queries without full graph recomputation.

## Features
- Temporal knowledge graphs with validity windows for facts and evolving entity summaries
- Hybrid retrieval combining semantic search, keyword matching, and graph traversal
- Episodes as provenance layer tracing every derived fact to raw source data
- Custom ontology via Pydantic models for developer-defined entity and edge types
- Incremental data updates without requiring complete graph recomputation
- Historical queries across time, meaning, and relationships

## Best for
- Building temporal knowledge graphs for AI agents
- Context-aware applications needing historical fact tracking
- Enterprise data integration with provenance requirements
- Applications requiring hybrid graph and vector retrieval

## Pros
- Open-source framework with full temporal history preservation
- Supports both prescribed and learned ontology
- Efficient incremental updates and historical queries
- Maintains provenance to raw source episodes

## Cons
- Requires supplying your own graph database, LLM, and embedder
- Must build ingestion, tenancy, access control, and operations yourself
- Not a complete agent memory product — framework only

Tags: temporal-knowledge-graph, ai-agents, context-graph, graph-database, python-framework, hybrid-retrieval, provenance-tracking, ontology
