Skip to Content
Unlocking Data with Generative AI and RAG - Second Edition
book

Unlocking Data with Generative AI and RAG - Second Edition

by Keith Bourne
December 2025
Intermediate to advanced
606 pages
15h 23m
English
Packt Publishing

Overview

Design intelligent AI agents with retrieval-augmented generation, memory components, and graph-based context integration Free with your book: DRM-free PDF version + access to Packt's next-gen Reader*

Key Features

  • Build next-gen AI systems using agent memory, semantic caches, and LangMem
  • Implement graph-based retrieval pipelines with ontologies and vector search
  • Create intelligent, self-improving AI agents with agentic memory architectures

Book Description

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.

*Email sign-up and proof of purchase required

What you will learn

  • Architect graph-powered RAG agents with ontology-driven knowledge bases
  • Build semantic caches to improve response speed and reduce hallucinations
  • Code memory pipelines for working, episodic, semantic, and procedural recall
  • Implement agentic learning using LangMem and prompt optimization strategies
  • Integrate retrieval, generation, and consolidation for self-improving agents
  • Design caching and memory schemas for scalable, adaptive AI systems
  • Use Neo4j, LangChain, and vector databases in production-ready RAG pipelines

Who this book is for

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.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Unlocking Data with Generative AI and RAG

Unlocking Data with Generative AI and RAG

Keith Bourne
Prompt Engineering for Generative AI

Prompt Engineering for Generative AI

James Phoenix, Mike Taylor

Publisher Resources

ISBN: 9781806381654