Skip to main content
Software Engineering Daily

Redis and AI Agent Memory with Andrew Brookins

48 min episode · 2 min read
·
Andrew Brookins

Episode

48 min

Read time

2 min

Topics

Leadership, Artificial Intelligence, Software Development

AI-Generated Summary

Key Takeaways

  • Memory Architecture: AI agents need three distinct memory layers: working memory for current message history, summarization systems to compact past conversations when context limits are reached, and extracted long-term facts stored separately for retrieval across sessions.
  • Hybrid Search Strategy: Vector search alone proves insufficient for production agents. Effective systems combine semantic vector search for exploratory tasks with keyword exact-match search for specific queries, fusing results based on task requirements rather than predetermined patterns.
  • Temporal Fact Management: Store timestamps with all extracted memories to enable recency-based retrieval and decay. Episodic memories bound to specific times require different handling than stable semantic facts, with time-ordered queries preventing outdated information from overriding current preferences.
  • World Model Gap: Current agents fail at predicting environment state changes despite extensive context engineering. Production agents interacting with infrastructure or dynamic systems need reinforcement learning approaches beyond language prediction to generalize across different scenarios and environments successfully.

What It Covers

Andrew Brookins from Redis explains how AI agents require sophisticated memory systems spanning short-term conversations, long-term facts, and semantic retrieval to maintain continuity across stateless LLM interactions in production environments.

Key Questions Answered

  • Memory Architecture: AI agents need three distinct memory layers: working memory for current message history, summarization systems to compact past conversations when context limits are reached, and extracted long-term facts stored separately for retrieval across sessions.
  • Hybrid Search Strategy: Vector search alone proves insufficient for production agents. Effective systems combine semantic vector search for exploratory tasks with keyword exact-match search for specific queries, fusing results based on task requirements rather than predetermined patterns.
  • Temporal Fact Management: Store timestamps with all extracted memories to enable recency-based retrieval and decay. Episodic memories bound to specific times require different handling than stable semantic facts, with time-ordered queries preventing outdated information from overriding current preferences.
  • World Model Gap: Current agents fail at predicting environment state changes despite extensive context engineering. Production agents interacting with infrastructure or dynamic systems need reinforcement learning approaches beyond language prediction to generalize across different scenarios and environments successfully.

Notable Moment

Brookins reveals his production agent relies heavily on Redis Streams for background task orchestration and workflow state management, not just memory storage, highlighting how agent infrastructure extends far beyond simple database lookups into complex distributed system challenges.

Know someone who'd find this useful?

Episode Transcript

A key challenge with designing AI agents is that large language models are stateless and have limited context windows. This requires careful engineering to maintain continuity and reliability across sequential LLM interactions. To perform well, agents need fast systems for storing and retrieving short term conversations, summaries, and long term facts. Redis is an open source, in memory data store widely used for high performance caching, analytics, and message brokering. Recent advances have extended Redis' capabilities to vector search and semantic caching, which has made it an increasingly popular part of the Adjantic application stack. Andrew Brookins is a principal applied AI engineer at Redis. He joins the show with Sean Falconer to discuss the challenges of building AI agents, the role of memory in agents, hybrid search versus vector only search, the concept of world models, and more. This episode is hosted by Sean Falconer. Check the show notes for more information on Sean's work and where to find him. Andrew, welcome to the show. Thank you. Thanks for having me. I'm a big fan, so this is fun. Nice. Yeah. Well, I'm glad glad you could be here, glad we could work it out. Always good to have a fan on the show as well. Absolutely. So I wanted to kinda start with the big picture or a big quick picture question. You know, a lot of people are saying that 2025 is gonna be this breakout year for AI agents. It's, you know, the year of the agent. There's a lot of hype going on in the market right now. We're moving beyond just basic chat. So from your perspective, what makes building these more autonomous agentic systems like hard and why does memory or other components kinda play such a central role here? Yeah. Well, I think I've been thinking a lot about this, of course. And, and one of the reasons I think it's so difficult is that, you know, many of the tasks that we can put into a POC to show off what an agent can do, you know, backed by an LM, They satisfy the the weaknesses of the LM. Right? They draw on information and training. They use that generative ability plus, you know, context engineering to produce information effectively. And elements can do that really well, and we've we've done a lot of work now to make agents be able to do that as well. Right? But the tricky part is, I think, when the agent has to integrate in any kind of environment and do something, actually change something and, crucially, be able to predict, like, the outcome of the change. And that's the part that, you know, LLMs just don't don't model, actually. They don't they don't model state transitions like that for environments. That's where they tend to break down, where agents tend to break down. And you think that is it primarily that, you know, companies get stuck in sort of that, you know, demo POC …

Get the full transcript (9,660 words) + summary by email — free

One-time email with the complete transcript and AI summary of this episode. No account needed.

One email, no spam. We’ll also show you what SignalCast does.

Browse all Software Engineering Daily transcripts →

You just read a 3-minute summary of a 45-minute episode.

Get Software Engineering Daily summarized like this every Monday — plus up to 2 more podcasts, free.

Pick Your Podcasts — Free

Keep Reading

Books, tools, and gear mentioned in this episode

SignalCast may earn commission on purchases via these links.

Tools

  • by Redis Labs

    Brookins reveals his production agent relies heavily on Redis Streams for background task orchestration and workflow state management, not just memory storage.
  • by Redis Labs

    Brookins reveals his production agent relies heavily on Redis Streams for background task orchestration and workflow state management, not just memory storage.

More from Software Engineering Daily

We summarize every new episode. Want them in your inbox?

Similar Episodes

Related episodes from other podcasts

Explore Related Topics

This podcast is featured in Best Cybersecurity Podcasts (2026) — ranked and reviewed with AI summaries.

Read this week's AI & Machine Learning Podcast Insights — cross-podcast analysis updated weekly.

You're clearly into Software Engineering Daily.

Every Monday, we deliver AI summaries of the latest episodes from Software Engineering Daily and 192+ other podcasts. Free for one show.

Start My Monday Digest

No credit card · Unsubscribe anytime