Graphiti

Active
GitHub Python Apache-2.0

Description

Graphiti is a temporal knowledge-graph engine for agent memory, helping systems continuously accumulate long-term context.

Key Features

  • Temporal fact management — Each fact has a validity window; old facts are invalidated, not deleted. Query what's true now or at any point in time
  • Provenance & lineage tracking — Every entity and relationship traces back to raw data episodes, full lineage from derived fact to source
  • Hybrid retrieval — Combines semantic embeddings, keyword BM25, and graph traversal for low-latency high-precision queries without LLM summarization
  • Incremental graph construction — New data integrates immediately without batch recomputation; graph evolves in real-time as episodes are ingested
  • Prescribed & learned ontology — Define entity/edge types via Pydantic models or let structure emerge from data automatically
  • MCP Server integration — Provides MCP Server for Claude, Cursor and other clients to use temporal context graph memory

Use Cases

💡 AI Agent long-term memory — Provide evolving structured context for conversational agents, replacing flat document chunks
💡 Customer relationship tracking — Auto-build and update temporal knowledge graphs of customer preferences and interaction history
💡 Enterprise knowledge management — Integrate structured and unstructured enterprise data into a unified queryable graph
💡 Real-time decision support — Provide agents with decision basis from latest facts and historical change trends
💡 Compliance auditing — Track information changes through complete fact timelines to support compliance audits

Strengths & Limitations

Strengths

  • Actively maintained, recent updates
  • High community interest (30.0k stars)
  • Permissive open-source license (Apache-2.0)
  • Established track record (2 years in production)

Quick Start

pip install graphiti-core

from graphiti_core import Graphiti
import asyncio

async def main():
    # Connect to Neo4j
    client = Graphiti(
        "bolt://localhost:7687",
        "neo4j",
        "password"
    )
    await client.build_indices_and_constraints()

    # Add data
    await client.add_episode(
        name="conversation",
        body="Kendra loves Adidas shoes",
        source_description="user conversation"
    )

    # Search
    results = await client.search("What brand does Kendra like?")
    print(results)

asyncio.run(main())

Related Projects

Mem0

63.4k · Python
Active A+

Mem0 is a long-term memory layer for AI agents, supporting cross-session memory management and personalized context retrieval.

memoryragpersonalization +1
  • · Multi-level memory — seamlessly manages user, session, and agent memory states with adaptive personalization
  • · Single-pass ADD extraction — one LLM call extracts memories with no UPDATE/DELETE, memories accumulate only
  • · Entity linking — entities extracted, embedded, and linked across memories for retrieval boosting

MemAgent

1.1k · Python
Stale B

A MemAgent framework that can extrapolate to 3.5M context tokens, along with a training framework for RL training of any agent workflow.

memoryagentrag +2
  • · Ultra-Long Context Processing: Extrapolate from 8K training context to 3.5M tokens with performance loss under 5%
  • · Reinforcement Learning Driven: Trained with RLVR (Reinforcement Learning from Verifiable Rewards), extends DAPO algorithm for end-to-end multi-turn conversation optimization
  • · Linear Time Complexity: Breaks through computational bottlenecks in long-text processing with linear resource scaling

HyperDB

1.4k · Python
Stale C

A hyper-fast local vector database for use with LLM Agents, providing lightweight vector storage and similarity search capabilities for embedding as instant memory and knowledge retrieval components in agent applications.

vector-databasepythonagent +2
  • · Hyper-fast local vector database designed specifically for LLM Agents
  • · C++ high-performance backend with hardware-accelerated operations via MKL BLAS
  • · Simple unified interface compatible with all major LLM agent frameworks

MemVid

16.2k · Rust
Normal A

MemVid is a long-term memory layer for AI agents that uses video encoding for lightweight single-file storage, replacing complex RAG pipelines with instant retrieval.

memoryragvector-database +2
  • · Single-file portable memory layer — no database or server infrastructure required
  • · Smart Frame architecture inspired by video encoding for append-only, crash-safe storage
  • · Sub-5ms retrieval latency at scale with predictive caching (0.025ms P50)

Related Articles