Skip to Content
Building AI Agents with LLMs, RAG, and Knowledge Graphs
book

Building AI Agents with LLMs, RAG, and Knowledge Graphs

by Salvatore Raieli, Gabriele Iuculano
July 2025
Intermediate to advanced
566 pages
16h 27m
English
Packt Publishing
Content preview from Building AI Agents with LLMs, RAG, and Knowledge Graphs

8

Reinforcement Learning and AI Agents

In Chapters 5–7, we discussed how to provide our model with access to external memory. This memory was stored in a database of a different type (vector or graph), and through a search, we could look up the information needed to answer a question. The model would then receive all the information that was needed in context and then answer, providing definite and discrete real-world information.

However, as we saw later in Chapter 7, LLMs have limited knowledge and understanding of the real world (both when it comes to commonsense reasoning and when it comes to spatial relations).

Humans learn to move in space and interact with the environment through exploration. In a process that is trial and error, we humans ...

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.
Start your free trial

You might also like

Modern Automated AI Agents: Building Agentic AI to Perform Complex Tasks

Modern Automated AI Agents: Building Agentic AI to Perform Complex Tasks

Sinan Ozdemir

Publisher Resources

ISBN: 9781835087060Supplemental Content