Skip to content

GraphRAG and Knowledge Graphs

Using knowledge graphs alongside vector search to answer questions about relationships and whole collections.

Editorial team 2 min read

Vector retrieval finds passages similar to a question. It struggles with questions about relationships across many documents or themes of a whole collection.

What a Knowledge Graph Adds

A knowledge graph stores entities (people, products, organisations) and relationships between them (works for, depends on, supplies). It can answer "which suppliers of component X also supply competitors?" by traversing connections.

GraphRAG Approaches

  • Entity-centric retrieval: extract entities from the question, find them in the graph, and retrieve connected entities and source passages.
  • Community summaries: cluster the graph into communities of related entities and pre-generate summaries, enabling answers to broad questions like "what are the main themes in these reports?"
  • Hybrid: combine graph traversal with vector search.

Building the Graph

Language models can extract entities and relationships from text, but extraction errors and duplicate entities are common. Entity resolution — deciding that "IBM" and "International Business Machines" are one node — is essential.

Costs

Building and maintaining a graph adds significant processing and complexity, and updating it as documents change takes care.

When It's Worth It

Relationship-heavy domains (supply chains, compliance, investigations, research literature) and questions about whole corpora. For factual lookups in documentation, standard hybrid RAG is usually enough.

Evaluate the Difference

Test with relationship and summary questions specifically, comparing against standard RAG.

More in RAG

All RAG guides →
RAG Guide · 1 min

RAG Architecture: The Components End to End

A map of a complete retrieval-augmented generation system, from ingestion to answer, and what each component is responsible for.

RAG 1 min read 6 Dec 2025

RAG Guide · 2 min

Document Parsing for RAG

Turning PDFs, slides, HTML and scans into clean, structured text — the unglamorous step that decides RAG quality.

RAG 2 min read 5 Dec 2025

RAG Guide · 2 min

Chunk Size and Overlap Tuning

How to choose chunk size and overlap for retrieval by testing against real questions rather than guessing.

RAG 2 min read 4 Dec 2025

RAG Guide · 2 min

Hybrid Search for RAG

Combining keyword and vector search so RAG finds both exact terms and paraphrased meaning.

RAG 2 min read 3 Dec 2025