Explore workflow optimisation
From stronger checks
to better workflows.
This separate JavaScript demo shows the next part of the journey: compare task designs against shared checks, then run a selected configuration.
Authored sample outputs, checked by the real runtime in your browser. No live model calls or measured savings.
Your task
Invoice fields, ready for your application.
Source-checked reference
Versioned quality checks
Decide what must stay true.
- Supplier, invoice and currencyCritical
- Every line item and totalCritical
- Amounts reconcileCritical
- Note formattingMinor
Use your existing checks, or establish them from reviewed examples. Every candidate faces the same frozen rules.
How are new documents checked?
This comparison uses reviewed reference answers. New documents need source verification or human review. Matching a schema or balancing totals alone cannot establish correctness.
Can the checks improve too?
Compare revised rules against human-labelled examples. Check false accepts and false rejections before approving a new version.
The alternatives
What changes. What still passes.
Compare three approaches on the sample, then inspect their outputs.
| Approach | Accepted | Model attempts | Fallbacks | Cost / accepted | Inspect |
|---|
What this shows
Cost and timing details
Inspect the evidence
What passed. What failed. Why.
Compare three approaches on the sample, then inspect their outputs.
SOURCE
Reference output
Workflow output
Attempts, rejected outputs and fallback
The reusable output
A workflow you can call again.
Choose an approach to run it here and download its configuration, checks and runtime.
Call the exported workflow
import { extractInvoice } from './workflow.mjs';
const result = await extractInvoice(sourceText, {
invokeModel, // Your model provider adapter
verifyOutput, // Source verification for new inputs
});
if (result.assessment.accepted) {
saveInvoice(result.output);
} else {
queueForReview(result);
}Use your own save and review handlers. The provider adapter and source verifier run on your server.
From comparison to your code.
Download the exact prompts, models, retry and fallback settings, frozen comparison checks and execution runtime.
Sample model IDs require a real provider adapter before use with your data.
A new model should start a new comparison.
Change the sample candidate and rerun the same examples. Inspect the regression before choosing again.
Already have a run? Open its JSON record to inspect real outputs and costs locally. Imported records are supplied evidence, not independently verified by Keemlo. Nothing you open here is uploaded.
The JavaScript workflow kit
Try the workflow
behind the demo.
The JavaScript kit powers the invoice demo. It compares configurations and runs your selection locally. Use Keemlo’s SDK for your first repository review.
What you need to connect a real workflow
Node.js 22+, extracted document text and one output schema. Use your provider adapter or the included OpenRouter adapter. Your server holds the credentials.
Reviewed answers score the comparison. Running new inputs also needs a source verifier or human review, with its cost and failure modes measured. The kit does not supply a universal production checker.
node sdk/quickstart.mjsnode sdk/prepare.mjs \
--setup /private/setup.json \
--examples /private/examples.jsonl \
--out /private/ready
node /private/ready/compare.mjsPrepare three configurations from your current setup and reviewed examples. Check the model-call ceiling before connecting a provider. Preparation makes no model calls.