I Reconciled Document Values with Gemini Decision 1 and Compared It to the Jev Decisions API

I Reconciled Document Values with Gemini Decision 1 and Compared It to the Jev Decisions API

Using Gemini Decision 1 in the decision model, I matched 107 document values and compared correct answers and probability spread with Jev and the Decisions API. Semantic-match accuracy fell below Jev, but no probability was exactly 0 or 1; intermediate values appeared.
2026.11.14

This page has been translated by machine translation. View original

Hello, I'm Keima.

Checking whether values match has long been a struggle for engineers, who have fought with regular expressions and scripts only to be troubled by notation variations and exceptions.
On the other hand, entrusting it to a general-purpose LLM allows flexible judgment, but processing takes time and API call costs add up.
To address these issues, decision models, which do not generate text and return only a judgment and a probability value, are attracting attention as an option that solves both speed and cost.

However, among the decision models I have tested so far, some output probabilities that stick to extremes of 0 or 1, with almost nothing in between. I often found myself wondering, "Is this probability really appropriate?" Among those I tried before, TypeSafe's Jev scattered probabilities reasonably well between 0 and 1, and I could tell the cases where it hesitated by their low probabilities (I tried matching document values with OpenAI's Decisions API and compared it with Jev and Clef | DevelopersIO).

So in this article, I used "Gemini Decision 1", newly released by Google on November 11, 2026, and investigated how it behaves on the same cross-matching task (the test date was November 13, 2026).
Beyond the number of correct answers, I also focus on whether the output probabilities stick to extremes of 0 or 1, compared with Jev and the Decisions API.

1. Test method

1.1 Data

I prepared 107 pairs, each consisting of two values of a document field.
I deliberately mixed in cases that are easy to get wrong, such as the following.

  • Differences in date notation (Sep 12, 2026 and 12/09/2026)

  • Differences in number separators (1.250,00 and 1,250.00)

  • Differences between Japanese and English notation of company names and addresses

  • OCR misreads (the O in 1,25O.00)

  • Differences in how a missing value is expressed (blank, N/A, Not applicable)

  • Matching a total against line items (Total 500 KG and Details: 500 KG / 500 KG)

For each pair, I asked the following two questions in Japanese.

  • Exact match: Are value A and value B identical as strings?

  • Semantic match: Even if the notation differs, do value A and value B indicate the same value?

1.2 Request

I sent the same values and the same question text to the three models.
Because Gemini Decision 1 does not accept criteria (the conditions for yes and no) on noul questions, I appended the conditions to the end of the question text (the same treatment applies to the Decisions API).

{
  "model": "gemini-decision-1",
  "input": "{\"値A\": \"1,250.00\", \"値B\": \"1250\"}",
  "questions": {
    "exact": {
      "type": "noul",
      "instructions": "値Aと値Bは、文字列として完全に同一か。空白・記号・大文字小文字・全角半角の違いも「同一ではない」と扱う。\n「はい」となる条件:1文字も違わず完全に同じ\n「いいえ」となる条件:1文字でも違う"
    },
    "semantic": {
      "type": "noul",
      "instructions": "値Aと値Bは、表記が違っていても同じ値を指しているか。これは2つの書類の同じ項目を突合している場面での判断である。片方が明細の羅列で、もう片方が合計値の場合は、明細をすべて足し合わせてから合計値と比べること。\n「はい」となる条件:書式・言語・単位・略記の違いだけで、指している値は同じ。または明細の合計が合計値と一致する\n「いいえ」となる条件:指している値そのものが違う、または片方にしか値がない。または明細の合計が合計値と一致しない"
    }
  }
}

For Jev, I sent the same content using state and criteria, and for the Decisions API, using the predicate type.
In the test, the three models were called in sequence for each case.

1.3 Metrics

  • Correct answers: the number of cases where a yes probability of 0.8 or higher was judged "same" and matched the correct answer

  • Slip-through: the number of cases judged "same" even though the values are actually different. This is the error to avoid most in cross-matching

  • Number of cases with probability exactly 0 or 1: the more there are, the harder it is to distinguish hesitant cases by probability

  • Cost: converted at 150 yen per dollar

2. Results

2.1 Correct answers, speed, and cost

Item Gemini Decision 1 Jev Decisions API
Correct exact matches 105/107 106/107 107/107
Correct semantic matches 94/106 100/106 96/106
Semantic match slip-throughs 3 1 3
Median response time About 0.54 s (538ms) About 0.23 s (227ms) About 0.34 s (335ms)
Input tokens (average per case) 348 607 557
Cost for 107 cases $0.0037 (about 0.56 yen) $0.0027 (about 0.41 yen) $0.0060 (about 0.89 yen)

For semantic matching, Jev had the highest number of correct answers, with only 1 slip-through.
Although Gemini Decision 1 had the fewest input tokens, its unit price is about 2.4 times that of Jev, so its cost came out slightly higher than Jev's.

2.2 Probability distribution

I plotted the semantic match probabilities, separated into 69 cases whose correct answer is "same" and 37 cases whose correct answer is "different". This is what I care about most. When I tested the Decisions API in the past, its probabilities stuck to 0 and 1.
Each dot represents one value pair, and the dashed line is the 0.8 threshold.

Distribution of semantic match probabilities. A figure showing Gemini Decision 1, Jev, and the Decisions API side by side
Semantic match probabilities (Japanese question text, 106 cases)

Probability range Gemini Decision 1 Jev Decisions API
Below 0.05 20 15 31
0.05–0.2 13 9 4
0.2–0.8 10 17 6
0.8–0.95 12 15 4
0.95 or higher 52 51 62
Exactly 0 or 1 0 0 83

Wow, this is the first decision model since Jev to produce plausible-looking probabilities!
They don't stick to 0 or 1.
There is also a decent middle range.

2.3 When changing the threshold

When I varied the threshold, the number of correct semantic matches and the number of slip-throughs changed as follows (correct / slip-through).

Threshold Gemini Decision 1 Jev Decisions API
0.5 96/4 97/6 97/4
0.7 94/3 98/3 96/3
0.8 94/3 100/1 96/3
0.9 95/1 93/1 96/2
0.95 87/1 87/0 94/2

For Gemini Decision 1, raising the threshold to 0.9 reduced slip-throughs to 1 and also improved the number of correct answers to 95.

2.4 Cases Gemini Decision 1 got wrong

Of the 12 semantic match cases Gemini Decision 1 got wrong, the 3 that were slip-throughs are as follows.

Value A Value B Correct Gemini Decision 1 Jev Decisions API
1,25O.00 1,250.00 Different (O misread) 0.86 0.73 0.84
Total 500 KG Details: 500 KG / 500 KG Different (the line items total 1000) 0.97 0.56 0.35
1,250.00 1,250.00 USD Different (one side has no currency) 0.88 0.91 1.00

3. Results for all cases

Bold indicates cases that were wrong at the 0.8 threshold.

ID Type Value A Value B Correct (semantic) Gemini Jev Decisions API
1-1 Exact match INV-2026-0912 INV-2026-0912 Same 0.98 0.98 1.00
1-2 Exact match 1,250.00 1,250.00 Same 0.98 0.98 1.00
1-3 Exact match ACME TRADING CO., LTD. ACME TRADING CO., LTD. Same 0.98 0.98 1.00
1-4 Exact match 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 Same 0.96 0.98 1.00
1-5 Exact match STEEL PIPE SEAMLESS 50MM STEEL PIPE SEAMLESS 50MM Same 0.98 0.98 1.00
1-6 Exact match ACME TRADING ACME TRADING Same 0.97 0.97 1.00
1-7 Exact match DOC-O0O12345 DOC-O0O12345 Same 0.97 0.97 1.00
1-8 Exact match 1,250.00 1,250.00 Same 0.97 0.98 1.00
1-9 Exact match Sep 12, 2026 Sep 12, 2026 Same 0.98 0.98 1.00
2-1 Date 2026/09/12 September 12, 2026 Same 0.98 0.99 1.00
2-2 Date 12-SEP-2026 2026-09-12 Same 0.98 0.98 1.00
2-3 Date Sep 12, 2026 12/09/2026 Same 0.56 0.56 0.81
2-4 Date Reiwa 8, September 12 2026-09-12 Same 0.98 0.89 1.00
2-5 Date 03/04/2026 2026-04-03 Same 0.20 0.80 0.54
2-6 Date 03/04/2026 2026-03-04 Out of scope 0.87 0.97 0.97
2-7 Date 2026/09/12 2026/09/13 Different 0.05 0.04 0.00
2-8 Date 2026/09/12 2025/09/12 Different 0.03 0.02 0.00
2-9 Date September 12, 2026 September 12, 2026 Same 0.99 0.98 1.00
2-10 Date 12-SEP-2026 12-SEP-2026 Same 0.98 0.98 1.00
2-11 Date Reiwa 8, September 12 Reiwa 8, September 12 Same 0.98 0.98 1.00
2-12 Date 2026/09/12 2026/12/09 Different 0.11 0.02 0.00
2-13 Date Reiwa 8, September 12 Reiwa 7, September 12 Different 0.04 0.02 0.00
3-1 Number 1,250.00 1250 Same 0.96 0.98 1.00
3-2 Number USD 1,250.00 $1,250.00 Same 0.98 0.99 1.00
3-3 Number 1.250,00 1,250.00 Same 0.55 0.86 1.00
3-4 Number 1250.0 1250.5 Different 0.03 0.05 0.00
3-5 Number 12,500 1,250 Different 0.09 0.05 0.00
3-6 Number 1,250.00 1,250.00 USD Different 0.88 0.91 1.00
3-7 Number USD 1,250 JPY 1,250 Different 0.03 0.04 0.00
3-8 Number 500 KGS 500.000 KG Same 0.98 0.93 1.00
3-9 Number 500 KG 1102.31 LBS Same 0.94 0.86 1.00
3-10 Number 10 CTNS 10 CARTONS Same 0.96 0.98 1.00
3-11 Number USD 1,250.00 USD 1,250.00 Same 0.99 0.98 1.00
3-12 Number 1.250,00 1.250,00 Same 0.98 0.98 1.00
3-13 Number 500 KGS 500 KGS Same 0.98 0.98 1.00
3-14 Number 1,250.00 USD 1,250.00 USD Same 0.99 0.98 1.00
3-15 Number 1,250.00 1,205.00 Different 0.03 0.02 0.00
3-16 Number 500 KG 500 LBS Different 0.03 0.03 0.15
3-17 Number 10 CTNS 10 PALLETS Different 0.07 0.21 0.00
3-18 Number 500.00 KG 50.00 KG Different 0.04 0.02 0.00
4-1 Company name ACME CO., LTD. Acme Co., Ltd. Same 0.95 0.96 1.00
4-2 Company name ACME CO.,LTD. ACME CO., LTD. Same 0.96 0.96 1.00
4-3 Company name GLOBEX CORPORATION GLOBEX CORP. Same 0.96 0.93 1.00
4-4 Company name Co., Ltd. Sample Trading Sample Trading Co., Ltd. Same 0.95 0.86 0.29
4-5 Company name ACME ACME Same 0.97 0.93 1.00
4-6 Company name ACME TRADING CO. ACNE TRADING CO. Different 0.11 0.23 0.00
4-7 Company name Initech Inc. Initech Incorporated Same 0.95 0.95 1.00
4-8 Company name Co., Ltd. Sample Trading Co., Ltd. Sample Trading Same 0.98 0.98 1.00
4-9 Company name ACME ACME Same 0.99 0.97 1.00
4-10 Company name GLOBEX CORP. GLOBEX CORP. Same 0.99 0.97 1.00
4-11 Company name Initech Incorporated Initech Incorporated Same 0.99 0.98 1.00
4-12 Company name ACME TRADING CO., LTD. ACME SHIPPING CO., LTD. Different 0.03 0.16 0.00
4-13 Company name GLOBEX CORP. GLOBEX HOLDINGS CORP. Different 0.08 0.31 0.08
4-14 Company name Co., Ltd. Sample Trading Co., Ltd. Sample Products Different 0.09 0.20 0.00
4-15 Company name ACME CO., LTD. ACME CO., LTD. (Taiwan Branch) Different 0.10 0.24 0.01
5-1 Address TOKYO, JAPAN Tokyo Japan Same 0.97 0.98 1.00
5-2 Address JP JAPAN Same 0.94 0.93 1.00
5-3 Address OSAKA Osaka-shi, Osaka Different 0.67 0.67 0.97
5-4 Address 1-1-1 Sample-cho, Chuo-ku, Tokyo 100-0000 Tokyo, Chuo-ku, Sample-cho 1-1-1 Same 0.67 0.97 0.99
5-5 Address SAPPORO SENDAI Different 0.04 0.04 0.00
5-6 Address 100-0000 Tokyo, Chuo-ku, Sample-cho 1-1-1 100-0000 Tokyo, Chuo-ku, Sample-cho 1-1-1 Same 0.99 0.98 1.00
5-7 Address TOKYO, JAPAN TOKYO, JAPAN Same 0.98 0.98 1.00
5-8 Address JP JP Same 0.97 0.97 1.00
5-9 Address 1-1-1 Sample-cho, Chuo-ku, Tokyo 1-1-2 Sample-cho, Chuo-ku, Tokyo Different 0.03 0.04 0.00
5-10 Address 100-0000 Tokyo, Chuo-ku, Sample-cho 1-1-1 101-0000 Tokyo, Chiyoda-ku, Sample-cho 1-1-1 Different 0.03 0.12 0.00
5-11 Address CHUO-KU, TOKYO CHUO-KU, OSAKA Different 0.04 0.03 0.00
6-1 Product name STEEL PIPE SEAMLESS 50MM SEAMLESS STEEL PIPE 50MM Same 0.96 0.97 1.00
6-2 Product name STEEL PIPE SEAMLESS 50MM STEEL PIPE SEAMLESS 50MM Same 0.97 0.97 1.00
6-3 Product name STEEL PIPE (50MM) STEEL PIPE 50MM Same 0.98 0.97 1.00
6-4 Product name STEEL PIPE 50MM STEEL PIPE 60MM Different 0.03 0.03 0.00
6-5 Product name 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 Different 0.06 0.09 0.00
6-6 Product name STEEL PIPE (50MM) STEEL PIPE (50MM) Same 0.98 0.98 1.00
6-7 Product name 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 Same 0.95 0.98 1.00
6-8 Product name STEEL PIPE SEAMLESS 50MM STEEL PIPE WELDED 50MM Different 0.05 0.09 0.00
6-9 Product name STEEL PIPE 50MM BLACK STEEL PIPE 50MM GALVANIZED Different 0.04 0.08 0.00
6-10 Product name SEAMLESS STEEL PIPE 50MM x 6000MM SEAMLESS STEEL PIPE 50MM x 6600MM Different 0.03 0.04 0.00
7-1 OCR misread INVO1CE INVOICE Different 0.24 0.73 0.15
7-2 OCR misread DOC-O012345 DOC-0012345 Different 0.25 0.61 0.06
7-3 OCR misread 1,25O.00 1,250.00 Different 0.86 0.73 0.84
7-4 OCR misread ACMl ACME Different 0.45 0.28 0.04
7-5 OCR misread DOC-O012345 DOC-O012345 Same 0.99 0.97 1.00
7-6 OCR misread 1,25O.00 1,25O.00 Same 0.97 0.87 0.97
7-7 OCR misread INVO1CE INVO1CE Same 0.97 0.94 0.94
7-8 OCR misread DOC-2026 DOC-2028 Different 0.05 0.04 0.00
8-1 Missing (empty) (empty) Same 0.16 0.37 0.03
8-2 Missing (empty) 1,250.00 Different 0.01 0.02 0.00
8-3 Missing N/A (empty) Same 0.09 0.15 0.00
8-4 Missing - Not applicable Same 0.24 0.46 0.02
8-5 Missing N/A N/A Same 0.21 0.51 0.66
8-6 Missing Not applicable Not applicable Same 0.37 0.91 0.36
8-7 Missing N/A 0 Different 0.08 0.08 0.01
9-1 Total vs. details Total 500 KG Details: 200 KG / 200 KG / 100 KG Same 0.98 0.98 1.00
9-2 Total vs. details Total 500 KG Details: 200 KG / 200 KG / 50 KG Different 0.03 0.40 0.03
9-3 Total vs. details 10 CTNS CTN No.1-10 Same 0.91 0.88 1.00
9-4 Total vs. details 1 box Control No. ABCD1234567 (1 box) Same 0.84 0.92 1.00
9-5 Total vs. details Details: 200 KG / 200 KG / 100 KG Details: 200 KG / 200 KG / 100 KG Same 0.99 0.98 1.00
9-6 Total vs. details CTN No.1-10 CTN No.1-10 Same 0.97 0.98 1.00
9-7 Total vs. details 10 CTNS CTN No.1-9 Different 0.04 0.35 0.50
9-8 Total vs. details Total 500 KG Details: 500 KG / 500 KG Different 0.97 0.56 0.35
10-1 Whitespace/symbols INV-2026-0912 INV-2026-0912 Same 0.94 0.96 0.92
10-2 Whitespace/symbols ACME CO., LTD. ACME CO., LTD. Same 0.90 0.95 1.00
10-3 Whitespace/symbols 1,250.00 1,250.00 Same 0.98 0.98 1.00
10-4 Whitespace/symbols ACME CO., LTD. ACME CO., LTD. Same 0.96 0.95 1.00
10-5 Whitespace/symbols 1,250.00 1,250.00 Same 0.99 0.98 1.00
10-6 Whitespace/symbols INV-2026-0912 INV-2026-0912 Same 0.94 0.98 1.00
10-7 Whitespace/symbols ACME CO., LTD. ACME CO., LTD. Same 0.98 0.98 1.00
10-8 Whitespace/symbols STEEL PIPE SEAMLESS STEEL PIPE SEAMLESS Same 0.98 0.97 1.00

4. Summary

I had Gemini Decision 1, Jev, and the Decisions API solve the same 107 cross-matching cases on the same day.

For the number of correct semantic matches at the 0.8 threshold, Jev was highest with 100, followed by the Decisions API with 96 and Gemini Decision 1 with 94.
Jev was also the most advantageous in speed and cost; Gemini Decision 1 had the slowest median response time of the three at about 0.54 seconds, and its cost was about 1.4 times Jev's. I think the speed difference is mostly negligible.

On the other hand, the tendencies of the output probabilities were very similar between Gemini Decision 1 and Jev.
While the Decisions API stuck to exactly 0 or 1 in 83 cases, Gemini Decision 1 had 0 such cases, making it possible to pick up hesitant cases by their low probabilities. This is really great!

Although Gemini Decision 1 costs somewhat more than Jev, including the advantage of handling images and PDFs with the same API, I feel it is a good candidate to consider adopting.

However, at the moment Gemini Decision 1 is available only on the Gemini Developer API (the API called with a Google AI Studio API key).

Available on the Gemini Developer API (v1beta) with Gemini Decision 1 only.

Source: Decisions API | Google AI Studio

It would be perfect if it also became available on Google Cloud's Gemini Enterprise Agent Platform (formerly Vertex AI; Vertex AI name changes | Google Cloud)!


AI白書2026 配布中

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

AI白書2026

無料でダウンロードする

Share this article