Illustrative interface and flow

Architecture

contract graph

Question "If this subcontractor fails, who is affected?"

  1. Subcontractor

    Facilities maintenance

  2. Contract

    Clause 4.2, step-in rights

  3. Site

    Serves three buildings

  4. Client

    Service level at risk

Every hop cites the clause or record it relies on, so the chain can be checked.

The contract graph interface Illustrative interface
  1. Contracts and spreadsheet reconciled

  2. Clients, sites, subcontractors linked in Neo4j

  3. Question asked in plain language

  4. Answer follows the chain, hop by hop, citing each clause

Contract graph: how it works

At a glance

  • Where: a facilities and property services business managing contracts across many sites and subcontractors.
  • What we’d build: a Neo4j knowledge graph of clients, sites, contracts and subcontractors, queried through hybrid retrieval.
  • What changed: an impact question that meant real digging becomes a conversation with a checkable chain behind it.

The situation

A business like this runs on a genuinely large web of agreements: client contracts, the subcontractors who actually deliver parts of each one, supplier terms, service levels, renewal dates. All of it exists somewhere, typically in a contracts spreadsheet that different people update at different times, and in the underlying documents themselves, but with nothing connecting the two. A single site might sit under one client contract, be serviced by two subcontractors, and depend on a supplier agreement renewing on an entirely different cycle, with no single document showing all three at once. So when a subcontractor’s finances look shaky, or a supplier misses a delivery, the question that matters, “if this fails, which clients, sites and service levels are affected?”, falls to someone reading contracts and cross-checking the spreadsheet by hand, then weighing their own working against whatever a colleague happens to remember about a similar case. By the time an answer exists, the moment for a calm decision has often passed, and the team is reacting to a problem rather than managing one.

What we’d build

For a business in this position, we would build a knowledge graph in Neo4j linking every client, site, contract, obligation, subcontractor and renewal date, extracted from the underlying documents and reconciled against the existing contracts spreadsheet rather than replacing it. Reconciliation would be most of the real work: the same subcontractor tends to appear under slightly different names across different documents, and matching those together properly is what makes a graph like this trustworthy rather than merely comprehensive. On top of the graph we’d connect an assistant using hybrid retrieval: it finds the clause a question is actually about first, using standard document search, and then follows the graph’s relationships outward from there to everything connected to it, which is the pattern generally called GraphRAG.

How we’d approach adoption

Nobody would need to change how they read a contract; what changes is where they go to ask a question about one. The team’s habit is usually to pull the folder and start reading, so the adjustment is learning to ask the graph-backed assistant first and use the folder to verify, rather than the other way round. That habit tends to form once people see an answer come back with the actual clauses cited, since a cited clause is quick to check against the source document. We’d expect a cautious stretch early on, where people double-check the assistant’s chain against the folder before trusting it outright; that’s a sensible instinct, and it should relax on its own once the chain keeps holding up. The harder adjustment is operational rather than behavioural: someone has to own feeding renewals, terminations and new subcontractor agreements back into the graph, since an impact answer is only as good as how current the underlying data is, and that ownership needs to be a named person’s job, not everyone’s vague responsibility.

What would change

Before, an impact question means someone spending real time reading contracts and cross-referencing a spreadsheet, by which point events have often moved on. After, the same question becomes a short conversation, with the assistant naming the affected clients, sites and service levels and showing the specific chain of contracts and clauses that connects the failing subcontractor to each one. Nobody has to take the answer on trust, because every hop in the chain cites the document it comes from, so a person can check the reasoning before deciding what to do. Risk conversations that used to start with “let me go and find out” would instead start with the answer already in front of the room, freeing the discussion for what to actually do about it, whether that’s tightening a service level, lining up a backup subcontractor, or deciding the risk is small enough to leave alone.

The 30-second version

Example engagement

What would change, at a glance

Before

Before, an impact question means someone spending real time reading contracts and cross-referencing a spreadsheet, by which point events have often moved on.

After

After, the same question becomes a short conversation, with the assistant naming the affected clients, sites and service levels and showing the specific chain of contracts and clauses that connects the failing subcontractor to each one. Nobody has to take the answer on trust, because every hop in the chain cites the document it comes from, so a person can check the reasoning before deciding what to do. Risk conversations that used to start with "let me go and find out" would instead start with the answer already in front of the room, freeing the discussion for what to actually do about it, whether that's tightening a service level, lining up a backup subcontractor, or deciding the risk is small enough to leave alone.

What it doesn't do

  • It doesn't decide what to do about a risk it surfaces; it shows the chain of contracts and clauses so a person can judge the impact and act on it.
  • It doesn't stay accurate by itself. Renewals, terminations and new subcontractors still need to be fed back into the graph as they happen.

What we'd watch for

  • Resolving duplicate supplier names across documents would likely matter more to the final answer's usefulness than the graph's structure.
  • Showing the chain of clauses behind an answer, not just the answer, is usually what makes people willing to act on it.

Questions this answers

Does the graph replace our contracts spreadsheet?

No. It's reconciled against the spreadsheet and documents, not instead of them, so the two stay consistent as contracts are added or renewed.

What is a knowledge graph, in this context?

A knowledge graph here is clients, sites, contracts, obligations and subcontractors stored as connected records, so a question about impact can follow those connections rather than searching document by document.

Why not just search the contracts with a chatbot?

Plain document search is good at finding the right clause. It struggles with 'who else is affected', which depends on following relationships between documents, which is what GraphRAG adds.

How current does the graph stay?

As current as the last reconciliation against the contracts spreadsheet and document set. We agree a refresh rhythm as part of the handover, since a stale graph is worse than none.

  • Example engagement: for a research and insight consultancy whose analysts paste exports into chat tools to get help with analysis, we'd connect their AI assistant to the dbt Semantic Layer and warehouse read-only, through each analyst's own permissions, with free-form SQL limited to a sandbox and every query logged.

    Example engagement

Next case

Example engagement Membership organisation / charity One view of each member, finally Read the case