Skip to main content
Ontelis home
See a demo
Ontelis home

AI infrastructure

Context Graph vs. Knowledge Graph vs. GraphRAG: What Each Term Actually Means

By the Published Updated 7 min read
In short

A knowledge graph is a data structure of nodes, edges and labels. GraphRAG is a retrieval technique that builds a knowledge graph from text and queries it at answer time. "Context graph" has no single definition in the sources reviewed; Ontelis uses the term for its own system map and the permission-filtered packages it prepares for agent steps.

QuestionKnowledge graphGraphRAGContext graph
What it isA data structure: a knowledge base that uses a graph-structured data model to represent entities and the relationships between themA retrieval technique: Microsoft's name for a specific approach to retrieval-augmented generationA term with no single definition in the sources reviewed
PurposeDescribes the shape of the data, not how it got there or what consumes itConnects information scattered across many documents and summarizes a large corpusIn Ontelis's use, a map of a customer's connected systems and the permission-filtered packages it prepares for agent steps
Data involvedNodes (the entities), edges (the relationships) and labels (what each edge means)Entities, relationships and claims extracted from source text, clustered into a hierarchy of communitiesOntelis's Context Graph stores metadata about systems, objects and fields, not the underlying business values
How it is builtBy hand, from structured data, or extracted from unstructured text by a language modelIndexing source text, then querying the resulting structures at answer timeOntelis maps connected systems, objects, fields and relationships directly from those systems

Why these three terms get tangled together

"Context graph," "knowledge graph" and "GraphRAG" show up in the same conversations because they all involve connecting pieces of information as a graph rather than a flat table. But they answer different questions: a knowledge graph is a type of data structure, GraphRAG is a technique for building and querying one from text, and "context graph" has no single definition in the sources reviewed for this article.

What is a knowledge graph?

A knowledge graph, per Wikipedia and IBM, is a knowledge base that uses a graph-structured data model to represent entities and the relationships between them. IBM describes it as made up of three components: nodes (the entities), edges (the relationships) and labels (what each edge means). The term goes back further than current AI tooling; IBM notes that some research treats a knowledge graph as no different from a knowledge base or an ontology, and that the term itself was popularized by Google's Knowledge Graph product in 2012.

A knowledge graph can be built by hand, extracted from structured data, or in the case of GraphRAG, extracted automatically from unstructured text by a language model. The term describes the shape of the data, not how it got there or what consumes it.

What is GraphRAG?

GraphRAG is Microsoft's name for a specific approach to retrieval-augmented generation. According to Microsoft's own documentation, the process has two phases. First, indexing: source text is sliced into units, a model extracts entities, relationships and claims from those units, and the resulting graph is clustered into a hierarchy of communities using the Leiden technique, with each community summarized from the bottom up. Second, querying: at answer time, the system can run a global search that reasons over community summaries for holistic questions, a local search that fans out from specific entities to their neighbors, or a few other modes, depending on the kind of question being asked.

The reason this matters, per Microsoft, is that plain vector-similarity search struggles to connect information scattered across many documents or to summarize a large corpus holistically. GraphRAG's graph structure is built specifically to make that kind of connecting and summarizing possible. It is a retrieval pattern that produces and uses a knowledge graph; it is not itself a stored, governed layer a company maintains over time the way a knowledge graph or a context graph is meant to be.

Context graph: a term without one settled definition

"Context graph" has no single definition in the sources reviewed. Ontelis uses the term for its system map and the permission-filtered packages it prepares for agent steps. The closest adjacent material from an outside source comes from Atlan, a data-catalog vendor, discussing its own term, "context layer": a runtime system that turns a company's data, business systems and norms into machine-usable context for AI agents. Atlan's own comparison table distinguishes a knowledge graph, which it calls a design-time modeling primitive built before a system runs, from its context layer, a runtime delivery model built to deliver governed context to agents while they work. In that same comparison, Atlan describes "context graph" as the structural form its own context layer takes within a system, a usage specific to Atlan's framing rather than a general industry term.

That framing is Atlan's own positioning for its own product category, not an industry consensus. IBM's page on knowledge graphs notes that even that older, more established term has disputed definitions; in the sources reviewed for this article, "context graph" and "context layer" come from that one vendor's marketing.

How Ontelis uses "Context Graph"

Ontelis's own product, named Context Graph, is a map of a customer's connected systems: what systems exist, what objects and fields are inside them, and how they relate to each other. It stores metadata about those systems, not the underlying business values themselves. When an agent needs an actual value, such as a specific account's territory or a specific contract's terms, that value is queried from the source system on demand, not read out of the graph. This is a deliberate design choice, not a general property every graph of this kind has to share.

Ontelis's edges in that graph carry one of three labels: extracted (read directly from a system), inferred (derived from other data) or ambiguous. When two systems disagree about the same fact, the edge is marked ambiguous and routed to a named person, whose decision on which value is correct gets recorded rather than resolved silently.

The Context Graph is explicitly not a replacement for a company's master data management (MDM) system. It links records across systems and can raise a data change request when it spots a discrepancy, but a system like Veeva Network or OneKey remains the master record for that data, and the Context Graph never creates or overwrites a golden record on its own.

Where GraphRAG fits next to a context graph

Atlan's own comparison describes GraphRAG as sitting on top of a context layer rather than replacing one: a retrieval pattern using LLM-generated knowledge graphs, distinct from the governed, longer-lived structure a context layer is meant to be. Whether that relationship holds for every implementation is a vendor's own framing, not a settled technical fact, but it points at a real distinction worth keeping straight: GraphRAG answers "how do I extract and query a graph from a pile of text," while a context graph or knowledge graph, as Ontelis and others use the terms, answers "what is the governed, maintained map of our systems that an agent can trust right now."

How this works with agents in Ontelis

Every Ontelis agent reads from the same Context Graph before it proposes an action: what systems it needs to touch, what fields exist, and how those fields relate to each other across Veeva, SAP, Salesforce and the rest of a customer's stack. Because the graph stores metadata rather than values, an agent's read of a current account balance or a current consent status goes back to the source system at the moment it is needed. Values are queried from source systems. Before an irreversible or external action, the relevant check reads its designated source live; a stale, unavailable or contradicted source stops the action and sends it to a person.

Where two systems disagree about a fact the graph tracks, that disagreement is surfaced as an ambiguous edge rather than silently resolved by picking one source, and a named person's ruling on it becomes part of the graph going forward.

See a demo to see how an agent reads the Context Graph before proposing a step, and what happens when two systems disagree about the same fact.

Questions and answers

Is a context graph the same thing as a knowledge graph?

"Context graph" has no single definition in the sources reviewed. Atlan, a data-catalog vendor, uses the related term "context layer" for a runtime system that wraps a semantic layer with lineage, policy and decision history for AI agents, and in its own comparison table describes "context graph" as the structural form that layer takes. Ontelis uses the term for its own system map and the permission-filtered packages it prepares for agent steps, which is a related but separate use of the term.

What is GraphRAG, in plain terms?

GraphRAG is a retrieval technique for giving a language model better access to a body of text. It extracts entities and relationships from source documents into a knowledge graph, clusters that graph into communities, summarizes each community, and then uses those structures, instead of plain keyword or vector search alone, to answer questions that require connecting information across many documents.

Does Ontelis use GraphRAG?

GraphRAG is a technique for extracting a knowledge graph from unstructured text and querying it at answer time. Ontelis's Context Graph is built differently: it maps a customer's connected systems, objects, fields and relationships directly from those systems, and stores metadata about them rather than values, which are queried from the source system on demand.

Does a context graph replace a company's MDM system?

No. A context graph and a master data management system serve different purposes. Ontelis's Context Graph links records across systems and can raise a data change request when it finds a discrepancy, but a system like Veeva Network or OneKey stays the master record, and Ontelis does not create or overwrite a golden record.

Sources

  1. Welcome - GraphRAGMicrosoft, 2026
  2. What Is a Knowledge Graph?IBM, 2026

Keep reading

All guides

Where pharma puts AI to work.

See a demo