Retrieval-augmented generation (RAG) emerged as a critical solution allowing models to dynamically retrieve external data to augment their responses. When combined with structured knowledge representations like graphs and knowledge graphs, RAG systems become even more powerful, capable of contextualized reasoning, accurate referencing, and rich semantic understanding. While the fusion of RAG with knowledge graphs (Graph-RAG) represents the new frontier of intelligent information systems, there is a lack of resources that detail the practical implementation of such systems.
This book fills that gap, offering both theoretical insights and actionable techniques for creating systems that are not only smart but also explainable and robust. It serves as a comprehensive guide for those interested in building intelligent systems that merge retrieval, generation, and knowledge representation.
The book consists of four major parts. Part I establishes the foundational concepts. Part II introduces the structured world of graph-based knowledge representation. Part III discusses how to combine RAG with the structured knowledge of graphs, implementing Graph-RAG systems with popular frameworks, and evaluating their performance. Part IV explores SOTA frameworks like RAPTOR, G-Retriever, Microsoft GraphRAG, and HippoRAG, understanding their unique approaches and applications.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A practical bridge between large language models and structured knowledge, this book shows how to build retrieval-augmented generation systems that reason over graphs rather than flat text—accurate, explainable, and robust. Best for developers, data scientists, and graduate researchers ready to move from basic RAG to Graph-RAG.
【Book Arc】
- **Opening (~0%–10%)**: Sets the stage by framing RAG as the answer to LLM hallucinations and stale knowledge, then maps the four-part structure and tells each audience where to start. Establishes the "why" before any implementation.
- **Early (~10%–35%)**: Builds the information-retrieval foundation—historical evolution, indexing (inverted/forward indexes, positional data, distributed and compression techniques), two-tower retrieval architectures, and query processing (expansion, enrichment, routing, decomposition). Solves the "how does retrieval actually work" problem.
- **Middle (~35%–50%)**: Turns to LLMs themselves—tokenization granularities, the transformer and attention mechanics, model families (encoder-only, decoder-only, encoder-decoder), and training paradigms from pretraining through prompting. Grounds the "generation" half of RAG.
- **Late (~50%–75%)**: Moves into graph-based knowledge representation and then fuses it with RAG—implementing Graph-RAG with popular frameworks and evaluating performance. This is the book's core bridge between the two halves.
- **Ending (~75%–100%)**: Surveys state-of-the-art frameworks—RAPTOR, G-Retriever, Microsoft GraphRAG, and HippoRAG—comparing their distinct approaches and applications, reading like research-seminar material on where the field is heading.
【Key Takeaways】
- **RAG exists to fix two core LLM failures** (Opening): hallucinations and knowledge staleness are named as the central limitations, and dynamic knowledge integration is presented as the remedy—this framing justifies the entire book.
- **Retrieval quality rests on indexing fundamentals** (Early): inverted indexes, posting lists, positional information, and distributed/compressed indexing are treated as the backbone of fast, scalable search—not skipped as background.
- **Query processing is a multi-stage discipline** (Early): expansion, context enrichment, routing, and decomposition each address distinct failure modes (vocabulary mismatch, ambiguous intent, complex multi-part questions), and their sophistication directly shapes downstream retrieval quality.
- **Tokenization choices carry real trade-offs** (Middle): word-, character-, subword-, and ML-based tokenizers differ in vocabulary size, OOV robustness, and semantic richness—practitioners are told these decisions affect performance and cross-language applicability.
- **LLM families map to task fit** (Middle): encoder-only, encoder-decoder, and decoder-only architectures, plus proprietary vs. open-source and domain-specific models, are organized so readers can match architecture to use case.
- **Training is a layered pipeline** (Middle): pretraining builds general language understanding, post-training specializes, and prompting (zero/few-shot, chain-of-thought, in-context learning) guides behavior—these paradigms are shown working together rather than in isolation.
- **Graph-RAG is the book's payoff** (Late): combining RAG with structured graph knowledge enables contextualized reasoning, accurate referencing, and semantic understanding—the practical implementation gap the book claims to fill.
- **SOTA frameworks diverge in approach** (Ending): RAPTOR, G-Retriever, Microsoft GraphRAG, and HippoRAG are compared as distinct strategies, useful for readers choosing a starting point or tracking research frontiers.
【Reading Tips】
- **Route yourself by background**: beginners take Parts I–II; RAG newcomers with IR/LLM experience jump to Chapter 3; advanced readers go straight to Part III; researchers and grad students focus on Part IV.
- **Deep-read the indexing and query-processing chapters** if you're building retrieval infrastructure—these are dense but foundational, and skimming them undermines everything downstream.
- **Treat the attention/tokenization math as reference, not memorization**: the worked attention example is illustrative; grasp the intuition and move on unless you're tuning models.
- **Use the companion website alongside the text**: source code, Jupyter notebooks for RAG/Graph-RAG/KG integration, and sample datasets make the implementation chapters far more concrete.
- **Prerequisites to line up first**: working Python knowledge and basic algorithms/data-structures familiarity; foundational AI/ML is helpful but the book introduces concepts as needed.
【Coverage Limits】
This guide is built from stratified excerpts covering the book's framing, IR fundamentals, LLM internals, and framework overview; the detailed Graph-RAG implementation and evaluation chapters (Part III) and the SOTA framework deep-dives (Part IV) are only summarized at the structural level, so specifics there are not covered.
nts where t▪hat term appears. Posting lists may also store: ▪ TF in each document▪ Term position for phrase matching Document frequency (DF) for ranking algo...
history, and real-time signals to disambiguate effectively. Scalability demands processing millions of documents and queries in real time while main- taining...
how LLMs employ these components at the architectural level. These families can be broadly categorized into three types: encoder-only, encoder-decoder, and d...
• An overall sentiment trend (positive or negative drift). • Sentiment by rating or category (e.g., electronics vs. home). • Emotional intensity (how strongl...
ves—even when these exact phrases don’t appear in the query. This semantic understanding proves crucial for open-domain question answering where users expres...
adaptive prompt selection based on the chosen ResponseMode. 1 from llama_index.core import get_response_synthesizer 2 from llama_index.core.response_synthesi...
h with distinct advantages and use cases. 5.1.2.1 Edge List The simplest form of graph representation is an edge list, which is merely a collection of all ed...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Add Tag
Enter tag name (max 50 characters)
Share E-Book
Advanced retrieval-augmented generation bridging large language models and knowledge graphs (Wendy Ran Wei, Huijun Wu)(Z-Library)
Scan QR code with your phone to access
Copy the link or scan the QR code to access this e-book on your phone
Share to WeChat Moments
Advanced retrieval-augmented generation bridging large language models and knowledge graphs (Wendy Ran Wei, Huijun Wu)(Z-Library)
Scan the QR code with WeChat to open this book
Tap the ··· menu in the top-right corner
Choose Share to Moments
You are already in WeChat. Tap ··· in the top-right corner and choose Share to Moments.
Share E-Book via Email
Please enter email address
Donation Statistics
¥.00
Total Donations
0
Donation Count
Advanced retrieval-augmented generation bridging large language models and knowledge graphs (Wendy Ran Wei, Huijun Wu)(Z-Library)
Find Your Favorite Books
Only registered users can comment after logging in. Comments need to be reviewed by administrators before being displayed
Loading comments...
Reply to Comment
Edit Comment