Nanonets Platform:Context Graph

Logic engine for complex processes

Context Graphs turn your business rules into a machine-readable structure so exceptions and dependencies are handled reliably.

CREDIT ≤ $50KCONTRACT PRICEVOLUME −10%DELIVERY < 5D?+ RUSH SHIP $2K

The problem

Rules collapse when they depend on each other.

As instructions stack up, frontier models silently drop constraints, double-count them, or apply them in the wrong order. Agents completely break when rules conditionally activate or override one another.

Watch the same prompt run two ways. Toggle between a flat context and a context graph.

prompt: confirm this PO, 600 units, contract pricing, deliver in 3 days, credit limit $50k

01Resolve credit rule: order total must stay under $50k.
02Apply contract pricing and 10% volume discount (600 units).
03Delivery in 3 days, so add a rush-ship surcharge (+$2k).
04Final total: $51.2k. Credit limit silently exceeded.
The flat model resolves the credit limit, then quietly blows past it two steps later when the rush-ship surcharge fires.

How it works

Four steps, from raw inputs to a verified result.

01Decompose the rules

Parse your documents, policies, and instructions into explicit rules, conditional branches, and approval gates. Every constraint becomes a node, whether it's a credit limit in order management, a GL rule in AP, or a payer requirement in RCM.

Process: PO to Confirmed Order
CREDIT ≤ $50KGLOBALCONTRACT PRICEVOLUME −10%DELIVERY < 5 DAYS?+ RUSH SHIP $2KDISCOUNT > 15%?STACKS WITHACTIVATESRE-CHECKS CREDITTRIGGERSCREDIT LIMIT RE-CHECKED

02Map the logic between rules

Draw edges between rules that activate, override, or narrow each other. A surcharge that re-checks a limit, a discount that trips an approval gate, a denial code that changes the next step.

Process: PO to Confirmed Order
CREDIT ≤ $50KGLOBALCONTRACT PRICEVOLUME −10%DELIVERY < 5 DAYS?+ RUSH SHIP $2KDISCOUNT > 15%?STACKS WITHACTIVATESRE-CHECKS CREDITTRIGGERSCREDIT LIMIT RE-CHECKED

03Build graph-guided outputs

This is where the agent takes action. It builds the result step-by-step with active constraints bound to each part, and global rules stay attached as conditions stack up, so they never silently drop midway.

Process: PO to Confirmed Order
CREDIT ≤ $50KGLOBALCONTRACT PRICEVOLUME −10%DELIVERY < 5 DAYS?+ RUSH SHIP $2KDISCOUNT > 15%?STACKS WITHACTIVATESRE-CHECKS CREDITTRIGGERSCREDIT LIMIT RE-CHECKED

04Check results against the graph

Re-check the finished output against every node and edge. When a late step violates a constraint, the conflict is caught and routed for review before anything is finalized.

Process: PO to Confirmed Order
CREDIT ≤ $50KGLOBALCONTRACT PRICEVOLUME −10%DELIVERY < 5 DAYS?+ RUSH SHIP $2KDISCOUNT > 15%?STACKS WITHACTIVATESRE-CHECKS CREDITTRIGGERSCREDIT LIMIT RE-CHECKED

Complex Rules Benchmark

Nanonets is the best model for following complex business rules.

The ComplexConstraints benchmark measures performance with densely interlocking rules, where constraints activate, override, and contradict one another. Nanonets context graph engine leads the strongest models.

Read the ComplexConstraints benchmark
Task pass rate · top 3 models
1Nanonets Context Graph45.0%
2Gemini 3.1 Pro40.4%
3GPT 5.538.7%

Percentage of prompts fully solved on ComplexConstraints. Higher is better.

90.0%
Rubric pass rate

Individual constraints satisfied across 1,559 evaluation items in the benchmark.

How it compares

Nanonets vs alternatives

Constraint handling
Nanonets Context Graph
Every constraint is a node; every dependency is an explicit edge.
In-house build
Hand-written if/else rules that grow brittle as policies stack up.
Generic agent platform
Everything in one flat prompt; constraints get silently dropped.
Conditional & overriding rules
Nanonets Context Graph
Activate, override, narrow, and contradict edges modeled directly.
In-house build
Each interaction coded by hand, easy to miss a branch.
Generic agent platform
Model double-counts or mis-applies rules that activate each other.
Verification
Nanonets Context Graph
Answer re-checked against the graph; violations repaired before output.
In-house build
Manual QA and spot checks after the fact.
Generic agent platform
Hope the model got it right; no structural check.
Maintenance
Nanonets Context Graph
Edit the graph; dependencies propagate automatically.
In-house build
Rules rot as policy changes; every edit is an eng ticket.
Generic agent platform
Re-prompt and pray; regressions are invisible.
Accuracy on entangled constraints
Nanonets Context Graph
45.0% task pass, 90.0% rubric pass on ComplexConstraints.
In-house build
Only as good as the branches you remembered to write.
Generic agent platform
40.4% task pass rate (strongest public model).
Time to production
Nanonets Context Graph
Deploy on day one; reliability scales with complexity.
In-house build
Weeks of engineering per ruleset.
Generic agent platform
Fast to start, unreliable once rules interlock.

See it run on your process, with your documents.

Start free. No credit card. Or talk to our team about your workflow.