Short CourseIntermediate1 Hour 4 Minutes

Long-Term Agentic Memory with LangGraph

Instructor: Harrison Chase

LangChain
  • Intermediate
  • 1 Hour 4 Minutes
  • 7 Video Lessons
  • 5 Code Examples
  • Instructor: Harrison Chase
    • LangChain
    LangChain

What you'll learn

  • Learn how memory works and how the three types of memory – semantic, episodic, and procedural – are used in agentic workflows.

  • Build a personal email agent with routing, writing, scheduling tools to automatically ignore, respond to, or notify about incoming emails.

  • Add long-term memory to your agent by adding facts, user preferences, and evolving system prompts to a memory store that can be searched for on-going interactions.

About this course

Learn to build an agent with long-term memory in Long-Term Agentic Memory with LangGraph! Created in partnership with LangChain, and taught by its Co-Founder and CEO, Harrison Chase.

Imagine you had a human personal assistant who forgot about their previous conversation with you—not ideal. The same goes for Agents.

The main use cases for agents include personal assistance and productivity tasks. One core aspect of these tasks is long-term memory.

In this course, you will learn how to build an agent with long-term memory by creating a personal email agent that can respond, ignore, and notify the user using writing, scheduling, and memory tools. You’ll develop your agent’s memory by adding facts to its memory store, providing examples to learn the user’s preferences, and optimizing system prompts to evolve instructions based on previous responses.

By the end of this course, you will have the foundational mental framework to build an agent with long-term memory using LangGraph.

In detail, you’ll: 

  • Learn how the three types of memory–semantic, episodic, and procedural–and the two mechanisms–via hot path and in the background– apply to your agent.  
  • Build an email agent with writing, scheduling, and availability tools, along with a router that triages incoming email and handles it accordingly by ignoring, responding, or notifying the user.
  • Add tools to your email agent that allow it to operate on semantic memory by learning facts about the user, storing them in a long-term memory store, and searching over them in future interactions.
  • Incorporate episodic memory in the form of few-shot examples in the triage step of your agents to help them learn and update user preferences.  
  • Add procedural memory as system prompts, optimized with feedback to improve the instructions the agent follows.

Start building agents with long-term memory with LangGraph.

Who should join?

It’s helpful to be familiar with Python and a basic understanding of LLM prompting and LLM application development.

Course Outline

7 Lessons・5 Code Examples
  • Introduction

    Video2 mins

  • Introduction to Agent Memory

    Video8 mins

  • Baseline Email Assistant

    Video with code examples16 mins

  • Email Assistant with Semantic Memory

    Video with code examples12 mins

  • Email Assistant with Semantic + Episodic Memory

    Video with code examples9 mins

  • Email Assistant with Semantic + Episodic + Procedural Memory

    Video with code examples15 mins

  • Conclusion

    Video1 min

  • Appendix - Tips and Helps

    Code examples1 min

Instructor

Harrison Chase

Harrison Chase

Co-Founder and CEO of LangChain

Course access is free for a limited time during the DeepLearning.AI learning platform beta!

Want to learn more about Generative AI?

Keep learning with updates on curated AI news, courses, and events, as well as Andrew’s thoughts from DeepLearning.AI!