27
Graph-Based RAG
In this chapter, we’ll learn how to leverage graph-structured knowledge in RAG for LLMs. You’ll learn about graph-based knowledge representation and how to design RAG architectures that can utilize this structured information.
A graph-based knowledge representation structures information as nodes and edges in a graph, where nodes represent concepts or facts and edges capture their relationships. When used with RAG, this approach enables richer information retrieval by leveraging both the individual pieces of information and their interconnections, allowing for more contextual and relationship-aware responses.
We’ll cover graph embedding techniques for retrieval, query expansion using graph structures, and methods for integrating ...
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