
Zep built Konig to handle millions of small idle knowledge graphs per enterprise customer.
Traditional graph databases assume one large resident graph, causing costs to follow provisioned memory.
Konig tiers storage across RAM, NVMe, and object storage, achieving p95 under 100ms.
What happened
Zep built Konig, a graph storage system that keeps hot graphs in RAM, recently used graphs on local NVMe, and idle graphs in object storage. Retrieval holds a p95 under 100ms from a thousand graphs up to tens of millions, with end-to-end latency under 200ms.
Why it matters
A single enterprise customer can run millions of graph instances, most of which are cold at any given moment. Traditional systems like Neo4j are built for one large resident graph, so costs follow provisioned memory rather than reads actually served, and adding hardware stopped helping Zep.
What to watch
Konig runs PageRank inline in milliseconds rather than as a batch job because each query reads a single graph. It also keeps two in-memory layouts of every graph and converts between them on demand.
Ask the AI about this article →
The article explains why Zep moved away from conventional graph databases for its agent memory workload. Traditional systems like Neo4j assume one large graph stays resident in memory, with every request passing through a Cypher parser and query optimizer. But agent memory stored as a knowledge graph produces one graph per user, team, and project, and a single enterprise customer can run millions of them, most cold at any given moment. That makes the cost follow provisioned memory rather than reads actually served.
Konig was built around this access pattern by tiering storage: hot graphs in RAM, recently used graphs on local NVMe, and idle graphs in object storage. Because each query reads exactly one graph, PageRank can run inline in milliseconds rather than as a batch job. The system also attaches encryption keys and retention rules to each graph, and keeps two in-memory layouts of every graph, converting between them on demand.
The blog also frames Konig within the wider LLM caching landscape, distinguishing four types: KV cache for attention tensors per request, prefix caching keyed by hash chains over token IDs, prompt caching as the provider's billed version at 0.1x read and 1.25x write rates, and semantic caching storing finished responses by cosine similarity. The first three are exact-match and correctness-neutral, while the semantic cache is fuzzy-match and can return wrong answers with a 200 status.
AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.
Free · takes 30 seconds · unsubscribe anytime
Ask AI anything about this article. Q&As are published on this page for other readers too.
Lowe's AI shopping assistant, Mylow, has fielded more than 25 million questions since launch, and online shopp…

The State Department's Northstar AI tool, which summarizes media and translates content, has cut a task that t…

Booking.com is facing backlash over AI-generated advertising, even though the platform says it fully discloses…

The Home Depot announced the nationwide rollout of new in-store capabilities for Magic Apron, its AI-powered s…

Mercari and Kyoto University's Hiroki Habue discussed how to balance AI adoption speed and safety in AI govern…

Mizuho FG announced it will begin discussions to leverage Nvidia's products, services, and technical expertise…
