Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Memory Management in Large Language Models and Agents - A Practical Implementation Guide

Trelis Research via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Learn advanced memory management techniques for Large Language Models (LLMs) and AI agents in this 49-minute technical video. Explore the fundamentals of memory types, including read-only and read-write implementations, while diving into practical architecture and design choices for efficient token allocation. Master conversation history management, pagination strategies, and database setup for optimal performance. Follow along with hands-on demonstrations of building and running a memory-enabled chatbot, implementing advanced search algorithms, and managing system messages. Discover key features for client interface development, local memory management, and response handling, complete with code examples and practical implementation guidance. Gain insights into future improvements and enhancements for memory management in AI systems, supported by detailed explanations of token management statistics and retrieval processes.

Syllabus

00:00 Introduction to Memory in LLMs and Agents
00:44 Why Add Memory to LLMs?
01:52 Types of Memory: Read-Only vs Read-Write
02:41 Memory Architecture and Design Choices
04:09 Local Memory and Token Allocation
05:49 Managing Conversation History
09:44 Pagination and Database Setup
11:51 Implementing Memory in Practice
15:56 Building and Running the Memory Chatbot
25:42 Advanced Search Algorithms
26:32 Implementing Pagination
27:03 Design Choices for Memory Management
27:45 Example Walkthrough
28:29 Handling Conversation Turns
29:10 Token Management and Statistics
29:56 Memory Retrieval Process
32:19 Building the Chatbot Application
32:31 Key Features and Build Notes
33:50 Future Improvements and Enhancements
34:11 Client Interface and Local Memory Management
38:20 Response Handling and System Message Management
41:24 Chatbot Code Overview
44:49 Memory Management Functions
47:54 Final Thoughts and Future Directions

Taught by

Trelis Research

Reviews

Start your review of Memory Management in Large Language Models and Agents - A Practical Implementation Guide

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.