Learn AI agent fundamentals with RAG-powered memory, graph-based RAG, and intelligent recall
Keith Bourne

#Data
#AI
#RAG
#LangChain
#LangMem
#GraphRAG
Design intelligent AI agents with retrieval-augmented generation, memory components, and graph-based context integration
Developing AI agents that remember, adapt, and reason over complex knowledge isn’t a distant vision anymore; it’s happening now with Retrieval-Augmented Generation (RAG). This second edition of the bestselling guide leads you to the forefront of agentic system design, showing you how to build intelligent, explainable, and context-aware applications powered by RAG pipelines.
You’ll master the building blocks of agentic memory, including semantic caches, procedural learning with LangMem, and the emerging CoALA framework for cognitive agents. You’ll also learn how to integrate GraphRAG with tools such as Neo4j to create deeply contextualized AI responses grounded in ontology-driven data.
This book walks you through real implementations of working, episodic, semantic, and procedural memory using vector stores, prompting strategies, and feedback loops to create systems that continuously learn and refine their behavior. With hands-on code and production-ready patterns, you’ll be ready to build advanced AI systems that not only generate answers but also learn, recall, and evolve.
Written by a seasoned AI educator and engineer, this book blends conceptual clarity with practical insight, offering both foundational knowledge and cutting-edge tools for modern AI development.
If you’re an AI engineer, data scientist, or developer building agent-based AI systems, this book will guide you with its deep coverage of retrieval-augmented generation, memory components, and intelligent prompting. With a basic understanding of Python and LLMs, you’ll be able to make the most of what this book offers.
Table of Contents
Part 1: Introduction to Retrieval-Augmented Generation (RAG)
Chapter 1: What Is Retrieval-Augmented Generation?
Chapter 2: Code Lab: An Entire RAG Pipeline
Chapter 3: Practical Applications of RAG
Chapter 4: Components of a RAG System
Chapter 5: Managing Security in RAG Applications
Part 2: Components of RAG
Chapter 6: Interfacing with RAG and Gradio
Chapter 7: The Key Role Vectors and Vector Stores Play in RAG
Chapter 8: Similarity Searching with Vectors
Chapter 9: Evaluating RAG Quantitatively and with Visualizations
Chapter 10: Key RAG Components in Lang Chain
Chapter 11: Using LangChain to Get More from RAG
Part 3: Implementing Agentic RAG
Chapter 12: Combining RAG with the Power of Al Agents and LangGraph
Chapter 13: Ontology-Based Knowledge Engineering for Graphs
Chapter 14: Graph-Based RAG
Chapter 15: Semantic Caches
Chapter 16: Agentic Memory: Extending RAG with Stateful Intelligence
Chapter 17: RAG-Based Agentic Memory in Code
Chapter 18: Procedural Memory for RAG with LangMem
Chapter 19: Advanced RAG with Complete Memory Integration
Chapter 20: Unlock Your Exclusive Benefits
Keith Bourne is an agent engineer at Magnifi by TIFIN, founder of Memriq AI, and producer of The Memriq AI Inference Brief. With over a decade of experience building production ML and AI systems across start-ups and Fortune 50 enterprises, Keith holds an MBA from Babson College and a master's in applied data science from the University of Michigan. He has built sophisticated generative AI platforms using advanced RAG techniques, agentic architectures, and model fine-tuning.









