Skip to content

Commit 3d524bc

Browse files
stubborncoderclaude
andcommitted
Add deterministic pipeline principle to invoice verification post
Explains that layers 1-2 (3-way match, issue detection) are pure code with no model involved, and that embedding the LLM only at steps that need judgment is how you keep finance pipelines reliable. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f3d708b commit 3d524bc

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

src/pages/blog/invoice-verification-agent.astro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,23 @@ import BaseLayout from '../../layouts/BaseLayout.astro';
9797
</div>
9898
</div>
9999

100+
<p class="reveal">
101+
Notice that layers 1 and 2 are entirely deterministic. No model involved.
102+
The 3-way match is arithmetic, issue detection is rules against structured
103+
data. You don't need an LLM to check whether billed quantity exceeds received
104+
quantity, and you really don't want one: that's exactly the kind of step where
105+
a hallucination would be catastrophic. The model only kicks in at layer 3,
106+
where you actually need reasoning: weighing materiality, classifying
107+
responsibility, picking the right action from context.
108+
</p>
109+
110+
<p class="reveal">
111+
This is a general principle for building agents in finance. Embed the model
112+
in a deterministic pipeline. Let code handle what code handles well, and
113+
reserve inference for the steps that genuinely need judgment. The pipeline
114+
stays reliable. The model does what it's good at.
115+
</p>
116+
100117
<p class="reveal">
101118
Layer three is where it gets interesting. A price mismatch is the
102119
<em>vendor's fault</em>, so we ask them to fix it. A cost center blowing its

0 commit comments

Comments
 (0)