Preface
Why We Wrote This Book
Large language models are fluent, but without your additional context their usefulness is limited. Providing that context from data sources through Retrieval-Augmented Generation (RAG) grounds their answers in your specific information. Initial RAG systems stop at vector embedding search over text chunks. So the signal stays hidden in the noise, entities and their relationships are not surfaced, questions that span many documents are not answerable, and explainability and accuracy suffers.
GraphRAG combines knowledge graphs with generative AI to address this, for modeling, construction, retrieval, tool calls and explainability. A knowledge graph captures entities and their relationships explicitly, so retrieval can follow structure, not just similarity. We wrote this book because the material on how to do it is scattered across research papers, blog posts, and conference talks, and most of it stops at a demo. All three of us spend our time helping developers build ...
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