Zep is a memory layer for AI agents that unifies chat and business data into a dynamic temporal knowledge graph for each user. It tracks entities, relationships, and facts as they evolve, enabling you to build prompts with only the most relevant information—reducing hallucinations, improving recall, and lowering LLM costs.
Zep provides high-level APIs like memory.get and deep search with graph.search, supports custom entity/edge types, fact ratings, hybrid search, and granular graph updates. Mem0, by comparison, offers basic add/get/search APIs and an optional graph, but lacks built-in data unification, ontology customization, temporal fact management, fact ratings, and fine-grained graph control.
Got lots of data to migrate? Contact us for a discount and increased API limits.
memory.add go straight into the user’s knowledge graph; business objects (JSON, docs, e-mails, CRM rows) flow in through graph.add. Zep automatically deduplicates entities and keeps every fact’s valid and invalid dates so you always see the latest truth.fact_ratings let you auto-label facts (e.g., “high-confidence KYC data”) and filter on retrieval.graph.search supports hybrid BM25 + semantic queries, graph search, with pluggable rerankers (RRF, MMR, cross-encoder) and can target nodes, edges, episodes, or everything at once.Zep offers Python, TypeScript, and Go SDKs. See Installation Instructions for more details.
user_id → Zep user_id, and create session_id per conversation thread.graph.add; Zep will handle entity linking automatically.memory.context string; it already embeds temporal ranges and entity summaries.min_fact_rating when calling memory.get to exclude low-confidence facts instead of manual post-processing.rrf reranker; switch to mmr, node_distance, cross_encoder, or episode_mentions when you need speed or precision tweaks.For any questions, ping the Zep Discord or contact your account manager. Happy migrating!