Essential GraphRAG: Knowledge Graph-Enhanced RAG

·
· Simon and Schuster
Ebook
176
Pages
Eligible

About this ebook

Upgrade your RAG applications with the power of knowledge graphs.

Retrieval Augmented Generation (RAG) is a great way to harness the power of generative AI for information not contained in a LLM’s training data and to avoid depending on LLM for factual information. However, RAG only works when you can quickly identify and supply the most relevant context to your LLM. Essential GraphRAG shows you how to use knowledge graphs to model your RAG data and deliver better performance, accuracy, traceability, and completeness.

Inside Essential GraphRAG you’ll learn:
  • The benefits of using Knowledge Graphs in a RAG system
  • How to implement a GraphRAG system from scratch
  • The process of building a fully working production RAG system
  • Constructing knowledge graphs using LLMs
  • Evaluating performance of a RAG pipeline
Essential GraphRAG is a practical guide to empowering LLMs with RAG. You’ll learn to deliver vector similarity-based approaches to find relevant information, as well as work with semantic layers, deliver agentic RAG, and generate Cypher statements to retrieve data from a knowledge graph.

About the technology

A Retrieval Augmented Generation (RAG) system automatically selects and supplies domain-specific context to an LLM, radically improving its ability to generate accurate, hallucination-free responses. The GraphRAG pattern employs a knowledge graph to structure the RAG’s input, taking advantage of existing relationships in the data to generate rich, relevant prompts.

About the book

Essential GraphRAG shows you how to build and deploy a production-quality GraphRAG system. You’ll learn to extract structured knowledge from text and how to combine vector-based and graph-based retrieval methods. The book is rich in practical examples, from building a vector similarity search retrieval tool and an Agentic RAG application, to evaluating performance and accuracy, and more.

What's inside
  • Embeddings, vector similarity search, and hybrid search
  • Turning natural language into Cypher database queries
  • Microsoft’s GraphRAG pipeline
  • Agentic RAG
About the reader

For readers with intermediate Python skills and some experience with a graph database like Neo4j.

About the author

The author of Manning’s Graph Algorithms for Data Science and a contributor to LangChain and LlamaIndex, Tomaž Bratanic has extensive experience with graphs, machine learning, and generative AI. Oskar Hane leads the Generative AI engineering team at Neo4j.

Table of Contents

1 Improving LLM accuracy
2 Vector similarity search and hybrid search
3 Advanced vector retrieval strategies
4 Generating Cypher queries from natural language questions
5 Agentic RAG
6 Constructing knowledge graphs with LLMs
7 Microsoft’s GraphRAG implementation
8 RAG application evaluation
A The Neo4j environment
Upgrade your RAG applications with the power of knowledge graphs. Retrieval Augmented Generation (RAG) is a great way to harness the power of generative AI for information not contained in a LLM’s training data and to avoid depending on LLM for factual information. However, RAG only works when y...

Discover more

About the author

Tomaž Bratanic is a network scientist at heart, working at the intersection of graphs and machine learning. He has applied these graph techniques to projects in various domains including fraud detection, biomedicine, business-oriented analytics, and recommendations.

Oskar Hane is a Senior Staff Software Engineer at Neo4j. He has over 20 years of experience as a Software Engineer and 10 years of experience working with Neo4j and knowledge graphs. He is currently leading the Generative AI engineering team within Neo4j, with the focus to provide the best possible experience for other developers to build GenAI applications with Neo4j.
Tomaž Bratanic is a network scientist at heart, working at the intersection of graphs and machine learning. He has applied these graph techniques to projects in various domains including fraud detection, biomedicine, business-oriented analytics, and recommendations. Oskar Hane is a Senior Staff ...

Rate this ebook

Tell us what you think.

Reading information

Smartphones and tablets
Install the Google Play Books app for Android and iPad/iPhone. It syncs automatically with your account and allows you to read online or offline wherever you are.
Laptops and computers
You can listen to audiobooks purchased on Google Play using your computer's web browser.
eReaders and other devices
To read on e-ink devices like Kobo eReaders, you'll need to download a file and transfer it to your device. Follow the detailed Help Center instructions to transfer the files to supported eReaders.