Graphiti is an open-source Python framework from Zep for building and querying temporal context graphs for AI agents. When a fact changes, the old one is invalidated and not deleted, so the graph keeps a history. Facts keep provenance back to the source episodes, entity and edge types can be prescribed or learned through Pydantic models, and retrieval mixes semantic, keyword and graph-traversal search.
Install with pip install graphiti-core (Python 3.10+). It needs a graph database (Neo4j, FalkorDB or Amazon Neptune) and an LLM API key, with OpenAI as the default. Apache-2.0 licensed.