About this video
AI agent memory types: with no memory, my AI agent paid everyone €150.
It also texted a number nobody gave it. Each fix needed a different kind of memory.
The test: 8 made-up passengers at a made-up airline's bag desk, 4 requests each (32 in all), each needing one kind of memory. Working memory (this chat's earlier turns): 'my phone's dying, text my sister'. Episodic (a dated log of what happened): 'pay the voucher you promised me' (30 to 55 euros, promised on Wednesday). Semantic (facts and rules: phone, home, hotel, policies): 'deliver my bag to my home address'. Procedural (how-tos): a damaged bag, where the desk's how-to says a 25-euro voucher and a text with the damage form link.
Small model (Qwen3.5 2B): no memory 0/32; each kind loaded alone fixed its own request (8, 8, 8 and 2 of 8) and none of the others; all four 24/32. With the how-to, all 8 got the 25-euro voucher but only 2 the form link. The wrong kind gave confident wrong answers: with only facts it texted the passenger's own dying phone and paid the 50-euro daily policy instead of the promise. Twice the size (Qwen3.5 4B): all four 32/32, each kind on its own request 8/8, no memory 0/32 (it paid everyone 249 euros, the example in the voucher button's description).
Episode 20 of Learn AI in Under 3 Minutes, level 4: agent memory.
Measured on an M1 MacBook Air: Qwen3.5 2B and 4B (4-bit, llama.cpp, greedy), the same seven desk buttons in every way; the stores are short (5 events, 10 facts and rules, 3 how-tos) and loaded into the system prompt; working memory is the chat's earlier turns. The 4B ran each single kind only on its own request. Neither model opened a lost-bag claim, so that step isn't counted. Small models, 8 passengers: an example, not a benchmark. The four kinds come from psychology (Tulving, 1972); the CoALA paper (2023) maps them onto agents.
Comment KINDS and I'll send you the checklist, my four memory stores and the test passengers.
0:00 No memory
0:31 Working memory
0:43 Episodic memory
0:56 Semantic memory
1:08 Procedural memory
1:24 Which memory fixes which job
1:38 Quiz
1:54 The catch
2:04 My take
2:15 The checklist
Music: Voice Over Under by Kevin MacLeod, CC BY 3.0, via Wikimedia Commons (https://commons.wikimedia.org/wiki/File:Voice_Over_Under_(ISRC_USUAN1600001).mp3)
Follow @PranavInnovates for the tech story that matters, every day.
What the video says
With no memory, my AI agent paid every passenger a hundred and fifty euros, not what it promised, and texted a number nobody gave it. Each fix needed a different type of AI agent memory. Zero of thirty-two requests right. Load one kind of memory, and it helps exactly one job, and no other. Load all four, and a small model on my laptop gets twenty-four. Last episode, a note fixed a stolen phone. But a note is one kind of memory. AI borrowed four from human psychology. Working memory is this chat. Two messages back, she said: my phone's dying, text my sister. Drop those turns, and it texted the example number from the button's own description, all eight times. Episodic memory is what happened, and when. On Wednesday, the desk promised her thirty-five euros. With only the facts on file, it paid the fifty-euro policy instead. With the event log: the promise, eight of eight. Semantic memory is facts: her phone, her home, the desk's rules. With no facts, it booked a courier to, literally, Amara Okafor's home address. With her file, every bag went home. Procedural memory is how to do things, like the skills from episode fifteen. The damaged-bag how-to: a twenty-five-euro voucher, and text the damage form link. Loaded on its own, all eight got the voucher. Only two got the link. Six were told the bag had been repaired. Put it in one grid. Each kind fixes its own job, and nothing else. The wrong kind even hurts: with only facts, it texted her own dying phone. All four together: twenty-four of thirty-two, everything but the damage form link. Quick quiz: a model twice the size, all four loaded. Does it send the damage form link? Every time: thirty-two of thirty-two in all. On the small model, the how-to was the memory that slipped. But size doesn't replace memory. With nothing loaded, the bigger model paid every passenger two hundred and forty-nine euros: the example in the voucher button's own description. My take: memory isn't one thing. Working memory is the chat; the other three live in your app. Keep them as separate stores, load the ones each request needs, and test each kind on the job it's for. Here's the checklist I use for agent memory. Working: keep this chat's turns. Episodic: a dated log of what happened. Semantic: facts and rules, updated in place. Procedural: how-tos with exact steps, and check every step happened. Comment KINDS, and I'll send you this checklist, my four memory stores and the test passengers. Next: memory as an operating system. Episode twenty-one.