File size: 24,889 Bytes
2e511b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
---
license: mit
language:
  - en
  - de
  - fr
  - it
  - es
  - pt
  - hy
  - ka
  - ne
  - sr
  - zh
  - fil
  - nl
pretty_name: "LEGEX Inference Results: 4 Systems, 6 Runs on 19 Jurisdictions"
size_categories:
  - 1K<n<10K
task_categories:
  - text-classification
  - token-classification
tags:
  - legal
  - benchmark
  - llm-evaluation
  - information-extraction
  - inference-outputs
dataset_info:
  - config_name: harvey
    features:
      - name: case_id
        dtype: string
      - name: link
        dtype: string
      - name: legal_subject_judgement
        dtype: string
      - name: trial_start_date
        dtype: date32
      - name: trial_end_date
        dtype: date32
      - name: dispute_value_nominal
        dtype: string
      - name: Currency_dispute_value_nominal
        dtype: string
      - name: plaintiff_loosing_share
        dtype: string
      - name: court_cost_awarded_nominal
        dtype: string
      - name: Currency_court_cost_awarded_nominal
        dtype: string
      - name: party_compensation_awarded_nominal
        dtype: string
      - name: Currency_party_compensation_awarded_nominal
        dtype: string
      - name: plaintiffs_all_count
        dtype: string
      - name: defendants_all_count
        dtype: string
      - name: plaintiff_no1_ISIC1_industry_category
        dtype: string
      - name: defendant_no1_ISIC1_industry_category
        dtype: string
      - name: model
        dtype: string
      - name: inference_date
        dtype: string
      - name: error
        dtype: string
      - name: comment
        dtype: string
      - name: original_input
        dtype: string
  - config_name: harvey_2
    features:
      - name: case_id
        dtype: string
      - name: link
        dtype: string
      - name: legal_subject_judgement
        dtype: string
      - name: trial_start_date
        dtype: date32
      - name: trial_end_date
        dtype: date32
      - name: dispute_value_nominal
        dtype: string
      - name: Currency_dispute_value_nominal
        dtype: string
      - name: plaintiff_loosing_share
        dtype: string
      - name: court_cost_awarded_nominal
        dtype: string
      - name: Currency_court_cost_awarded_nominal
        dtype: string
      - name: party_compensation_awarded_nominal
        dtype: string
      - name: Currency_party_compensation_awarded_nominal
        dtype: string
      - name: plaintiffs_all_count
        dtype: string
      - name: defendants_all_count
        dtype: string
      - name: plaintiff_no1_ISIC1_industry_category
        dtype: string
      - name: defendant_no1_ISIC1_industry_category
        dtype: string
      - name: model
        dtype: string
      - name: inference_date
        dtype: string
      - name: error
        dtype: string
      - name: comment
        dtype: string
      - name: original_input
        dtype: string
  - config_name: gemini
    features:
      - name: case_id
        dtype: string
      - name: link
        dtype: string
      - name: legal_subject_judgement
        dtype: string
      - name: trial_start_date
        dtype: date32
      - name: trial_end_date
        dtype: date32
      - name: dispute_value_nominal
        dtype: string
      - name: Currency_dispute_value_nominal
        dtype: string
      - name: plaintiff_loosing_share
        dtype: string
      - name: court_cost_awarded_nominal
        dtype: string
      - name: Currency_court_cost_awarded_nominal
        dtype: string
      - name: party_compensation_awarded_nominal
        dtype: string
      - name: Currency_party_compensation_awarded_nominal
        dtype: string
      - name: plaintiffs_all_count
        dtype: string
      - name: defendants_all_count
        dtype: string
      - name: plaintiff_no1_ISIC1_industry_category
        dtype: string
      - name: defendant_no1_ISIC1_industry_category
        dtype: string
      - name: model
        dtype: string
      - name: inference_date
        dtype: string
      - name: error
        dtype: string
      - name: comment
        dtype: string
      - name: original_input
        dtype: string
  - config_name: gpt
    features:
      - name: case_id
        dtype: string
      - name: link
        dtype: string
      - name: legal_subject_judgement
        dtype: string
      - name: trial_start_date
        dtype: date32
      - name: trial_end_date
        dtype: date32
      - name: dispute_value_nominal
        dtype: string
      - name: Currency_dispute_value_nominal
        dtype: string
      - name: plaintiff_loosing_share
        dtype: string
      - name: court_cost_awarded_nominal
        dtype: string
      - name: Currency_court_cost_awarded_nominal
        dtype: string
      - name: party_compensation_awarded_nominal
        dtype: string
      - name: Currency_party_compensation_awarded_nominal
        dtype: string
      - name: plaintiffs_all_count
        dtype: string
      - name: defendants_all_count
        dtype: string
      - name: plaintiff_no1_ISIC1_industry_category
        dtype: string
      - name: defendant_no1_ISIC1_industry_category
        dtype: string
      - name: model
        dtype: string
      - name: inference_date
        dtype: string
      - name: error
        dtype: string
      - name: comment
        dtype: string
      - name: original_input
        dtype: string
  - config_name: legora_1
    features:
      - name: case_id
        dtype: string
      - name: link
        dtype: string
      - name: legal_subject_judgement
        dtype: string
      - name: trial_start_date
        dtype: date32
      - name: trial_end_date
        dtype: date32
      - name: dispute_value_nominal
        dtype: string
      - name: Currency_dispute_value_nominal
        dtype: string
      - name: plaintiff_loosing_share
        dtype: string
      - name: court_cost_awarded_nominal
        dtype: string
      - name: Currency_court_cost_awarded_nominal
        dtype: string
      - name: party_compensation_awarded_nominal
        dtype: string
      - name: Currency_party_compensation_awarded_nominal
        dtype: string
      - name: plaintiffs_all_count
        dtype: string
      - name: defendants_all_count
        dtype: string
      - name: plaintiff_no1_ISIC1_industry_category
        dtype: string
      - name: defendant_no1_ISIC1_industry_category
        dtype: string
      - name: model
        dtype: string
      - name: inference_date
        dtype: string
      - name: error
        dtype: string
      - name: comment
        dtype: string
      - name: original_input
        dtype: string
  - config_name: legora_2
    features:
      - name: case_id
        dtype: string
      - name: link
        dtype: string
      - name: legal_subject_judgement
        dtype: string
      - name: trial_start_date
        dtype: date32
      - name: trial_end_date
        dtype: date32
      - name: dispute_value_nominal
        dtype: string
      - name: Currency_dispute_value_nominal
        dtype: string
      - name: plaintiff_loosing_share
        dtype: string
      - name: court_cost_awarded_nominal
        dtype: string
      - name: Currency_court_cost_awarded_nominal
        dtype: string
      - name: party_compensation_awarded_nominal
        dtype: string
      - name: Currency_party_compensation_awarded_nominal
        dtype: string
      - name: plaintiffs_all_count
        dtype: string
      - name: defendants_all_count
        dtype: string
      - name: plaintiff_no1_ISIC1_industry_category
        dtype: string
      - name: defendant_no1_ISIC1_industry_category
        dtype: string
      - name: model
        dtype: string
      - name: inference_date
        dtype: string
      - name: error
        dtype: string
      - name: comment
        dtype: string
      - name: original_input
        dtype: string
configs:
  - config_name: harvey
    data_files:
      - split: armenia
        path: data/am/inference_harvey.jsonl
      - split: australia
        path: data/au/inference_harvey.jsonl
      - split: belgium
        path: data/be/inference_harvey.jsonl
      - split: brazil
        path: data/br/inference_harvey.jsonl
      - split: france
        path: data/fr/inference_harvey.jsonl
      - split: georgia
        path: data/ge/inference_harvey.jsonl
      - split: germany
        path: data/de/inference_harvey.jsonl
      - split: hong_kong
        path: data/hk/inference_harvey.jsonl
      - split: india
        path: data/in/inference_harvey.jsonl
      - split: nepal
        path: data/np/inference_harvey.jsonl
      - split: new_zealand
        path: data/nz/inference_harvey.jsonl
      - split: philippines
        path: data/ph/inference_harvey.jsonl
      - split: serbia
        path: data/rs/inference_harvey.jsonl
      - split: singapore
        path: data/sg/inference_harvey.jsonl
      - split: spain
        path: data/es/inference_harvey.jsonl
      - split: switzerland
        path: data/ch/inference_harvey.jsonl
      - split: taiwan
        path: data/tw/inference_harvey.jsonl
      - split: united_kingdom
        path: data/uk/inference_harvey.jsonl
      - split: united_states
        path: data/us/inference_harvey.jsonl
  - config_name: harvey_2
    data_files:
      - split: armenia
        path: data/am/inference_harvey_2.jsonl
      - split: australia
        path: data/au/inference_harvey_2.jsonl
      - split: belgium
        path: data/be/inference_harvey_2.jsonl
      - split: brazil
        path: data/br/inference_harvey_2.jsonl
      - split: france
        path: data/fr/inference_harvey_2.jsonl
      - split: georgia
        path: data/ge/inference_harvey_2.jsonl
      - split: germany
        path: data/de/inference_harvey_2.jsonl
      - split: hong_kong
        path: data/hk/inference_harvey_2.jsonl
      - split: india
        path: data/in/inference_harvey_2.jsonl
      - split: nepal
        path: data/np/inference_harvey_2.jsonl
      - split: new_zealand
        path: data/nz/inference_harvey_2.jsonl
      - split: philippines
        path: data/ph/inference_harvey_2.jsonl
      - split: serbia
        path: data/rs/inference_harvey_2.jsonl
      - split: singapore
        path: data/sg/inference_harvey_2.jsonl
      - split: spain
        path: data/es/inference_harvey_2.jsonl
      - split: switzerland
        path: data/ch/inference_harvey_2.jsonl
      - split: taiwan
        path: data/tw/inference_harvey_2.jsonl
      - split: united_kingdom
        path: data/uk/inference_harvey_2.jsonl
      - split: united_states
        path: data/us/inference_harvey_2.jsonl
  - config_name: gemini
    data_files:
      - split: armenia
        path: data/am/inference_gemini.jsonl
      - split: australia
        path: data/au/inference_gemini.jsonl
      - split: belgium
        path: data/be/inference_gemini.jsonl
      - split: brazil
        path: data/br/inference_gemini.jsonl
      - split: france
        path: data/fr/inference_gemini.jsonl
      - split: georgia
        path: data/ge/inference_gemini.jsonl
      - split: germany
        path: data/de/inference_gemini.jsonl
      - split: hong_kong
        path: data/hk/inference_gemini.jsonl
      - split: india
        path: data/in/inference_gemini.jsonl
      - split: nepal
        path: data/np/inference_gemini.jsonl
      - split: new_zealand
        path: data/nz/inference_gemini.jsonl
      - split: philippines
        path: data/ph/inference_gemini.jsonl
      - split: serbia
        path: data/rs/inference_gemini.jsonl
      - split: singapore
        path: data/sg/inference_gemini.jsonl
      - split: spain
        path: data/es/inference_gemini.jsonl
      - split: switzerland
        path: data/ch/inference_gemini.jsonl
      - split: taiwan
        path: data/tw/inference_gemini.jsonl
      - split: united_kingdom
        path: data/uk/inference_gemini.jsonl
      - split: united_states
        path: data/us/inference_gemini.jsonl
  - config_name: gpt
    data_files:
      - split: armenia
        path: data/am/inference_gpt.jsonl
      - split: australia
        path: data/au/inference_gpt.jsonl
      - split: belgium
        path: data/be/inference_gpt.jsonl
      - split: brazil
        path: data/br/inference_gpt.jsonl
      - split: france
        path: data/fr/inference_gpt.jsonl
      - split: georgia
        path: data/ge/inference_gpt.jsonl
      - split: germany
        path: data/de/inference_gpt.jsonl
      - split: hong_kong
        path: data/hk/inference_gpt.jsonl
      - split: india
        path: data/in/inference_gpt.jsonl
      - split: nepal
        path: data/np/inference_gpt.jsonl
      - split: new_zealand
        path: data/nz/inference_gpt.jsonl
      - split: philippines
        path: data/ph/inference_gpt.jsonl
      - split: serbia
        path: data/rs/inference_gpt.jsonl
      - split: singapore
        path: data/sg/inference_gpt.jsonl
      - split: spain
        path: data/es/inference_gpt.jsonl
      - split: switzerland
        path: data/ch/inference_gpt.jsonl
      - split: taiwan
        path: data/tw/inference_gpt.jsonl
      - split: united_kingdom
        path: data/uk/inference_gpt.jsonl
      - split: united_states
        path: data/us/inference_gpt.jsonl
  - config_name: legora_1
    data_files:
      - split: armenia
        path: data/am/inference_legora_1.jsonl
      - split: australia
        path: data/au/inference_legora_1.jsonl
      - split: belgium
        path: data/be/inference_legora_1.jsonl
      - split: brazil
        path: data/br/inference_legora_1.jsonl
      - split: france
        path: data/fr/inference_legora_1.jsonl
      - split: georgia
        path: data/ge/inference_legora_1.jsonl
      - split: germany
        path: data/de/inference_legora_1.jsonl
      - split: hong_kong
        path: data/hk/inference_legora_1.jsonl
      - split: india
        path: data/in/inference_legora_1.jsonl
      - split: nepal
        path: data/np/inference_legora_1.jsonl
      - split: new_zealand
        path: data/nz/inference_legora_1.jsonl
      - split: philippines
        path: data/ph/inference_legora_1.jsonl
      - split: serbia
        path: data/rs/inference_legora_1.jsonl
      - split: singapore
        path: data/sg/inference_legora_1.jsonl
      - split: spain
        path: data/es/inference_legora_1.jsonl
      - split: switzerland
        path: data/ch/inference_legora_1.jsonl
      - split: taiwan
        path: data/tw/inference_legora_1.jsonl
      - split: united_kingdom
        path: data/uk/inference_legora_1.jsonl
      - split: united_states
        path: data/us/inference_legora_1.jsonl
  - config_name: legora_2
    data_files:
      - split: armenia
        path: data/am/inference_legora_2.jsonl
      - split: australia
        path: data/au/inference_legora_2.jsonl
      - split: belgium
        path: data/be/inference_legora_2.jsonl
      - split: brazil
        path: data/br/inference_legora_2.jsonl
      - split: france
        path: data/fr/inference_legora_2.jsonl
      - split: georgia
        path: data/ge/inference_legora_2.jsonl
      - split: germany
        path: data/de/inference_legora_2.jsonl
      - split: hong_kong
        path: data/hk/inference_legora_2.jsonl
      - split: india
        path: data/in/inference_legora_2.jsonl
      - split: nepal
        path: data/np/inference_legora_2.jsonl
      - split: new_zealand
        path: data/nz/inference_legora_2.jsonl
      - split: philippines
        path: data/ph/inference_legora_2.jsonl
      - split: serbia
        path: data/rs/inference_legora_2.jsonl
      - split: singapore
        path: data/sg/inference_legora_2.jsonl
      - split: spain
        path: data/es/inference_legora_2.jsonl
      - split: switzerland
        path: data/ch/inference_legora_2.jsonl
      - split: taiwan
        path: data/tw/inference_legora_2.jsonl
      - split: united_kingdom
        path: data/uk/inference_legora_2.jsonl
      - split: united_states
        path: data/us/inference_legora_2.jsonl
---

# LEGEX Inference Results

System outputs for the LEGEX benchmark, six review-table extraction
runs (four systems; Harvey and Legora twice each) on the case packets of
all 19 jurisdictions:

`am, au, be, br, ch, de, es, fr, ge, hk, in, np, nz, ph, rs, sg, tw, uk, us`

## The systems

| Abbreviation | `model` field value | Notes |
|--------------|---|---|
| `harvey`     | `harvey` | Harvey Vault Review, a commercial review-table product. Outputs exported from the production system on **2026-05-18** and **2026-06-30** (each record's `inference_date` says which export it came from) — the run reported in the paper. The per-column prompts as configured for each export are in [`prompts/prompts_harvey.jsonl`](prompts/prompts_harvey.jsonl). Harvey is a deployed product that changes over time, so these results are a dated snapshot. |
| `harvey_2`   | `harvey-2` | A second, independent Harvey Vault Review run, exported **2026-08-05**, with the prompts re-entered from the same rulebook (and rephrased by the platform on entry — see [`prompts/prompts_harvey_2.jsonl`](prompts/prompts_harvey_2.jsonl)). Released for robustness comparisons across time and prompt variants; not part of the paper's reported numbers. |
| `gemini`     | `gemini/gemini-3.1-flash-lite` | Schema-constrained pipeline via the Gemini API. |
| `gpt`        | `gpt-5.4-mini` | Schema-constrained pipeline via the OpenAI API. |
| `legora_1`   | `legora-1` | Legora Tabular Review, a commercial review-table product. Exported from the production system on **2026-08-01**; the export contained the full question set twice, i.e. two independent runs — this is the first (left) column group, the run reported in the paper. The per-column prompts as run are in [`prompts/prompts_legora_1.jsonl`](prompts/prompts_legora_1.jsonl). Like Harvey, a dated snapshot of a deployed product. |
| `legora_2`   | `legora-2` | The second (right) column group of the same 2026-08-01 Legora export — an independent run with independently re-entered per-column prompts, see [`prompts/prompts_legora_2.jsonl`](prompts/prompts_legora_2.jsonl). Released for robustness comparisons across prompt variants. |

The `gemini` and `gpt` pipelines received the identical single system prompt
(`v3`, see the [code repo](https://huggingface.co/datasets/legexbenchmark/code)).
Harvey and Legora take one prompt per review-table column, so the same rules
were entered per column; the platforms' workflow assistants rephrase prompts
on entry, and the as-run column prompts therefore differ in wording between
runs. The as-run prompts of every Harvey and Legora run are shipped verbatim
in `prompts/` (Harvey's 18 May set is also reproduced in the paper appendix).
All runs encode the same 14-field schema (see the
[goldensets repo](https://huggingface.co/datasets/legexbenchmark/goldensets)
for the schema definition).

## File layout

```
data/<cc>/inference_harvey.jsonl
data/<cc>/inference_harvey_2.jsonl
data/<cc>/inference_gemini.jsonl
data/<cc>/inference_gpt.jsonl
data/<cc>/inference_legora_1.jsonl
data/<cc>/inference_legora_2.jsonl
prompts/prompts_harvey.jsonl
prompts/prompts_harvey_2.jsonl
prompts/prompts_legora_1.jsonl
prompts/prompts_legora_2.jsonl
```

The `prompts/` files hold the per-column prompts as run, one record per
(run, field): `model`, `inference_date`, `field`, `prompt`.


### Record schema

Each record corresponds to one (judgment, system) pair:

| Key | Type | Description                                                                                                                                                                                                     |
|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `case_id` | string | Identifier matching the goldenset `case_id`.                                                                                                                                                                    |
| `link` | string \| null | URL to the original judgment.                                                                                                                                                                                   |
| `legal_subject_judgement``defendant_no1_ISIC1_industry_category` | string \| null | The 14 extracted fields, same schema as the goldensets. All values are strings (numbers as digit strings) so every column is single-typed, this fixes the `ArrowInvalid` load failure of the first CSV release. |
| `model` | string | Model identifier emitted by the inference pipeline (see table above).                                                                                                                                           |
| `inference_date` | string | The date the producing run was executed/exported (e.g. `2026-08-01` for both Legora runs; `2026-05-18`/`2026-06-30` for Harvey), so run variants remain traceable per record.                                   |
| `error` | string \| null | Non-empty only if the model call failed for that case.                                                                                                                                                          |
| `comment` | string \| null | Human-readable note listing every value changed during cleaning; `null` when the record needed no change.                                                                                                       |
| `original_input` | string | JSON object mapping each cleaned field to its 1:1 pre-cleaning value; `"{}"` when nothing changed.                                                                                                              |

See [goldensets](https://huggingface.co/datasets/legexbenchmark/goldensets) for a description of the data columns.

## Cleaning

Long-form refusals ("…the date is not stated … N/A") and prose/citations by the model
not following instructions were removed or standardized via a two-step, human-reviewed pipeline
(`legex-refusals-scan` > review > `legex-refusals-apply`, see the
[code repo](https://huggingface.co/datasets/legexbenchmark/code)). Every
change is recorded per record in `comment` / `original_input`, so the raw
model output can always be reconstructed.

## Coverage and known limitations

- Only 15 of Spain's 129 annotated judgments have Harvey output (the ingest of
  the remaining case packets failed before the 2026-06-30 export and was not
  re-run); evaluation counts each system only on the judgments it actually
  produced output for, and reports per-system denominators.
- Hong Kong `case_id`s that were shared by two different documents (one CFA
  case number covering e.g. a substantive judgment and a costs ruling) are
  disambiguated with the source document id, e.g. `FACV12/2022-DIS154422`,
  matching the goldensets release.

- Inference ran on the full sampled case packets (up to 130 cases per
  jurisdiction), so files can contain more cases than the goldenset has
  expert-reviewed rows. Evaluation joins on `case_id` against the goldenset.
- Some Harvey exports are partial: `es` has 15 rows, `np` 108, `ph` 115,
  `hk` 116, `rs` 126, `au` 128, `de` 129, all other files have 130. The
  `harvey_2` run shares most of these gaps: `es` 15, `hk` 102, `ph` 115,
  `rs` 126, `de` 129, all other files 130.
- Legora returned empty review tables for Armenia (`am`), Georgia (`ge`), and
  most Nepalese (`np`) judgments — the rows exist but their fields are empty
  (Legora appears not to support non-Latin scripts). Evaluation counts each
  system only on the judgments it actually answered. Legora `hk` files have
  116 rows.
- For Switzerland, `gemini` and `gpt` emit `case_id`s with different
  separators than the goldenset (e.g. `4A_426/2024` vs `4A-426-2024`), join
  after normalising separators.
- A few files contain duplicate `case_id` rows.

## Loading

```python
import pandas as pd

# One (jurisdiction, system) pair
df = pd.read_json(
    "hf://datasets/legexbenchmark/inference-results/data/us/inference_gpt.jsonl",
    lines=True,
)
```

or with the `datasets` library (one config per system):

```python
from datasets import load_dataset

ds = load_dataset("legexbenchmark/inference-results", "harvey", split="switzerland")
ds = load_dataset("legexbenchmark/inference-results", "gpt", split="united_states")
ds = load_dataset("legexbenchmark/inference-results", "legora_1", split="switzerland")
```

To compare against the gold annotations, join on `case_id` after loading the
matching split from
[`legexbenchmark/goldensets`](https://huggingface.co/datasets/legexbenchmark/goldensets).


## License

MIT.