What plain RAG does well
Retrieval-augmented generation, introduced by Lewis et al. in 2020, gives a language model the passages it needs at question time instead of relying on what it memorised in training. In its common form, documents are split into chunks, each chunk is turned into an embedding, and the chunks closest to the question are passed to the model.
This works well when the answer sits in one or two passages and the question uses words or ideas close to those passages: "What is the notice period in this contract?", "How do I reset the device?", "What did the policy say about refunds?" Adding keyword search alongside embeddings (hybrid search) and a reranking step fixes many of the remaining misses, such as product codes, names and exact phrases.
For a large share of business use cases, that is enough. It is also cheap to build, easy to update, and easy to debug, because every answer can be traced back to the chunks that were retrieved.
Where plain RAG breaks
The weaknesses come from the same design that makes it simple. Each chunk is retrieved on its own, by similarity to the question. Anything that depends on connections between chunks is left to chance.
Multi-hop questions
"Which suppliers of our delayed projects also supply the new site?" needs one fact to find the next. The second hop often shares no words with the question, so similarity search never surfaces it.
Relationship questions
"Who reports to the person who approved this change?" is a question about links, not about text. Chunks rarely state the whole chain in one place.
Corpus-wide questions
"What are the recurring complaints across this year's support tickets?" has no single passage that answers it. Retrieving the top ten chunks returns a sample, not a summary. Edge et al. (2024) call these global or query-focused summarisation questions and show that standard RAG is a poor fit for them.
Entities with many names
The same customer, product or person appears under different names and spellings across documents. Vector search treats these as loosely related text. It does not know they are the same thing.
What a knowledge graph adds
A knowledge graph stores entities (people, organisations, products, places, concepts) and the relations between them, each linked back to the source text. In graph-based RAG, a language model usually extracts these from every chunk at indexing time. At question time, retrieval can follow links instead of relying only on similarity.
Three published approaches show the main patterns:
- GraphRAG (Edge et al., 2024) builds an entity graph, groups it into communities, and writes a summary for each community. Corpus-wide questions are answered from those summaries, which covers the "main themes" type of question that plain RAG handles poorly.
- HippoRAG (Gutiérrez et al., 2024) links passages through an entity graph and uses a graph-ranking step to pull in passages that are connected to the question, which helps with multi-hop questions.
- LightRAG (Guo et al., 2024) combines graph structure with vector retrieval at two levels, specific entities and broader topics, with a focus on keeping indexing and updates lighter.
The common idea: the graph makes connections explicit, so the system can retrieve facts that belong together even when they are written far apart.
What a knowledge graph costs
- Indexing cost. A model has to read every chunk to extract entities and relations. On a large corpus that is far more model calls than embedding the same text.
- Schema and entity resolution. Someone has to decide which entity and relation types matter, and the system has to merge duplicates correctly. Mistakes here spread into every answer that uses the graph.
- Keeping it current. When a document changes, the affected entities, relations and summaries must change with it. Community summaries in particular can go stale.
- Harder debugging. A wrong answer can come from extraction, resolution, traversal or summarisation. Tracing it takes more tooling than checking a list of retrieved chunks.
- More infrastructure. Often a graph store alongside the vector store, and a pipeline to keep both aligned.
A decision guide
Start from the questions your users actually ask, not from the architecture.
| Question type | Example | Start with |
|---|---|---|
| Direct lookup | "What is the warranty period for model X?" | Hybrid search + reranking |
| Exact identifiers | "Show the clause referencing invoice 4471." | Keyword search + metadata filters |
| Entity with aliases | "Everything about this customer, under any of its names." | Entity index (light graph) |
| Multi-hop | "Which suppliers of delayed projects also supply site B?" | Knowledge graph |
| Relationship chains | "Who approved changes owned by this team?" | Knowledge graph |
| Corpus-wide themes | "Main complaints across this year's tickets?" | Graph with community summaries |
There is a middle step that many teams skip. Before building a full knowledge graph, extract a lightweight entity index: the main entities and their aliases, attached to chunks as metadata. It fixes the alias problem and enables simple filtering, at a fraction of the cost.
How to decide with evidence
- Collect real questions. Use logs, support tickets or interviews with the people who will use the system. Aim for a set that reflects how often each type comes up.
- Label each question by type using the table above, and write down the source passages a correct answer needs.
- Measure retrieval and answers separately. Did retrieval return the needed passages? Is the answer faithful to them? Frameworks such as RAGAS (Es et al., 2023) provide metrics for both.
- Tune plain RAG first. Chunking, hybrid search and reranking often close much of the gap on their own.
- Add graph retrieval only where plain RAG still fails, and route those question types to it. Keep the rest on the simpler path.
- Re-run the same evaluation set on every change, so you can see whether the graph earns its cost.
How Quest approaches it
We treat a knowledge graph as an addition to be justified, not a default. Our projects start with hybrid retrieval and an evaluation set built from the client's own questions. Where the evaluation shows multi-hop, relationship or corpus-wide questions failing, we add graph retrieval for those question types and keep measuring.
Frequently asked questions
Is GraphRAG always better than vector RAG?
No. For direct lookup questions answered by one or two passages, well-tuned hybrid search with reranking is usually enough and is cheaper to build and run. Graphs help most with multi-hop, relationship and corpus-wide questions.
Do I need a graph database?
Not at the start. Many teams begin with an entity index stored next to their vector index. A dedicated graph database becomes worthwhile when traversal queries get deep or the graph is shared by several applications.
Does a knowledge graph reduce hallucinations?
It can reduce one cause of them, missing or fragmented context, by retrieving connected facts together. It does not remove the need to check answers against sources.
Why is graph-based RAG more expensive?
Building the graph usually means a language model reads every chunk to extract entities and relations, and the graph has to be kept in sync as documents change. Plain vector RAG only needs embeddings.
References
- Lewis, P. et al. (2020). Retrieval-augmented generation for knowledge-intensive NLP tasks. NeurIPS 2020. arXiv:2005.11401.
- Edge, D. et al. (2024). From local to global: a graph RAG approach to query-focused summarization. arXiv:2404.16130.
- Gutiérrez, B. J. et al. (2024). HippoRAG: neurobiologically inspired long-term memory for large language models. arXiv:2405.14831.
- Guo, Z. et al. (2024). LightRAG: simple and fast retrieval-augmented generation. arXiv:2410.05779.
- Es, S. et al. (2023). RAGAS: automated evaluation of retrieval augmented generation. arXiv:2309.15217.
info@questlab.pk →