Building LLM Chat Memory with LangChain

Code with Irtiza ยท Beginner ยท๐Ÿง  Large Language Models ยท1y ago

About this lesson

A simple implementation of in-memory LLM memory with LangChain. ๐Ÿ‘‹ Say hi to me at: https://irtizahafiz.com Documentation: https://langchain-ai.github.io/langgraph/concepts/memory/ 00:00 Intro 00:50 Concept 06:00 Start Coding 07:16 InMemory Data Structure 09:30 Wrapping Chain w/ Message History 11:23 Configurable Session ID 12:10 Live Demo

Original Description

A simple implementation of in-memory LLM memory with LangChain. ๐Ÿ‘‹ Say hi to me at: https://irtizahafiz.com Documentation: https://langchain-ai.github.io/langgraph/concepts/memory/ 00:00 Intro 00:50 Concept 06:00 Start Coding 07:16 InMemory Data Structure 09:30 Wrapping Chain w/ Message History 11:23 Configurable Session ID 12:10 Live Demo
Watch on YouTube โ†— (saves to browser)
Sign in to unlock AI tutor explanation ยท โšก30

Related Reads

๐Ÿ“ฐ
GPT-5 and Convex Optimization: What the Claims Actually Mean for Engineering Tooling
Learn how GPT-5 and convex optimization can improve engineering tooling, and what the claims actually mean for the field
Dev.to ยท DimiDan
๐Ÿ“ฐ
Hallucination vs Confabulation: Why LLMs Invent Answers Instead of Saying โ€œI Donโ€™t Knowโ€
Learn why LLMs invent answers instead of saying 'I don't know' and understand the difference between hallucination and confabulation in AI models
Medium ยท AI
๐Ÿ“ฐ
Explaining how artificial intelligence works to a 10 year old
Learn how to explain AI to a 10-year-old and understand its basics
Medium ยท AI
๐Ÿ“ฐ
ChatGPT Memory Explained: How AI Finally Started Remembering What Matters.
Learn how ChatGPT's memory works and its significance in AI development
Medium ยท AI

Chapters (7)

Intro
0:50 Concept
6:00 Start Coding
7:16 InMemory Data Structure
9:30 Wrapping Chain w/ Message History
11:23 Configurable Session ID
12:10 Live Demo
Up next
5 Levels of AI Agents - From Simple LLM Calls to Multi-Agent Systems
Dave Ebbelaar (LLM Eng)
Watch โ†’