Pranav Innovates

Learn AI in Under 3 Minutes · 15 Nov 2026

My AI Got Last Tuesday Wrong: Zep Temporal Memory (Ep 22)

About: temporal knowledge graph memory

Watch on YouTube

About this video

Temporal knowledge graph memory: my AI agent got last Tuesday wrong, 8 times out of 8.

Its memory kept only the latest value, so the past was gone; dates fixed it.

Zep (Zep AI, January 2025) keeps an agent's memory as a knowledge graph built by its open-source engine, Graphiti: facts are edges between entities, each with the dates it was true (valid from, valid to). A new fact closes the old one instead of deleting it, so the agent can answer both 'now' and 'back then'.

The test: 8 made-up passengers at a made-up airline's bag desk, 10 chats each over a week: a stolen phone and a new number on Wednesday, and on Thursday 'since yesterday I'm at a new hotel'. After every chat the model extracted the facts with dates; the app stored the same facts four ways and asked about now, last Tuesday and Wednesday night.

Qwen3.5 4B, hotel / phone now, hotel / phone on Tuesday: overwrite 8, 8, 0, 0/8; plain list 4, 0, 1, 0/8; dated graph in Zep's context format 8, 1, 8, 8/8 (it texted the stolen phone 5 times); the same graph with current facts first and the past below 8, 8, 8, 8/8. Totals over five questions: 26 to 33 of 40. Qwen3.5 2B: graph 4/40, current-first 24/40; it dated 'since yesterday' as Thursday all 8 times, and invented 77 placeholder facts (like 'N/A') in small-talk chats that a check against the chat dropped. The catch: on Wednesday night, the day of the move, the 4B named the old hotel 7 of 8 times, even with start and end times spelled out.

Learn AI in Under 3 Minutes, Ep 22 (level 4: agent memory).

Measured on an M1 MacBook Air: Qwen3.5 2B and 4B (4-bit, llama.cpp, greedy), my own tiny version of the idea (four kinds of fact; code closes old edges where Graphiti uses an LLM), not Zep or Graphiti itself. Small models: an example, not a benchmark. Paper: Zep: A Temporal Knowledge Graph Architecture for Agent Memory (Rasmussen et al., 2025).

Comment TIMELINE and I'll send you the checklist, my extraction prompt and the test passengers.

0:00 Wrong about Tuesday
0:22 Memory with time
0:39 The test
1:06 Results
1:25 Quiz
1:46 The catch
2:15 The checklist

Music: Special Spotlight by Kevin MacLeod, CC BY 3.0, via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Special_Spotlight_(ISRC_USUAN1600067).mp3)

Follow @PranavInnovates for the tech story that matters, every day.

What the video says

My AI agent got last Tuesday wrong for eight passengers out of eight: it confidently named the hotel they only moved into on Wednesday. Temporal knowledge graph memory fixes that. Mostly. Worse: for a police report, it gave the phone number she got after the theft, six times out of eight. Its memory kept one value per fact, so every change overwrote the past. Zep, from January twenty twenty-five, keeps memory as a knowledge graph, built by its open-source engine, Graphiti. Every fact carries dates: when it became true, and when it stopped. A new fact closes the old one. It doesn't delete it. So the agent can answer now, and back then. So I built a tiny version on my laptop, closing old facts in code, where Graphiti uses a model. Eight made-up passengers, ten chats in a week. Wednesday: my phone was stolen, here's my new number. Thursday: since yesterday, I'm at a new hotel. After every chat, the model pulls out the facts, with their dates. Then I stored the same facts three ways: overwrite, a plain list with no dates, and the dated graph, in Zep's own format. My four-billion model, now versus last Tuesday. Overwrite: perfect on now, zero on Tuesday. The plain list mixed old and new. The graph: Tuesday, eight of eight, for hotel and phone. But look at phone now: one of eight. It texted the stolen number five times, even with its end date right there. Quick quiz. Same facts, same dates. I only moved the current facts to the top, and the past below. Does the stolen phone go away? Completely. Phone now, eight of eight, and Tuesday still eight of eight. Twenty-six became thirty-three of forty. Even my two-billion model went from four to twenty-four. But one question still failed: Wednesday night, the day they moved. Both hotels touch that day, and even with start and end dates spelled out, the model named the old one, seven of eight. The small model also invented seventy-seven placeholder facts, like N A, that a one-line check had to drop. My take: memory with time isn't just storing dates. It's how you show them to the model. Current facts on top, history below, and test the days things change. Here's my checklist for memory with time. Store when each fact was true. Close old facts, never delete them. Check every extracted value against the chat. And put current facts first. Comment TIMELINE, and I'll send you this checklist, my extraction prompt and the test passengers. Next: what to keep, and what to forget. Episode twenty-three.

Topics

  • zep
  • temporal knowledge graph
  • graphiti
  • ai agent memory
  • knowledge graph memory
  • llm memory
  • ai agents
  • local llm
  • learn ai in under 3 minutes