-
Book Overview & Buying
-
Table Of Contents
Unlocking Data with Generative AI and RAG - Second Edition
By :
In this lab, you’ll build a procedural memory system that enables any agent to learn and adapt its behavior at multiple hierarchical levels for a specific domain, but with the flexibility to apply it to any domain. This lab starts with the memory-enabled agent from Chapter 17, but we’ve consolidated it for you into the separate baseline_agent.py for convenience. The core of this chapter’s functionality lives in procedural_memory.py, a pre-built module that implements hierarchical learning, retrieval, and adaptation. Rather than constructing this system line by line, this lab takes a guided demonstration approach: you’ll run the code, observe how procedural memory operates at each scope level, and understand the architectural decisions that make it work. This approach lets you focus on grasping the concepts and seeing the system in action, rather than typing out infrastructure code. We’...