Key Concepts

Understanding Zep's context engineering platform and temporal knowledge graphs.

Looking to just get coding? Check out our Quickstart.

Zep is a context engineering platform that systematically assembles personalized context—user preferences, traits, and business data—for reliable agent applications. Zep combines Graph RAG, agent memory, and context assembly capabilities to deliver comprehensive personalized context that reduces hallucinations and improves accuracy.

ConceptDescriptionDocs
Knowledge GraphZep’s unified knowledge store for agents. Nodes represent entities, edges represent facts/relationships. The graph updates dynamically in response to new data.Docs
Zep’s Context BlockOptimized string containing a user summary and facts from the knowledge graph most relevant to the current thread. Also contains dates when facts became valid and invalid. Provide this to your chatbot as “memory”.Docs
Fact InvalidationWhen new data invalidates a prior fact, the time the fact became invalid is stored on that fact’s edge in the knowledge graph.Docs
JSON/text/messageTypes of data that can be ingested into the knowledge graph. Can represent business data, documents, chat messages, emails, etc.Docs
Custom Entity/Edge TypesFeature allowing use of Pydantic-like classes to customize creation/retrieval of entities and relations in the knowledge graph.Docs
GraphRepresents an arbitrary knowledge graph for storing up-to-date knowledge about an object or system. For storing up-to-date knowledge about a user, a user graph should be used.Docs
User GraphSpecial type of graph for storing personalized memory for a user of your application.Docs
UserA user in Zep represents a user of your application, and has its own User Graph and thread history.Docs
ThreadsConversation threads of a user. By default, all messages added to any thread of that user are ingested into that user’s graph.Docs
graph.add & thread.add_messagesMethods for adding data to a graph and user graph respectively.Docs Docs
graph.search & thread.get_user_contextLow level and high level methods respectively for retrieving from the knowledge graph.Docs Docs
User Summary InstructionsCustomize how Zep generates entity summaries for users in their knowledge graph. Up to 5 custom instructions per user to guide summary generation.Docs
Agentic ToolUse Zep’s memory retrieval methods as agentic tools, enabling your agent to query for relevant information from the user’s knowledge graph.Docs