AI From Scratch/Phase 14/Lesson 07/~75 minutes

Memory: Virtual Context and MemGPT

BuildPython (stdlib)

Context windows are finite. Conversations, documents, and tool traces are not. MemGPT (Packer et al., 2023) frames this as OS virtual memory — main context is RAM, external store is disk, the agent pages between them. This is the pattern e...

Loading lesson page...