Pydantic AI agent memory with Redis Iris
Learn how Redis Iris connects business data and conversation memory to a Pydantic AI agent through an MCP server and a separate memory API.
Player not loading? Watch on YouTube
This tutorial explains the speaker's approach to moving from a personal markdown knowledge base to an AI agent used by multiple customers. He argues that shared access, live business data and retrieval costs call for a database context layer. The demonstration uses Redis Iris, described as being in preview, with a Pydantic AI support agent. The speaker discloses that he worked with Redis on the video.
Context Retriever supplies structure over Redis data through defined entities, attribute types and relationships. The walkthrough explains how those definitions generate MCP tools for filtering records and searching text. Using mock e-commerce data, the agent looks up delayed orders and support tickets mentioning refunds.
Agent Memory uses a separate API endpoint rather than an MCP server. The speaker explains how it stores conversation history, extracts information into long-term memory in the background and retrieves memories through vector search. A customer preference for reshipments over refunds carries into a new conversation.
The demo runs through a CLI and has no authentication or front end. The speaker says production applications should derive user identity from authentication. He recommends keeping markdown for personal knowledge bases; the tutorial focuses on shared application architecture rather than instructions to run models locally.