Skip to content

    Extract named entities from every turn, maintain a structured knowledge base of people, places, and preferences, and inject relevant entity facts into each prompt. This gives the agent persistent, structured understanding of the user's world.

    About this tutorial

    This hands-on Jupyter notebook is part of Agent Memory Techniques, a free open-source repository by Nir Diamant covering agent memory techniques with runnable code examples and detailed explanations.

    Free and open-sourceRunnable Jupyter notebookActive community support
    Go deeper · Amazon Bestseller in Generative AI

    RAG Made Simple

    Nir Diamant's complete visual guide to Retrieval-Augmented Generation. Written for engineers building systems that retrieve and ground responses on real data.

    Get it on Amazon

    Amazon Bestseller in Generative AI · Kindle $9.99 · Paperback $24.99 · Free with Kindle Unlimited

    More Agent Memory tutorials