File size: 2,217 Bytes
ca66b51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Submission Format

DocuBench result sets live under:

```text
results/<system_name>/<doc_id>.json
```

`<system_name>` should be lowercase, filesystem-safe, and stable across reports.

## Required Per-Document File

Each document result should be a JSON object with a top-level `data` key:

```json
{
  "data": {
    "invoice_number": "INV-001",
    "line_items": []
  }
}
```

The `data` object is scored against `labels/<doc_id>.json` using `schemas/<doc_id>.json`.

## Recommended Metadata

Include run metadata when available:

```json
{
  "data": {},
  "cost": 0.0,
  "time_sec": 0.0,
  "meta": {
    "system": "example-system",
    "model": "model-or-api-version",
    "run_date": "2026-06-26",
    "configuration": "short human-readable config"
  }
}
```

If a system fails to complete, refuses, or returns output that cannot be parsed into the
requested schema, still write a result file with an empty `data` object:

```json
{
  "status": "failed",
  "error": {
    "type": "schema_mismatch",
    "message": "model output did not conform to the schema"
  },
  "data": {},
  "meta": {
    "model": "model-or-api-version"
  }
}
```

This makes the failure visible and causes all non-empty labeled fields for that document
to be counted as errors.

## Validation And Scoring

Run:

```bash
docubench validate
docubench score --engine <system_name>
```

To regenerate reports for all result sets:

```bash
docubench report
```

## Prompts And Run Configuration

Commit the prompt and run configuration that produced a submission under
[`prompts/`](../prompts), following the existing baselines. The committed LLM baselines
load their instruction from [`prompts/extraction_prompt.txt`](../prompts/extraction_prompt.txt)
at runtime, and each result file stamps its model id, provider, and `schema_mode` in
`meta` — together these make a result set reproducible and auditable.

## Review Expectations

Public submissions should state:

- system name and version
- model or provider version, if applicable
- extraction settings that affect output
- date of run
- whether the run was produced by released code, proprietary code, or manual workflow
- any documents skipped or failed
- cost and latency if measured