- MantraMindAI
- Courses
- Generative AI & LLMs
- Context Management and Memory
Context Management and Memory
Course Overview
Intermediate
Free Course
For engineers building chatbots and agents who need them to handle long conversations and remember users across sessions. You will budget and trim a context window, compress history with summaries, and build a long-term memory with vector recall, versioned facts and conflict handling.
Instructor: Jaidev
Sections: 3
Course Content
Section 1: Short-Term Context
Do the token arithmetic for a single conversation, then keep it inside a fixed budget with sliding windows, summaries and caching.
Section 2: Long-Term Memory
Give an assistant memory that outlives the session: vector recall, better retrieval and caching, and versioned facts that stay true as users' lives change.
Section 3: Mini-Project
Build a command-line assistant that remembers users across restarts, updates facts when they change, and proves it with tests.