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

7

Creating and Connecting a Knowledge Graph to an AI Agent

In the previous two chapters, we discussed the RAG framework in detail. We started with naïve RAG and then saw how we could add different components, replace others, or modify the entire pipeline for our needs. The whole system is extremely flexible, but some concepts remain the same. First, we start with a corpus (or multiple corpora of texts) and conduct embedding of these texts to obtain a database of vectors. Once the user query arrives, we conduct a similarity search on this database of vectors. Regardless of the scope or type of texts, our pipeline is based on the concept of vectorizing these texts in some way and then providing the information contained in the discovered texts ...

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