Skip to content

Benchmark

Every count, every miss, and how sure we can be.

We give the AI documents a person has already transcribed and score its raw reading field by field, before anyone corrects it. Every figure here comes from one recorded run, which you can reproduce with one command.

Provisional: read these as a regression floor, not as our accuracy.

  • 15 documents from 2 pharmacies. All 15 were used while writing the AI's instructions, so the scores are likely higher than on documents it has never seen.
  • Each reference was transcribed by one person. The full protocol needs two independent transcriptions per document; 0 of 15 have that so far.
  • No held-out result exists yet. We are collecting 300+ documents with written permission from several pharmacies. 40% of them will be locked away before anyone looks at the results.

98.5%

of checked values matched

398 of 404 · 95% range 97.3%–99.5%

2 of 224

values filled in where the document had none

0.9% · 95% range 0.0%–1.9%

10 of 15

documents with every value right

95% range 41.7%–84.8%

34 s

median time to read a document

90% done within 78 s

Run of 2026-11-18 · model gpt-6-astra · instructions receiving-prompts-v4 · split 00daa95027a9 · the AI's instructions have not changed since this run.

Results

What was measured.

Each range is a 95% interval. A narrow range means the number is pinned down; a wide one means we need more documents.

MeasureResult95% rangeCount
Values read correctly98.5%97.3%–99.5%398 / 404
Values filled in where none was printed (lower is better)0.9%0.0%–1.9%2 / 224
Missing values correctly left blank99.1%98.1%–100.0%222 / 224
Product lines found100.0%100.0%–100.0%45 / 45
Document type recognised100.0%51.0%–100.0%4 / 4
Documents with every value right66.7%41.7%–84.8%10 / 15
Extra product lines invented0

Document type is only scored where the reference records it (4 documents). That is why its range is so wide.

Field by field

Supplier name77%

10 / 13

Date93%

14 / 15

Unit94%

29 / 31

Batch100%

43 / 43

Quantity100%

45 / 45

Currency100%

15 / 15

Discount total100%

11 / 11

Expiry100%

45 / 45

Free quantity100%

45 / 45

Document number100%

14 / 14

Line total100%

44 / 44

Subtotal100%

10 / 10

Tax total100%

15 / 15

Total100%

15 / 15

Unit price100%

43 / 43

By document type

Till receipt11 docs98.3%
Supplier invoice3 docs98.8%
Order form1 doc100.0%

By writing

Printed11 docs98.3%
Handwritten3 docs98.8%
Mixed1 doc100.0%

By supplier (anonymised)

Supplier A11 docs98.3%
Supplier B1 doc97.8%
Supplier C1 doc100.0%
Supplier D1 doc100.0%
Supplier E1 doc100.0%

Groups with one document can't support a comparison. They are shown so nothing is hidden. We haven't yet recorded photo quality for these documents.

Every miss

6 misses across 15 documents, all listed.

We publish where each miss happened and what kind it was, but not the values: they are other businesses' prices and names. The kinds matter. A blank is easy for a reviewer to spot. A wrong value that looks plausible is the error we work hardest to prevent.

Document 1

45 / 46

Supplier invoice · handwritten · Supplier B · 77 s

  • Dateleft blank

Document 2

25 / 25

Supplier invoice · handwritten · Supplier C · 51 s

Every checked value matched.

Document 3

17 / 17

Supplier invoice · handwritten · Supplier D · 42 s

Every checked value matched.

Document 4

17 / 17

Order form · mixed · Supplier E · 126 s

Every checked value matched.

Document 5

82 / 83

Till receipt · printed · Supplier A · 79 s

  • line 6 · Unitfilled in, none printed

Document 6

29 / 29

Till receipt · printed · Supplier A · 34 s

Every checked value matched.

Document 7

15 / 15

Till receipt · printed · Supplier A · 21 s

Every checked value matched.

Document 8

20 / 22

Till receipt · printed · Supplier A · 29 s

  • Supplier nameleft blank
  • line 1 · Unitfilled in, none printed

Document 9

43 / 43

Till receipt · printed · Supplier A · 45 s

Every checked value matched.

Document 10

15 / 15

Till receipt · printed · Supplier A · 22 s

Every checked value matched.

Document 11

22 / 22

Till receipt · printed · Supplier A · 27 s

Every checked value matched.

Document 12

15 / 15

Till receipt · printed · Supplier A · 23 s

Every checked value matched.

Document 13

14 / 15

Till receipt · printed · Supplier A · 22 s

  • Supplier nameleft blank

Document 14

28 / 29

Till receipt · printed · Supplier A · 35 s

  • Supplier nameleft blank

Document 15

15 / 15

Till receipt · printed · Supplier A · 24 s

Every checked value matched.

Model comparison

Why MediPacer uses gpt-6-astra.

We ran the same documents through three AI models with identical instructions and safety settings. Differences are measured document by document. Costs come from each run's actual token use at Azure's published prices, retrieved 2026-11-18.

ModelValues rightDifference (95% range)Wrong valuesLeft blankAll-correct docsMedian timeCost / document
gpt-6-astrain use98.5%reference0410 / 1534 s$0.170
gpt-6.1-sol97.8%−0.7 pts (-2.8 to 0.0)259 / 1534 s$0.032
gpt-6-luna94.1%−4.4 pts (-9.3 to -0.8)1457 / 1529 s$0.0019

The decision

The cheaper models scored close on some measures, but they produced wrong values that look plausible, like a misread date or quantity, where the model in use left a blank for the reviewer. The cheapest dropped digits from handwritten amounts. We stay with the current model and will repeat this comparison on the held-out set before switching.

Cost to read one document

MediPacer records the tokens for every reading and shows the cost per document in each invoice's processing history. A naira figure appears once the operator sets the exchange rate.

Method

The rules this benchmark follows.

A locked held-out set

When documents arrive they are split once: 60% for tuning, 40% held out. The split follows a fixed seeded rule, spread across suppliers, handwriting and photo quality. It is checksummed, and so is every document. A changed split or a swapped file stops every benchmark command. We never change the AI's instructions because of a held-out result, and every held-out run is logged.

Two transcribers, one referee

Two people transcribe each document independently, and neither can see the other's work. A third person settles every disagreement against the paper and cannot referee their own transcription. We publish how often the two transcribers agreed. That agreement limits how precise any accuracy figure can be.

Raw output, strict scoring

We score what the AI returned after MediPacer's fixed checks, which is exactly what a reviewer sees. Numbers are compared as numbers and units by meaning (“ctn” = carton). Batch numbers must match exactly, so a missing leading zero is wrong. A value filled in where the reference says it's missing is counted separately as invented.

Honest intervals

Errors on the same photo are related, so for field-level rates we resample whole documents (2,000 draws, fixed seed) rather than single fields. Per-document rates use the Wilson interval. Model differences are paired document by document.

Failures count

A document the AI fails to read, or that the app rejects, scores zero on every value it should have read. Leaving it out would flatter the result.

Regressions can't ship

Changing the AI's instructions requires a new recorded benchmark. The build fails if accuracy drops more than 1 point below the accepted baseline, or if invented values rise.

Progress towards the full benchmark

  • Documents with written permission15 / 300
  • Held-out documents0 / 120
  • References transcribed twice0 / 300

Reproduce every number

The documents stay private because they belong to pharmacies and their suppliers. With access to them, the published figures come from:

npm run bench -- --set tuning
npm run bench:compare -- <runs…>
npm run bench:publish -- <run>

An outside reviewer will check the protocol before the held-out result is published. We'll name them here.

Earlier, document-by-document write-ups are on the evaluation page. Want to test it on your own suppliers' invoices? Request a pilot →