FluxForce AML and Fraud Blog

Knowledge Graph vs Context Graph for AI Agents

Written by Sahil Kataria | Dec 4, 2026, 4:46:19 AM

Listen To Our Podcast🎧

• 1:48
Knowledge Graph vs Context Graph for AI Agents
Secure. Automate. – The FluxForce Podcast
Your browser does not support audio.

What will you learn?

A knowledge graph stores facts. A context graph picks the ones this decision needs.

Knowledge graph vs context graph is a question CTOs now face once AI agents start doing real work. A knowledge graph is a graph of entities and the facts that connect them, built to describe the world as it is. A context graph is the record an agent uses for one decision: which facts held on the day, where each one came from, which policy applied and how similar cases were decided before.

This guide is for CTOs deciding what to build under their agents. Last updated 4 December 2026.

In This Article, You'll Learn
  • The difference, in one table.
  • Where the term context graph came from, and its three meanings.
  • Knowledge graph vs graph database.
  • When an agent needs a graph, and when retrieval is enough.
  • How both graphs support a procurement decision a person makes.

Request the comparison table

Bring one decision type you have to explain. We'll go through the comparison with you row by row.
Get the comparison table

Four checks before an agent uses a fact

Ask them of every fact a decision depends on.

  1. Where did the fact come from?
  2. When was it valid?
  3. When did we record it?
  4. Which decisions used it?
"
Direct answer

A knowledge graph describes entities and how they connect; a context graph records each decision with the facts that held on the day, their sources, the policy that applied and the person who decided.

What is the difference between a knowledge graph and a context graph?

A knowledge graph describes entities and how they connect, such as a supplier, its owners and its contracts. A context graph records the circumstances of a decision: the facts that were true at that moment, their sources, the policy version, the person who decided and the reasons. The first tells you what is connected to what. The second tells you what you knew, and why you acted.

  • The knowledge graph supplies the entities and facts to the context graph. The context graph adds when each fact held, where it came from and what was decided, and assembles the prepared case. The prepared case goes to a person, who decides.
The knowledge graph says what is connected; the context graph says what held on the day and what was decided.

A 2021 ACM Computing Surveys paper by Aidan Hogan and colleagues admits the definition of a knowledge graph "remains contentious". It settles on a broad version, a knowledge graph as "a graph of data intended to accumulate and convey knowledge of the real world, whose nodes represent entities of interest and whose edges represent relations between these entities." The same survey uses the word context in a precise way. "By context we herein refer to the scope of truth, and thus talk about the context in which some data are held to be true."

That's the gap a context graph fills. Thoughtworks put the idea on its Technology Radar in April 2026 and defined a context graph as "a knowledge representation technique where decisions, policies, exceptions, precedents, evidence and outcomes are modeled as first-class connected nodes in a graph, structured for AI consumption." In a knowledge graph, a decision is at most a property on an edge. In a context graph, the decision is a node with its own links to evidence, policy and the person who made it.

The first figure shows how the two fit. The knowledge graph supplies the entities and facts to the context graph. The context graph adds when each fact held, where it came from and what was decided, and assembles the prepared case. The prepared case goes to a person, who decides.

Knowledge graph vs context graph: how do they compare side by side?

The table compares the two graphs and shows where graph databases and vector retrieval fit. Each row draws on the sources linked in this article.

Question Knowledge graph Context graph
What is it? A dataset of entities and relationships that describes a domain A record of decisions and the context each one used
What does it store? Entities, relationships, classes and rules Decisions, the facts used, sources, policy versions, exceptions, outcomes
How does it handle time? Usually holds what is true now; context is often implicit Each fact carries when it was valid and when it was recorded
Where did each fact come from? Optional; often not recorded per fact Required on every fact and every decision
Who writes to it? Data and knowledge teams, curated over time Agents and people, at the moment each decision is made
Which question does it answer? What is connected to what? What did we know, which rule applied, and who decided?
What can't it do alone? Say whether a fact was current or approved on a given day Say whether the decision was right; a person judges that
Which standards apply? W3C RDF, OWL, SPARQL, SHACL; ISO GQL for property graphs No standard defines it; W3C PROV and temporal tables cover parts
Where does a graph database fit? It stores and queries the knowledge graph It can store the context graph, but isn't required
Where does vector retrieval fit? It finds passages; the graph adds the links between them It finds similar past cases; the graph says which ones still apply

Time and provenance carry most of the difference. An agent that acts on a fact that expired last month makes a bad decision with full confidence.

What is a knowledge graph?

A knowledge graph is a graph of data in which nodes are things, such as companies, people, products or contracts, and edges are the relationships between them. Google launched its Knowledge Graph in May 2012 and described it as a model of "real-world entities and their relationships to one another: things, not strings."

Most knowledge graphs sit on one of two data models. W3C's RDF stores facts as subject, predicate and object triples, and RDF 1.1 has been a W3C Recommendation since 2014. RDF 1.2, which allows a triple as the object of another triple so a graph can describe a statement, such as who made it and when, is still a Candidate Recommendation Draft dated 16 November 2026. Property graphs attach labels and property-value pairs to both nodes and edges, which suits operational data such as payments or contracts. ISO published GQL, the query language for property graphs, as ISO/IEC 39075:2024 in April 2024.

Around RDF sit OWL 2 for ontologies (2012), SPARQL 1.1 for queries (2013) and SHACL for checking a graph against rules (2017). These standards are mature, and they mostly describe what's true, not when it was true or who relied on it. Knowledge graphs are good at stable facts and multi-step links, such as which subsidiary belongs to which parent, but a 2023 survey notes they are "difficult to construct and evolving by nature".

What is a context graph, and where did the term come from?

A context graph is a graph that records how decisions were made, with the facts and evidence each one used, the policy that applied, any exception, the person who approved it and the outcome. An agent retrieves from it what the decision in front of it needs, and a reviewer can replay a past decision later.

The term took off after a Foundation Capital essay in December 2025. It described the context graph as "a living record of decision traces stitched across entities and time so precedent becomes searchable." Its argument was that systems of record hold only the current state, so "You can't replay the state of the world at decision time, which means you can't audit the decision, learn from it, or use it as precedent." In January 2026 the same firm added: "Decisions have a half-life."

Forrester's Charles Betz called context graphs a convergence of older practice in April 2026 and warned that "Without governance, the context graph becomes a write-only log: everything goes in, nothing gets curated, and agents learn from stale precedents."

Three meanings in use

No standards body defines the term. Besides the decision-trace record above, IBM uses it for the structure of what goes into a model's context window, where "context is a subgraph which is selected and assembled into a prompt." DataHub uses it for a model of one organisation, arguing "The real difference is scope and grounding." This article uses the first.

At FluxForce we call the practice behind it context before decision. Before an agent prepares a recommendation, it assembles the dated, sourced facts and past decisions the case needs, and a person decides from that record.

Knowledge graph vs graph database: what's the difference?

A knowledge graph is data. A graph database is software that stores and queries graph data. A 2021 MIT technical report puts it plainly: "A knowledge graph is a certain kind of dataset, while a graph database system is a piece of software." It adds that "most applications of graph databases do not involve knowledge graphs" and that "one cannot be substituted for the other."

Knowledge graph Graph database
What it is A dataset with meaning: entities, relationships, often an ontology A storage and query engine for nodes and edges
Can it exist without the other? Yes, as RDF files or in a relational store Yes, holding fraud rings, networks or logs with no ontology
Who owns it Data and domain teams Platform and database teams

Which one do AI agents need: a knowledge graph, a context graph or RAG?

Most agents need retrieval first, a knowledge graph when questions cross several linked entities, and a context graph once their output feeds a decision someone will have to explain. The evidence on retrieval doesn't support a single winner.

A controlled comparison updated in November 2026 found "RAG and GraphRAG exhibit complementary strengths rather than a clear dominance." In that study, plain retrieval did well on single-hop fact questions and the graph approach did better on multi-hop reasoning. GraphRAG-Bench, a benchmark study revised in February 2026, reached the same split: "basic RAG is comparable to or outperforms GraphRAG in simple fact retrieval tasks that does not require complex reasoning across connected concepts."

More context isn't better context. Anthropic's 2025 guidance on context engineering says good practice means "finding the smallest possible set of high-signal tokens that maximize the likelihood of some desired outcome." A context graph helps choose that set, because it knows which facts are current.

How do a knowledge graph and context graph work together?

A knowledge graph and context graph work best in layers. The knowledge graph holds the entities and stable relationships. The context graph points into it and adds three things it usually lacks: when each fact was valid, where it came from, and which decisions used it.

  • Each source record produces a fact with its source attached. Each fact carries a valid-from and valid-to date and the time it was recorded, and the decision trace links to the facts it used. The decision trace lets a reviewer replay what the agent knew on the day.
Valid time, recorded time and source on every fact are what let a reviewer replay a decision.

Time comes first. Temporal databases separate "valid time", when a fact is true in the world, from "transaction time", when it was "committed to or recorded in the database", and SQL:2011 supports both. Thoughtworks describes the same idea for context graphs, which keep "temporal validity on every edge, so superseded facts are invalidated rather than overwritten."

Source comes second. W3C's PROV data model defines provenance as information "about entities, activities, and people involved in producing a piece of data or thing", used to judge "its quality, reliability or trustworthiness." For agents it's a security control too. OWASP's 2026 entry on memory poisoning lists source attribution on what goes into memory among its fixes.

The second figure shows the flow. Each source record produces a fact with its source attached. Each fact carries a valid-from and valid-to date and the time it was recorded, and the decision trace links to the facts it used. The decision trace lets a reviewer replay what the agent knew on the day.

In a case study in the 2026 agentic AI framework from Singapore's IMDA, an agent filling in security due diligence questionnaires gave inaccurate answers when its knowledge base held "Multiple versions of the same document, some of which had expired". The fix was a context graph built to ensure "only the most relevant (based on location, topic, etc.) and current documents (based on version, expiry date etc.) were used."

A procurement example: one supplier award, two graphs

Take a procurement team using an agent to prepare a supplier award recommendation. The knowledge graph knows the supplier, its parent, its owners, its open contracts and its past performance. It doesn't say which sourcing policy version applied on the day, which evaluation documents were current or who signed off.

  • The supplier knowledge graph feeds the context graph with the supplier, its owners and its contracts. The policy version in force on the day feeds the context graph. The evaluation evidence feeds the context graph with the scores and the documents behind them. The context graph assembles the case for the procurement lead, who decides. The procurement lead's decision and reasons are written to the decision record.
Context before decision: the agent assembles the dated, sourced case; the procurement lead decides and the reasons are kept.

The context graph holds that. The third figure shows how. The supplier knowledge graph feeds the context graph with the supplier, its owners and its contracts. The policy version in force on the day feeds the context graph. The evaluation evidence feeds the context graph with the scores and the documents behind them. The context graph assembles the case for the procurement lead, who decides. The procurement lead's decision and reasons are written to the decision record.

Public buyers must keep this kind of record, and private teams can use it as a benchmark. EU Directive 2014/24 requires a report with "the name of the successful tenderer and the reasons why its tender was selected", with the documentation kept for at least three years from award. The UK Procurement Act 2023 requires "such records as the authority considers sufficient to explain a material decision made for the purpose of awarding or entering into a public contract." The US Federal Acquisition Regulation says contract files must be "sufficient to constitute a complete history of the transaction", and contract records are generally kept "6 years after final payment."

Those rules ask for an explanation of a decision at a point in time, which is the context graph's job.

For the supplier data itself, our guides on vendor due diligence and supplier beneficial ownership verification cover what goes into the knowledge graph side.

Illustrative scenario: an expired policy

Illustrative scenario, not a customer result.

This case is made up to show the method. An agent prepares a supplier award under a sourcing policy replaced last month.

  1. The context graph shows the old policy expired.
  2. The agent flags the gap and cites the current version.
  3. It prepares the case with sources.
  4. The procurement lead decides.

What should an AI agent's decision record show an auditor?

An AI agent's decision record should let an auditor see which facts the agent used and when they were valid, where each fact came from, which policy and model version applied, what the agent recommended, and which person decided and why.

The EU AI Act requires high-risk AI systems to "technically allow for the automatic recording of events (logs) over the lifetime of the system", and deployers keep those logs for "at least six months". The person overseeing the system must be able to "disregard, override or reverse the output". After the 2026 AI omnibus, those high-risk duties apply from 2 December 2027 for Annex III systems and 2 August 2028 for Annex I systems. Most procurement agents aren't high-risk under the Act, so treat this as a benchmark rather than a legal duty.

The decision traces guide lists the fields to record, and the context graph pillar shows how to build the graph around them.

Who does what with the two graphs

The agent prepares; people judge and act.

ComponentResponsibilityBoundary
AgentAssembles dated, sourced facts.Never awards or rejects.
Procurement leadReviews the case.Decides and gives reasons.
Data ownersKeep the knowledge graph current.Own source quality.

A named person decides on every prepared case; the agent flags and recommends and never decides on its own.

How FluxForce approaches knowledge graphs and context graphs

FluxForce is the platform your departments run AI agents on. The agents investigate and prepare the work, a person makes the call, and every step leaves evidence an examiner can replay.

  • Take in passes the supplier data, policies and past decisions to understand. Understand passes one joined view of the entities and their dated facts to weigh. Weigh checks the case against the policy version in force and passes the gaps and reasons to prove. Prove keeps the evidence in tamper-evident form and passes the evidence record to report and learn.
Understand is where a knowledge graph helps; prove is where the context graph lives; the procurement lead decides.

The platform works in five public stages, take in, understand, weigh, prove, and report and learn, with governance controls and data protection on every step. The fourth figure shows the order. Take in passes the supplier data, policies and past decisions to understand. Understand passes one joined view of the entities and their dated facts to weigh. Weigh checks the case against the policy version in force and passes the gaps and reasons to prove. Prove keeps the evidence in tamper-evident form and passes the evidence record to report and learn. Report and learn sends the case to the procurement lead and records the decision.

Understand is where a knowledge graph helps, and prove is where the context graph lives. The agent gathers, flags, explains and recommends. It doesn't award, reject or pay a supplier; a person does.

The closest of our solutions is AI Model Governance, which keeps the model version history a context graph points to. On its page the record answers "Which model version made a decision, who approved that version, how it was validated and how it performed in production." "It covers the models behind our agents, and can register your own models for inventory and monitoring." See how AI Model Governance works.

On fit, our first app line is financial crime and compliance. AI agents that investigate AML, sanctions, fraud and KYC alerts and prepare the case. Your analyst makes the call, with evidence an examiner can replay. You decide how much each agent does on its own, and every one has a kill switch. Procurement work runs on the same platform in the same pattern, and we have no procurement customer results to point you to yet. A context graph also doesn't fix bad source data; if a register is wrong, the record will show exactly which wrong fact was used.

How to start

  1. Pick one decision type that someone already has to explain, such as supplier awards above a spend limit.
  2. List the facts that decision uses, with each one's source and how long it stays valid.
  3. Run an agent in shadow mode for a quarter, preparing the case and its record beside your team and changing nothing.
  4. Measure how often the record answers an auditor's question without a person digging through email.

Agentic AI and real-time decisioning covers why agents need the full record first, and the AI agents directory lists the agents on the platform.

Primary sources behind the comparison

Thoughtworks Radar (Apr 2026)

Context graph definition; temporal validity on every edge.

Assess ring; no longer on the current edition.

2026-12-04

MIT technical report (2021)

Knowledge graph is a dataset; graph database is software.

Data integration report.

2026-12-04

EU Directive 2014/24, Art 84

Award reasons and records kept three years.

EU public buyers only.

2026-12-04

Where AI Model Governance fits

AI Model Governance keeps which model version made a decision, who approved it and how it performed.

See how AI Model Governance works

Covers model versions, not your source data. No procurement customer results yet.

A first context graph test

  1. Pick one decision type.
  2. List its facts, sources and validity.
  3. Run the agent in shadow mode for a quarter.
MetricDefinitionDecision guardrail
Answerable audit questionsShare of auditor questions the record answers alone.Every gap goes to a person.
Key takeaways
  • A knowledge graph says what is connected.
  • A context graph says what held on the day.
  • Time and source are what separate them.
  • A graph database is software, not a graph.
  • The agent prepares; a person decides.

Conclusion

Knowledge graph vs context graph comes down to scope. The knowledge graph tells an agent what is connected; the context graph records what held on the day, where it came from and who decided. An agent that prepares decisions someone must later explain needs both.

Request the comparison table

Bring one decision type you have to explain. We'll go through the comparison with you row by row.
Get the comparison table

Frequently Asked Questions

A knowledge graph describes entities and their relationships as they stand. A context graph records decisions and the dated, sourced facts behind them, the policy that applied and who decided. Agents use the first to understand a case and the second to explain it.

No. A knowledge graph is a dataset, and a graph database is software that can store it. Most graph databases hold data that isn't a knowledge graph.

No. GraphRAG is a retrieval method in which a model builds a graph from documents and answers questions over it. Microsoft's 2024 paper reported gains on broad questions over datasets of about 1 million tokens. A context graph is a record of decisions with time and source on every fact.

No. A graph database makes multi-step queries easier, but decision traces can live in temporal tables or an event store, as long as every fact keeps its valid time, recorded time and source.

For single fact lookups, often yes. Benchmark studies revised in 2026 found plain retrieval matches or beats graph retrieval on simple questions and loses on multi-hop ones. Once an agent prepares a decision someone must explain, you also need the record a context graph keeps.

Not for decisions that matter. The agent assembles the record and recommends; a named person decides, and the record keeps their reasons.

About the author

Sahil Kataria

Founder and CEO of FluxForce

Sahil works on secure AI and financial technology for regulated industries. His engineering background spans identity verification, payment security and compliance automation. He has led teams across Africa, the United States, Europe and India.

At FluxForce.ai, his focus is on explainable AI and auditable financial workflows. He writes for banking and compliance teams about the practical decisions behind these systems: how to assess risk, keep controls visible and introduce automation without losing accountability.

View Sahil Kataria author profile →
What is a context graph?

The pillar on building one.

Decision traces for AI agents

The fields to record.

Context engineering for AI agents

What goes into the model's window.