Trying Out Document Value Reconciliation with OpenAI's Decisions API and Comparing It to Jev and Clef

Trying Out Document Value Reconciliation with OpenAI's Decisions API and Comparing It to Jev and Clef

I tested whether OpenAI's Decisions API can detect notation variations in document matching, such as invoices against purchase orders, and compared it with Jev and Clef on accuracy, cost and language support.
2026.10.12

This page has been translated by machine translation. View original

Hello, I'm Keima.

When matching documents such as invoices against purchase orders, notation variations often occur where values that look the same to a person do not match as strings, such as 2026/09/12 and 2026年9月12日, or 株式会社サンプル商事 and サンプル商事株式会社.
In Trying Cloudflare's Clef for document value matching and comparing it with Jev | DevelopersIO, I tested this judgment of "do they refer to the same value?" with TypeSafe's Jev and Cloudflare's Clef. Jev judged 96 of 107 cases correctly, while clef's correct answers dropped to 76 when the prompt was written in Japanese.

In this article, I passed the same 107 cases and the same prompts to OpenAI's Decisions API (model: gpt-6-luna) and compared it with Jev and Clef.

1. Test Conditions

  • Data: the same 107 cases as the article above (10 categories including dates, amounts, counterparty names, addresses, OCR misreads, and missing values). All values are fictional, and Japanese and English notations are mixed

  • Judgment axes: two questions asked as predicate (a question that returns the probability of yes): exact (are they completely identical as strings?) and semantic (do they refer to the same value even if written differently?)

  • Prompt language: two patterns, with the instructions given to the model in English and in Japanese. The values A and B to be matched are the same in both

  • Threshold: 0.8. If the probability is 0.8 or higher, it is judged as a "match"

  • Comparison targets: results from Jev (September 20, 2026, jev-1.13.0) and Clef (October 4, 2026, clef and clef-flash)

The request to the Decisions API looks like this (only the semantic question is shown).
The comments are for explanation and are not included in the JSON actually sent.

{
  "model": "gpt-6-luna",
  // the two values to match (the invoice value and the purchase order value)
  "input": "{\"value_a\": \"2026/09/12\", \"value_b\": \"2026年9月12日\"}",
  "questions": [{
    "type": "predicate", // a yes/no question. Returns the probability of yes
    "name": "semantic",
    // Do value_a and value_b refer to the same value even if written differently? (Matching the same field in two business documents. If one is line items and the other is a total, add up the line items and compare)
    // True when: only the format, language, unit, or abbreviation differs and the value is the same, or the sum of the line items matches
    // False when: the value itself differs, one side has no value, or the sum of the line items does not match
    "instructions": "Do value_a and value_b refer to the same underlying value, even when they are written differently? ... \nTrue when: Only the format, language, unit, or abbreviation differs ...\nFalse when: The underlying value itself differs, one side has no value, ..."
  }]
}

With Jev and Clef, the true and false conditions were passed separately in criteria, but the Decisions API predicate has no corresponding field, so I appended them to the end of instructions (Decisions API | OpenAI API).

2. Results

2.1 Overall

The table below shows the results tallied by judging a case as a "match" when the probability output by each model is 0.8 or higher.
The semantic correct count is tallied over the 106 cases for which the correct answer is determined.

Model / prompt language exact correct semantic correct Execution time (median)
Decisions API (English prompt) 106/107 90/106 0.270 s (270ms)
Decisions API (Japanese prompt) 106/107 91/106 0.264 s (264ms)
Jev (English prompt) 106/107 96/106 0.709 s (709ms)
Jev (Japanese prompt) 105/107 97/106 0.686 s (686ms)
clef (English prompt) 107/107 91/106 0.499 s (499ms)
clef (Japanese prompt) 105/107 76/106 0.468 s (468ms)
clef-flash (English prompt) 102/107 57/106 0.310 s (310ms)

The Decisions API judged 106 cases correctly on exact, the same as Jev, and on semantic it got 90 (English) and 91 (Japanese) correct, roughly on par with clef (English).
Unlike clef, the Decisions API did not lose accuracy when the prompt was written in Japanese.

The cases the Decisions API missed at the 0.8 threshold showed the following two tendencies.

  • Missing values: for cases where one or both values were empty, the Decisions API also got the judgment wrong, just like Jev and Clef

  • OCR-garbled strings: even for completely identical strings such as DOC-O0O12345 on both sides (1-7) and INVO1CE on both sides (7-7), the probability stayed at 0.66 to 0.77. For clean identical strings (such as 1-1) it gave 0.91 or higher

2.2 Cost

Model / prompt language Input tokens (average per case) Cost (107 cases, at $1 = ¥150)
Decisions API (English prompt) 496 $0.0053 (about ¥0.80)
Decisions API (Japanese prompt) 557 $0.0060 (about ¥0.89)
Jev (English prompt) 509 $0.0023 (about ¥0.34)
clef (English prompt) 364 $0.0093 (about ¥1.40)
clef-flash (English prompt) 364 $0.0035 (about ¥0.53)

The Decisions API cost about 60% of clef and about 2.3 times Jev.

2.3 Probabilities for all cases

`semantic` probabilities for the 107 cases (click to expand)

Cases judged incorrectly at the 0.8 threshold are shown in bold.
↵ represents a line break and ⇥ represents a tab.

Exact match

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
1-1 INV-2026-0912 INV-2026-0912 Match 0.97 0.94 0.98 0.89
1-2 1,250.00 1,250.00 Match 0.96 0.94 0.98 0.93
1-3 ACME TRADING CO., LTD. ACME TRADING CO., LTD. Match 0.97 0.93 0.98 0.87
1-4 SEAMLESS CARBON STEEL PIPE, OUTER DIAMETER 50MM, WALL THICKNESS 3.5MM, LENGTH 6000MM, SURFACE BLACK PAINTED, PACKED IN WOODEN CRATE, MANUFACTURED UNDER SPECIFICATION JIS G3454 SGP, LOT CONTROLLED, INSPECTION CERTIFICATE ISSUED BY MILL, ORIGIN JAPAN SEAMLESS CARBON STEEL PIPE, OUTER DIAMETER 50MM, WALL THICKNESS 3.5MM, LENGTH 6000MM, SURFACE BLACK PAINTED, PACKED IN WOODEN CRATE, MANUFACTURED UNDER SPECIFICATION JIS G3454 SGP, LOT CONTROLLED, INSPECTION CERTIFICATE ISSUED BY MILL, ORIGIN JAPAN Match 1.00 0.97 0.99 0.79
1-5 STEEL PIPE↵SEAMLESS↵50MM STEEL PIPE↵SEAMLESS↵50MM Match 1.00 0.98 0.98 0.86
1-6 ACME TRADING ACME TRADING Match 0.95 0.95 0.96 0.87
1-7 DOC-O0O12345 DOC-O0O12345 Match 0.75 0.71 0.98 0.89
1-8 1,250.00 1,250.00 Match 0.91 0.94 0.98 0.91
1-9 Sep 12, 2026 Sep 12, 2026 Match 0.95 0.91 0.98 0.89

Dates

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
2-1 2026/09/12 2026年9月12日 Match 0.94 0.93 0.98 0.97
2-2 12-SEP-2026 2026-09-12 Match 0.97 0.99 0.98 0.97
2-3 Sep 12, 2026 12/09/2026 Match 0.72 0.52 0.71 0.77
2-4 令和8年9月12日 2026-09-12 Match 0.93 0.98 0.94 0.89
2-5 03/04/2026 2026-04-03 Match 0.54 0.60 0.77 0.67
2-6 03/04/2026 2026-03-04 Undetermined 0.84 0.75 0.94 0.97
2-7 2026/09/12 2026/09/13 Mismatch 0.47 0.33 0.03 0.04
2-8 2026/09/12 2025/09/12 Mismatch 0.38 0.05 0.03 0.03
2-9 2026年9月12日 2026年9月12日 Match 0.96 0.91 0.98 0.90
2-10 12-SEP-2026 12-SEP-2026 Match 1.00 0.99 0.98 0.90
2-11 令和8年9月12日 令和8年9月12日 Match 0.95 0.96 0.99 0.89
2-12 2026/09/12 2026/12/09 Mismatch 0.34 0.22 0.02 0.03
2-13 令和8年9月12日 令和7年9月12日 Mismatch 0.09 0.04 0.02 0.05

Numbers and amounts

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
3-1 1,250.00 1250 Match 0.93 0.99 0.97 0.95
3-2 USD 1,250.00 $1,250.00 Match 0.97 0.91 0.98 0.97
3-3 1.250,00 1,250.00 Match 0.96 0.86 0.89 0.80
3-4 1250.0 1250.5 Mismatch 0.22 0.08 0.08 0.05
3-5 12,500 1,250 Mismatch 0.49 0.14 0.06 0.19
3-6 1,250.00 1,250.00 USD Mismatch 0.95 0.97 0.96 0.97
3-7 USD 1,250 JPY 1,250 Mismatch 0.08 0.21 0.05 0.13
3-8 500 KGS 500.000 KG Match 0.90 0.88 0.96 0.90
3-9 500 KG 1102.31 LBS Match 0.87 0.97 0.96 0.84
3-10 10 CTNS 10 CARTONS Match 0.97 0.98 0.98 0.94
3-11 USD 1,250.00 USD 1,250.00 Match 0.97 0.92 0.99 0.90
3-12 1.250,00 1.250,00 Match 0.99 0.87 0.98 0.91
3-13 500 KGS 500 KGS Match 0.91 0.99 0.98 0.91
3-14 1,250.00 USD 1,250.00 USD Match 0.97 1.00 0.99 0.90
3-15 1,250.00 1,205.00 Mismatch 0.35 0.09 0.05 0.04
3-16 500 KG 500 LBS Mismatch 0.33 0.43 0.03 0.19
3-17 10 CTNS 10 PALLETS Mismatch 0.18 0.12 0.16 0.38
3-18 500.00 KG 50.00 KG Mismatch 0.38 0.08 0.03 0.03

Counterparty names

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
4-1 ACME CO., LTD. Acme Co., Ltd. Match 0.97 0.99 0.94 0.96
4-2 ACME CO.,LTD. ACME CO., LTD. Match 0.99 0.92 0.95 0.94
4-3 GLOBEX CORPORATION GLOBEX CORP. Match 0.97 0.99 0.94 0.97
4-4 株式会社サンプル商事 サンプル商事株式会社 Match 0.79 0.45 0.75 0.68
4-5 ACME ACME Match 0.87 0.87 0.94 0.92
4-6 ACME TRADING CO. ACNE TRADING CO. Mismatch 0.34 0.10 0.18 0.28
4-7 Initech Inc. Initech Incorporated Match 0.96 0.87 0.93 0.94
4-8 株式会社サンプル商事 株式会社サンプル商事 Match 1.00 0.99 0.98 0.86
4-9 ACME ACME Match 0.90 0.92 0.94 0.88
4-10 GLOBEX CORP. GLOBEX CORP. Match 0.96 0.96 0.98 0.88
4-11 Initech Incorporated Initech Incorporated Match 0.95 0.98 0.98 0.87
4-12 ACME TRADING CO., LTD. ACME SHIPPING CO., LTD. Mismatch 0.06 0.13 0.11 0.13
4-13 GLOBEX CORP. GLOBEX HOLDINGS CORP. Mismatch 0.44 0.30 0.29 0.42
4-14 株式会社サンプル商事 株式会社サンプル物産 Mismatch 0.23 0.10 0.11 0.11
4-15 ACME CO., LTD. ACME CO., LTD. (Taiwan Branch) Mismatch 0.33 0.39 0.25 0.41

Addresses

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
5-1 TOKYO, JAPAN Tokyo Japan Match 0.94 0.94 0.97 0.95
5-2 JP JAPAN Match 0.91 0.83 0.96 0.97
5-3 OSAKA Osaka-shi, Osaka Mismatch 0.83 0.72 0.80 0.92
5-4 1-1-1 Sample-cho, Chuo-ku, Tokyo 〒100-0000 東京都中央区サンプル町1-1-1 Match 0.92 0.84 0.95 0.80
5-5 SAPPORO SENDAI Mismatch 0.24 0.01 0.03 0.04
5-6 〒100-0000 東京都中央区サンプル町1-1-1 〒100-0000 東京都中央区サンプル町1-1-1 Match 0.92 0.92 0.99 0.87
5-7 TOKYO, JAPAN TOKYO, JAPAN Match 0.98 0.99 0.98 0.88
5-8 JP JP Match 0.92 0.69 0.96 0.88
5-9 1-1-1 Sample-cho, Chuo-ku, Tokyo 1-1-2 Sample-cho, Chuo-ku, Tokyo Mismatch 0.26 0.30 0.04 0.06
5-10 〒100-0000 東京都中央区サンプル町1-1-1 〒101-0000 東京都千代田区サンプル町1-1-1 Mismatch 0.18 0.03 0.05 0.05
5-11 CHUO-KU, TOKYO CHUO-KU, OSAKA Mismatch 0.10 0.17 0.03 0.10

Item names

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
6-1 STEEL PIPE SEAMLESS 50MM SEAMLESS STEEL PIPE 50MM Match 1.00 0.94 0.97 0.95
6-2 STEEL PIPE↵SEAMLESS↵50MM STEEL PIPE SEAMLESS 50MM Match 0.98 0.90 0.96 0.96
6-3 STEEL PIPE (50MM) STEEL PIPE 50MM Match 0.97 1.00 0.96 0.95
6-4 STEEL PIPE 50MM STEEL PIPE 60MM Mismatch 0.03 0.00 0.03 0.04
6-5 SEAMLESS CARBON STEEL PIPE, OUTER DIAMETER 50MM, WALL THICKNESS 3.5MM, LENGTH 6000MM, SURFACE BLACK PAINTED, PACKED IN WOODEN CRATE, MANUFACTURED UNDER SPECIFICATION JIS G3454 SGP, LOT CONTROLLED, INSPECTION CERTIFICATE ISSUED BY MILL, ORIGIN JAPAN SEAMLESS CARBON STEEL PIPE, OUTER DIAMETER 50MM, WALL THICKNESS 3.5MM, LENGTH 6000MM, SURFACE BLACK PAINTED, PACKED IN WOODEN CRATE, MANUFACTURED UNDER SPECIFICATION JIS G3454 SGP, LOT CONTROLLED, INSPECTION CERTIFICATE ISSUED BY MILL, ORIGIN KOREA Mismatch 0.03 0.01 0.06 0.07
6-6 STEEL PIPE (50MM) STEEL PIPE (50MM) Match 1.00 0.93 0.98 0.86
6-7 SEAMLESS CARBON STEEL PIPE, OUTER DIAMETER 50MM, WALL THICKNESS 3.5MM, LENGTH 6000MM, SURFACE BLACK PAINTED, PACKED IN WOODEN CRATE, MANUFACTURED UNDER SPECIFICATION JIS G3454 SGP, LOT CONTROLLED, INSPECTION CERTIFICATE ISSUED BY MILL, ORIGIN KOREA SEAMLESS CARBON STEEL PIPE, OUTER DIAMETER 50MM, WALL THICKNESS 3.5MM, LENGTH 6000MM, SURFACE BLACK PAINTED, PACKED IN WOODEN CRATE, MANUFACTURED UNDER SPECIFICATION JIS G3454 SGP, LOT CONTROLLED, INSPECTION CERTIFICATE ISSUED BY MILL, ORIGIN KOREA Match 0.99 0.99 0.99 0.78
6-8 STEEL PIPE SEAMLESS 50MM STEEL PIPE WELDED 50MM Mismatch 0.09 0.10 0.09 0.13
6-9 STEEL PIPE 50MM BLACK STEEL PIPE 50MM GALVANIZED Mismatch 0.23 0.01 0.09 0.15
6-10 SEAMLESS STEEL PIPE 50MM x 6000MM SEAMLESS STEEL PIPE 50MM x 6600MM Mismatch 0.08 0.16 0.04 0.05

OCR misreads

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
7-1 INVO1CE INVOICE Mismatch 0.87 0.54 0.57 0.46
7-2 DOC-O012345 DOC-0012345 Mismatch 0.56 0.50 0.71 0.70
7-3 1,25O.00 1,250.00 Mismatch 0.65 0.55 0.76 0.57
7-4 ACMl ACME Mismatch 0.33 0.36 0.42 0.49
7-5 DOC-O012345 DOC-O012345 Match 0.73 0.74 0.98 0.90
7-6 1,25O.00 1,25O.00 Match 0.70 0.71 0.91 0.81
7-7 INVO1CE INVO1CE Match 0.77 0.66 0.88 0.83
7-8 DOC-2026 DOC-2028 Mismatch 0.04 0.15 0.04 0.04

Missing values

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
8-1 (empty) (empty) Match 0.08 0.33 0.21 0.30
8-2 (empty) 1,250.00 Mismatch 0.00 0.24 0.03 0.03
8-3 N/A (empty) Match 0.05 0.17 0.11 0.04
8-4 - 該当なし Match 0.29 0.33 0.43 0.29
8-5 N/A N/A Match 0.13 0.48 0.23 0.42
8-6 該当なし 該当なし Match 0.69 0.38 0.88 0.87
8-7 N/A 0 Mismatch 0.02 0.24 0.11 0.05

Aggregation

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
9-1 合計 500 KG 明細: 200 KG / 200 KG / 100 KG Match 0.96 0.86 0.98 0.90
9-2 合計 500 KG 明細: 200 KG / 200 KG / 50 KG Mismatch 0.30 0.21 0.89 0.11
9-3 10 CTNS CTN No.1-10 Match 0.89 0.86 0.93 0.84
9-4 1 箱 管理番号 ABCD1234567 (1箱) Match 0.91 0.87 0.91 0.42
9-5 明細: 200 KG / 200 KG / 100 KG 明細: 200 KG / 200 KG / 100 KG Match 0.91 0.94 0.98 0.88
9-6 CTN No.1-10 CTN No.1-10 Match 0.93 0.92 0.98 0.89
9-7 10 CTNS CTN No.1-9 Mismatch 0.44 0.55 0.22 0.12
9-8 合計 500 KG 明細: 500 KG / 500 KG Mismatch 0.81 0.52 0.73 0.92

Invisible differences

ID Value A Value B Correct Decisions API (English prompt) Decisions API (Japanese prompt) Jev (English prompt) clef (English prompt)
10-1 INV-2026-0912 INV-2026-0912 Match 0.89 0.70 0.96 0.93
10-2 ACME CO., LTD. ACME CO., LTD. Match 0.94 0.98 0.93 0.97
10-3 1,250.00 1,250.00 Match 0.90 0.99 0.98 0.93
10-4 ACME CO., LTD. ACME CO., LTD. Match 0.92 0.92 0.94 0.93
10-5 1,250.00↵ 1,250.00 Match 0.88 0.94 0.98 0.92
10-6 INV-2026-0912 INV-2026-0912 Match 0.92 0.84 0.98 0.87
10-7 ACME CO., LTD. ACME CO., LTD. Match 0.95 0.94 0.97 0.86
10-8 STEEL PIPE⇥SEAMLESS STEEL PIPE⇥SEAMLESS Match 0.97 0.99 0.97 0.88

3. Summary

The Decisions API matched Jev on exact, and on semantic it also delivered a stable result with 91 correct answers using the Japanese prompt.
Unlike Clef, its accuracy did not drop when the prompt was written in Japanese, so I felt it is quite strong with Japanese as well.

The Decisions API had the shortest execution time, but since this also varies with how busy the servers are at the time, I consider the difference of about 0.3 to 0.7 seconds in this test to be within the margin of error.
When embedding it in an AI system, you are rarely required to respond in under a second, so speed does not seem to be a major concern.

On the other hand, Jev costs less than half as much as the Decisions API.
For workloads that process a large number of items, this difference of more than 2x will matter.

Also, the appropriate threshold differs for each model.
When embedding this in a system, please check how the probabilities are distributed on your actual data before deciding on a threshold.


AI白書2026 配布中

クラスメソッドが独自に行なったAI診断調査をもとに、企業のAI活用の現在地を調査レポートとしてまとめました。企業規模別の活用度傾向に加え、規模を超えてAI活用を進める企業に共通する取り組みまで、自社の現在地を捉えるためのヒントにぜひ。

AI白書2026

無料でダウンロードする

Share this article