-
Book Overview & Buying
-
Table Of Contents
Unlocking Data with Generative AI and RAG - Second Edition
By :
In the rapidly evolving landscape of artificial intelligence (AI), retrieval-augmented generation (RAG) has emerged as far more than a retrieval method. It has become the cornerstone of every modern generative AI system. RAG combines the strengths of information retrieval and generative AI models to create powerful applications that can access and utilize vast amounts of data to generate highly accurate, contextually relevant, and informative responses. Without a solid RAG foundation, building a robust AI application becomes nearly impossible.
As AI continues to permeate various industries and domains, understanding and mastering RAG has become increasingly crucial for developers, researchers, and businesses alike. RAG enables AI systems to go beyond the limitations of their training data and access up-to-date and domain-specific information, making them more versatile, adaptable, and valuable in real-world scenarios. But the role of RAG has expanded dramatically since this book’s first edition. Beyond simply retrieving content, RAG now underpins critical capabilities such as semantic caches, episodic memory retrieval, knowledge graphs, and the agentic memory systems that power today’s most sophisticated AI applications.
The AI landscape has shifted decisively toward agent-based architectures. While the first edition focused primarily on RAG as a standalone technique, modern generative AI applications are increasingly built around autonomous agents that reason, plan, and take actions. These agents rely on RAG as a core component of their functionality, using retrieval not just to answer questions but to maintain context across sessions, learn from past interactions, and continuously improve their performance. Memory can no longer remain a second-class citizen in AI system design. RAG is now positioned as the backbone of agentic memory, which in turn is central to how intelligent agents function.
This second edition reflects these fundamental shifts. You will learn how to design RAG so it seamlessly interacts with agentic memory, semantic caches, knowledge graphs, and other critical components of your AI workflow. Step by step, we will not only show you how to implement RAG but also explain the underlying concepts so you can adapt as the field evolves and unlock advanced capabilities for your AI applications.
As this book progresses, it serves as a comprehensive guide to the world of RAG, covering both fundamental concepts and the advanced techniques that define the current state of the art. It is filled with detailed coding examples showcasing the latest tools and technologies, such as LangChain, LangGraph, Neo4j, Chroma, and OpenAI’s latest models. We will cover essential topics, including vector stores, vectorization, vector search techniques, prompt engineering and design, knowledge graphs for structured reasoning, semantic caching for performance optimization, and the complete CoALA memory framework (working, episodic, semantic, and procedural memory) that enables agents to learn and adapt over time. Methods for evaluating and visualizing RAG outcomes round out the technical foundation.
The importance of learning RAG cannot be overstated. The core RAG principles from the first edition still matter, but only when viewed as part of today’s fast-moving AI ecosystem. Instead of treating RAG in isolation, this edition positions it as the foundation for agentic memory, semantic caching, graph-based retrieval, and other cutting-edge capabilities. RAG remains a key facilitator of customized, efficient, and insightful AI solutions, bridging the gap between generative AI’s potential and specific business needs. Whether you are a developer looking to enhance your AI skills, a researcher exploring new frontiers in AI, or a business leader seeking to leverage AI for growth and innovation, this book will provide you with the knowledge and practical skills necessary to harness the power of RAG and unlock the full potential of AI in your projects and initiatives. By mastering RAG as presented in this edition, you will be equipped to build the intelligent, adaptive, and continuously improving AI systems that define the next generation of applications.
The book is structured into three parts: