Datasets:
Tasks:
Document Question Answering
Size:
n<1K
Tags:
benchmark
document-ai
information-extraction
structured-extraction
key-information-extraction
ocr
License:
Initial upload: 50 documents, schemas, hand-verified labels, scorer, baseline results
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +22 -0
- .gitignore +10 -0
- CITATION.cff +19 -0
- CONTRIBUTING.md +49 -0
- LICENSE +38 -0
- README.md +92 -0
- SOURCES.md +58 -0
- docs/dataset-card.md +49 -0
- docs/explorer-preview.png +3 -0
- docs/limitations.md +27 -0
- docs/scoring.md +64 -0
- docs/submissions.md +97 -0
- docubench-explorer.html +786 -0
- docubench/__init__.py +3 -0
- docubench/cli.py +311 -0
- documents/1ZVqiyJZ.pdf +0 -0
- documents/45xidifn.pdf +0 -0
- documents/4kVtTRoL.pdf +3 -0
- documents/5YJaBbNg.pdf +0 -0
- documents/5ukZftw0.xlsx +0 -0
- documents/62PhJTyf.pdf +0 -0
- documents/7ZhgzAzp.tiff +3 -0
- documents/97uZroyv.pdf +3 -0
- documents/B0nA2c30.png +3 -0
- documents/BnftpXVQ.pdf +3 -0
- documents/C7fe2lau.xml +370 -0
- documents/DtfW60lS.pdf +3 -0
- documents/ENoM9faK.pdf +0 -0
- documents/Eet2wW3x.pdf +3 -0
- documents/FiFgt4a6.pdf +0 -0
- documents/GW7i2xbM.pdf +3 -0
- documents/IPm0MkgQ.pdf +3 -0
- documents/J6buHXQ4.pdf +3 -0
- documents/KpewWz3R.pdf +3 -0
- documents/LYeb3G3s.pdf +0 -0
- documents/M66HZlWT.jpeg +3 -0
- documents/NNaGgwE5.pdf +3 -0
- documents/NlWTPen5.pdf +3 -0
- documents/OayFbGlG.pdf +0 -0
- documents/Oe7iRM1G.pdf +0 -0
- documents/PSU5pciM.pdf +3 -0
- documents/PYhFptk3.txt +24 -0
- documents/QxoQ6zgn.pdf +0 -0
- documents/SBR9L7Y8.jpeg +3 -0
- documents/SkD8Lz8o.pdf +3 -0
- documents/UnG6cLfP.pdf +3 -0
- documents/WnxX1Buq.pdf +3 -0
- documents/WxP8Tqgf.pdf +0 -0
- documents/XhJyv5mb.pdf +3 -0
- documents/ZN6HbuKp.csv +35 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,25 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
documents/4kVtTRoL.pdf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
documents/97uZroyv.pdf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
documents/BnftpXVQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
documents/DtfW60lS.pdf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
documents/Eet2wW3x.pdf filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
documents/GW7i2xbM.pdf filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
documents/IPm0MkgQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
documents/J6buHXQ4.pdf filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
documents/KpewWz3R.pdf filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
documents/NNaGgwE5.pdf filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
documents/NlWTPen5.pdf filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
documents/PSU5pciM.pdf filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
documents/SkD8Lz8o.pdf filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
documents/UnG6cLfP.pdf filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
documents/WnxX1Buq.pdf filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
documents/XhJyv5mb.pdf filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
documents/bjBNmyNw.pdf filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
documents/phovuuuk.pdf filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
documents/qQUPWQNA.pdf filter=lfs diff=lfs merge=lfs -text
|
| 80 |
+
documents/qoSTXgNE.pdf filter=lfs diff=lfs merge=lfs -text
|
| 81 |
+
documents/tLFa76nQ.pdf filter=lfs diff=lfs merge=lfs -text
|
| 82 |
+
documents/yTRFKVPx.pdf filter=lfs diff=lfs merge=lfs -text
|
.gitignore
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__/
|
| 2 |
+
*.pyc
|
| 3 |
+
*.egg-info/
|
| 4 |
+
.pytest_cache/
|
| 5 |
+
.ruff_cache/
|
| 6 |
+
.env
|
| 7 |
+
venv/
|
| 8 |
+
.venv/
|
| 9 |
+
.DS_Store
|
| 10 |
+
.idea
|
CITATION.cff
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cff-version: 1.2.0
|
| 2 |
+
title: "DocuBench"
|
| 3 |
+
message: "If you use DocuBench, please cite this repository."
|
| 4 |
+
type: dataset
|
| 5 |
+
authors:
|
| 6 |
+
- family-names: "Merhav"
|
| 7 |
+
given-names: "Uri"
|
| 8 |
+
- family-names: "Dean"
|
| 9 |
+
given-names: "Nitai"
|
| 10 |
+
repository-code: "https://github.com/DocuPipe/docubench"
|
| 11 |
+
abstract: "A public benchmark for schema-guided structured extraction from real-world documents."
|
| 12 |
+
keywords:
|
| 13 |
+
- document extraction
|
| 14 |
+
- structured extraction
|
| 15 |
+
- benchmark
|
| 16 |
+
- JSON Schema
|
| 17 |
+
license: MIT
|
| 18 |
+
version: "0.1.0"
|
| 19 |
+
date-released: "2026-06-26"
|
CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contributing
|
| 2 |
+
|
| 3 |
+
DocuBench is intended to be reproducible benchmark infrastructure. Contributions should preserve that property.
|
| 4 |
+
|
| 5 |
+
## Development Setup
|
| 6 |
+
|
| 7 |
+
```bash
|
| 8 |
+
python3 -m venv .venv
|
| 9 |
+
source .venv/bin/activate
|
| 10 |
+
python3 -m pip install -e ".[dev]"
|
| 11 |
+
```
|
| 12 |
+
|
| 13 |
+
## Checks
|
| 14 |
+
|
| 15 |
+
Run these before opening a pull request:
|
| 16 |
+
|
| 17 |
+
```bash
|
| 18 |
+
docubench validate
|
| 19 |
+
docubench score
|
| 20 |
+
pytest
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Result Submissions
|
| 24 |
+
|
| 25 |
+
Add new system outputs under `results/<system_name>/`. Each `<doc_id>.json` file should include a top-level `data` object. See [`docs/submissions.md`](docs/submissions.md).
|
| 26 |
+
|
| 27 |
+
If your system uses a prompt or run configuration, commit it under [`prompts/`](prompts) alongside the existing baselines so the result set is reproducible and auditable.
|
| 28 |
+
|
| 29 |
+
## Leaderboard Data
|
| 30 |
+
|
| 31 |
+
The Hugging Face Space in [`space/`](space) renders `space/leaderboard.json`. After changing results or labels, refresh it so the leaderboard stays in sync:
|
| 32 |
+
|
| 33 |
+
```bash
|
| 34 |
+
docubench report
|
| 35 |
+
python3 space/build_data.py
|
| 36 |
+
```
|
| 37 |
+
|
| 38 |
+
`tests/test_space.py` fails if the committed `space/leaderboard.json` is stale.
|
| 39 |
+
|
| 40 |
+
## Dataset Changes
|
| 41 |
+
|
| 42 |
+
Changes to documents, schemas, labels, or scoring behavior can change benchmark meaning. Include:
|
| 43 |
+
|
| 44 |
+
- the reason for the change
|
| 45 |
+
- affected document IDs
|
| 46 |
+
- before/after scoring impact if applicable
|
| 47 |
+
- source and license details for any new document
|
| 48 |
+
|
| 49 |
+
Scoring changes should be treated as benchmark-version changes.
|
LICENSE
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MIT License
|
| 2 |
+
|
| 3 |
+
Copyright (c) 2026 DocuPipe
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this software and associated documentation files (the "Software"), to deal
|
| 7 |
+
in the Software without restriction, including without limitation the rights
|
| 8 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
| 9 |
+
copies of the Software, and to permit persons to whom the Software is
|
| 10 |
+
furnished to do so, subject to the following conditions:
|
| 11 |
+
|
| 12 |
+
The above copyright notice and this permission notice shall be included in all
|
| 13 |
+
copies or substantial portions of the Software.
|
| 14 |
+
|
| 15 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
| 16 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
| 17 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
| 18 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
| 19 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
| 20 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
| 21 |
+
SOFTWARE.
|
| 22 |
+
|
| 23 |
+
---
|
| 24 |
+
|
| 25 |
+
NOTE ON NON-CODE CONTENT
|
| 26 |
+
|
| 27 |
+
The MIT license above applies to the CODE in this repository (scorer.py and the
|
| 28 |
+
scripts/ directory).
|
| 29 |
+
|
| 30 |
+
- The ground-truth labels (labels/), the JSON schemas (schemas/), and the
|
| 31 |
+
extraction results (results/) are released under Creative Commons Attribution
|
| 32 |
+
4.0 International (CC BY 4.0).
|
| 33 |
+
|
| 34 |
+
- The benchmark DOCUMENTS in documents/ each retain their own license. Every
|
| 35 |
+
document's original public source and license are listed in SOURCES.md. They
|
| 36 |
+
are included for research and evaluation; some are public-domain or openly
|
| 37 |
+
licensed, some are vendor sample documents that carry third-party copyright.
|
| 38 |
+
If you are a rights-holder and want a document removed, open an issue.
|
README.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: DocuBench
|
| 3 |
+
license: cc-by-4.0
|
| 4 |
+
task_categories:
|
| 5 |
+
- document-question-answering
|
| 6 |
+
language:
|
| 7 |
+
- en
|
| 8 |
+
- he
|
| 9 |
+
- ja
|
| 10 |
+
- zh
|
| 11 |
+
- ar
|
| 12 |
+
- fr
|
| 13 |
+
- de
|
| 14 |
+
- pt
|
| 15 |
+
- nl
|
| 16 |
+
- it
|
| 17 |
+
- es
|
| 18 |
+
tags:
|
| 19 |
+
- benchmark
|
| 20 |
+
- document-ai
|
| 21 |
+
- information-extraction
|
| 22 |
+
- structured-extraction
|
| 23 |
+
- key-information-extraction
|
| 24 |
+
- ocr
|
| 25 |
+
- document-understanding
|
| 26 |
+
size_categories:
|
| 27 |
+
- n<1K
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
# DocuBench
|
| 31 |
+
|
| 32 |
+
A public benchmark for schema-guided structured extraction from 50 hard, real-world documents.
|
| 33 |
+
|
| 34 |
+
Each example contains a source document, a JSON Schema, and a hand-verified JSON label. The task is to extract the labeled structured data from the document according to the schema. Scoring is macro-average field accuracy with order-independent array matching, computed by an open standalone scorer.
|
| 35 |
+
|
| 36 |
+
Canonical repo, scorer, and raw baseline outputs: https://github.com/DocuPipe/DocuBench
|
| 37 |
+
|
| 38 |
+
## Leaderboard
|
| 39 |
+
|
| 40 |
+
Committed baselines, scored by the public scorer against the hand-verified labels:
|
| 41 |
+
|
| 42 |
+
| Rank | System | Accuracy |
|
| 43 |
+
|---:|---|---:|
|
| 44 |
+
| 1 | DocuPipe (high effort) | 97.56% |
|
| 45 |
+
| 2 | DocuPipe (standard effort) | 96.31% |
|
| 46 |
+
| 3 | Gemini | 95.80% |
|
| 47 |
+
| 4 | GPT | 93.54% |
|
| 48 |
+
| 5 | Extend | 91.11% |
|
| 49 |
+
| 6 | Claude | 90.33% |
|
| 50 |
+
|
| 51 |
+
DocuPipe built this benchmark. Every system, including DocuPipe, is scored by the same open scorer against the same labels, with identical schemas, and every raw model output is committed under `results/` in the GitHub repo so the table is reproducible.
|
| 52 |
+
|
| 53 |
+
## Composition
|
| 54 |
+
|
| 55 |
+
- 50 documents, 50 schemas, 50 hand-verified labels
|
| 56 |
+
- 10 file types: PDF, JPEG, PNG, TIFF, XLSX, CSV, XML, TXT, DOCX, HTML
|
| 57 |
+
- 11 languages/scripts: English, Hebrew, Japanese, Chinese, Arabic, French, German, Portuguese, Dutch, Italian, Spanish
|
| 58 |
+
- Failure modes covered: line-item arrays, multi-page tables, reconciling totals, right-to-left and CJK scripts, rotated scans, handwriting, nested objects, needle-in-haystack lookups
|
| 59 |
+
|
| 60 |
+
Documents cover invoices, bank and brokerage statements, utility bills, annual reports, payslips, purchase orders, waybills, lab reports, discharge summaries, engineering drawings, insurance declarations, tax forms, spreadsheets, XML, CSV, text, and HTML.
|
| 61 |
+
|
| 62 |
+
## Motivation
|
| 63 |
+
|
| 64 |
+
Many document extraction evaluations focus on single-page, flat, or QA-style tasks. DocuBench focuses on end-to-end structured extraction into realistic JSON shapes, including arrays, nested objects, multipage context, non-Latin scripts, and non-PDF inputs.
|
| 65 |
+
|
| 66 |
+
## Collection and labeling
|
| 67 |
+
|
| 68 |
+
Documents were selected from public sources, vendor sample documents, government publications, open datasets, and benchmark-authored synthetic files. Each document has a source and license record in `SOURCES.md` and `sources.json` in the GitHub repo. Labels were authored for the benchmark and manually checked field by field against the source document.
|
| 69 |
+
|
| 70 |
+
## Intended uses
|
| 71 |
+
|
| 72 |
+
- Evaluating document extraction systems
|
| 73 |
+
- Testing schema-guided extraction robustness
|
| 74 |
+
- Comparing parser or extraction workflows on public artifacts
|
| 75 |
+
- Regression testing extraction systems across file types and languages
|
| 76 |
+
|
| 77 |
+
## Out-of-scope uses
|
| 78 |
+
|
| 79 |
+
- Training models on the test labels
|
| 80 |
+
- Claiming broad document AI superiority from the headline aggregate alone
|
| 81 |
+
- Evaluating privacy handling, security, or compliance controls
|
| 82 |
+
- Treating these 50 documents as representative of all enterprise documents
|
| 83 |
+
|
| 84 |
+
## Licensing
|
| 85 |
+
|
| 86 |
+
- Code is MIT licensed.
|
| 87 |
+
- Labels, schemas, benchmark-authored metadata, and benchmark-authored results are CC BY 4.0 unless stated otherwise.
|
| 88 |
+
- Source documents retain their original licenses or publication basis.
|
| 89 |
+
|
| 90 |
+
## Citation
|
| 91 |
+
|
| 92 |
+
If you use DocuBench, cite the GitHub repository: https://github.com/DocuPipe/DocuBench
|
SOURCES.md
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Document sources and licensing
|
| 2 |
+
|
| 3 |
+
All 50 benchmark documents are included in this repository under `documents/<doc_id>.<ext>`. The table below records each document's original public source and license so provenance is fully traceable.
|
| 4 |
+
|
| 5 |
+
Most documents are public-domain government/SEC filings, openly-licensed files (CC BY-SA, Apache, MIT), vendor sample documents published for distribution, or files we authored for this benchmark (released CC BY 4.0). A few are vendor sample forms that carry their own third-party copyright; they are included here for research and evaluation, and the rights-holder is named in the license column. If you are a rights-holder and want a document removed, open an issue.
|
| 6 |
+
|
| 7 |
+
| # | doc_id | Document | Pages | Lang | Type | Original source | License / basis |
|
| 8 |
+
|---|---|---|---|---|---|---|---|
|
| 9 |
+
| 1 | `yTRFKVPx` | Smartsheet Construction Invoice | 4 | en | pdf | [link](https://www.smartsheet.com/sites/default/files/2021-11/IC-Free-Printable-Construction-Invoice-11215_PDF.pdf) | vendor free template (publicly posted) |
|
| 10 |
+
| 2 | `IPm0MkgQ` | Carson Bank Sample Statement | 6 | en | pdf | [link](https://www.carsonbank.com/wp-content/uploads/2021/01/Sample-Statement.pdf) | vendor sample (dummy data) |
|
| 11 |
+
| 3 | `ZXlksSpk` | Getbuildingworks BOQ Summary | 1 | en | pdf | [link](https://getbuildingworks.com/wp-content/uploads/2018/01/Bill-of-Quantities-Work-Section.pdf) | publicly posted sample |
|
| 12 |
+
| 4 | `QxoQ6zgn` | UICCP Packing List Carton Dimensions | 1 | en | pdf | [link](https://uiccp.com/wp-content/uploads/2014/06/Copy-of-OCM.pdf) | vendor spec sheet (publicly posted) |
|
| 13 |
+
| 5 | `PSU5pciM` | CPS Energy Electric Bill | 2 | en | pdf | [link](https://www.cpsenergy.com/content/dam/corporate/en/Documents/RAC/CustomerBills/Bill%20Sample%20-%20RA%20Rate%20-%20Non-Summer%20%20Redacted.pdf) | utility-published redacted sample |
|
| 14 |
+
| 6 | `NlWTPen5` | PPL Electric Two Bill Example | 3 | en | pdf | [link](https://www.pplelectric.com/-/media/PPLElectric/At-Your-Service/Docs/General-Supplier-Reference-Information/Two-Bill-Example.pdf) | utility reference sample |
|
| 15 |
+
| 7 | `phovuuuk` | University of Pittsburgh Filled Sample W-2 | 3 | en | pdf | [link](https://www.payroll.pitt.edu/sites/default/files/assets/Sample-W2.pdf) | university educational sample (no real PII) |
|
| 16 |
+
| 8 | `LYeb3G3s` | Labsmart CBC Lab Report | 2 | en | pdf | [link](https://www.labsmartlis.com/pdf/pathology/cbc-report-format.pdf) | LIS-vendor sample template (de-identified) |
|
| 17 |
+
| 9 | `BnftpXVQ` | SEC EDGAR FedEx Credit Agreement (excerpt) | 2 | en | pdf | [link](https://www.sec.gov/Archives/edgar/data/1048911/000156459019025065/d817656dex10207.htm) | SEC EDGAR (US gov, public domain) |
|
| 18 |
+
| 10 | `SkD8Lz8o` | SEC EDGAR Precision Lease 4th Amendment (excerpt) | 3 | en | pdf | [link](https://www.sec.gov/Archives/edgar/data/1357874/000095017024036817/dtil-ex10_12.htm) | SEC EDGAR (US gov, public domain) |
|
| 19 |
+
| 11 | `1ZVqiyJZ` | DC DISB Homeowners Declarations | 1 | en | pdf | [link](https://disb.dc.gov/sites/default/files/dc/sites/disb/publication/attachments/Declaration%20Page%20Sample%20Homeowners%2012.pdf) | DC gov sample (fictional names) |
|
| 20 |
+
| 12 | `Oe7iRM1G` | Sage French Bulletin de Paie (payslip) | 1 | fr | pdf | [link](https://www.amplitude-informatique.fr/app/download/5813294897/Bulletin+clarifie+(Exemple).PDF) | vendor demo payslip (fictional) |
|
| 21 |
+
| 13 | `XhJyv5mb` | German DEG Jahresabschluss Bilanz+GuV (excerpt) | 2 | de | pdf | [link](https://www.deginvest.de/DEG-Dokumente/Download-Center/DEG_JAB_2022_DE.pdf) | published corporate annual report |
|
| 22 |
+
| 14 | `5YJaBbNg` | Portuguese Balanco e Demonstracao de Resultados (excerpt) | 2 | pt | pdf | [link](https://www.balbino-faustino.pt/uploads/base/ficheiros/Relatorio_e_Contas_2023.pdf) | published corporate annual report |
|
| 23 |
+
| 15 | `62PhJTyf` | Dutch Jaarrekening Balans+Winst-en-verliesrekening (excerpt) | 3 | nl | pdf | [link](https://cournot.nl/wp-content/uploads/2018/03/voorbeeld-jaarrekening.pdf) | publicly posted sample (fictional company) |
|
| 24 |
+
| 16 | `WxP8Tqgf` | Italian Busta Paga (payslip) | 1 | it | pdf | [link](https://www.unife.it) | university-hosted example payslip |
|
| 25 |
+
| 17 | `DtfW60lS` | Spanish Iberdrola Factura Electricidad | 4 | es | pdf | [link](https://www.iberdrola.es) | real electricity invoice posted publicly |
|
| 26 |
+
| 18 | `nESapyAA` | Taub Hebrew Tax Invoice | 1 | he | pdf | [link](https://www.taubcenter.org.il/wp-content/uploads/2020/05/104880.pdf) | vendor-generated sample invoice (posted publicly) |
|
| 27 |
+
| 19 | `SBR9L7Y8` | Hebrew Payslip | 1 | he | jpeg | [link](https://commons.wikimedia.org/wiki/File:%D7%AA%D7%9C%D7%95%D7%A9_%D7%A9%D7%9B%D7%A8.jpg) | Wikimedia Commons, CC BY-SA 4.0 |
|
| 28 |
+
| 20 | `J6buHXQ4` | Majdal Shams Municipal Financials | 13 | he | pdf | [link](https://majdal.muni.gov.il/media/xnahdrcu/kasbi2023.pdf) | municipal government publication |
|
| 29 |
+
| 21 | `qoSTXgNE` | Zionist Strategy NGO Financials | 4 | he | pdf | [link](https://www.guidestar.org.il/organization/580429207/finances) | GuideStar Israel (gov NGO registry), public filing |
|
| 30 |
+
| 22 | `qQUPWQNA` | Ramat Gan Arnona Rates 2025 | 5 | he | pdf | [link](https://cms-media.ramat-gan.muni.il/media/a33jhfld/) | municipal government publication |
|
| 31 |
+
| 23 | `jlKc8eVi` | Hitachi Japanese Invoice | 1 | ja | pdf | [link](https://www.hitachi.co.jp/Prod/comp/soft1/pde/info/concept/pdf/sample1_b.pdf) | vendor product sample template |
|
| 32 |
+
| 24 | `45xidifn` | Hitachi Japanese Statement | 1 | ja | pdf | [link](https://www.hitachi.co.jp/Prod/comp/soft1/pde/info/concept/pdf/sample3_b.pdf) | vendor product sample template |
|
| 33 |
+
| 25 | `M66HZlWT` | Chang Gung Chinese Medical Receipt | 1 | zh | jpeg | [link](https://commons.wikimedia.org/wiki/File:Chang_Gung_Memorial_Hospital_medical_expenditure_receipt_20160224_face.jpg) | Wikimedia Commons, CC BY-SA 4.0 |
|
| 34 |
+
| 26 | `Eet2wW3x` | FRESA Arabic Tax Invoice | 1 | ar | pdf | [link](https://fresatechnologies.com/wp-content/uploads/report-formats/invoice-report-format-8-standard-invoice-arabic.pdf) | vendor sample report format (publicly posted) |
|
| 35 |
+
| 27 | `vBIz5dut` | Five Guys Receipt Photo | 1 | en | jpeg | [link](https://expressexpense.com/blog/free-receipt-images-ocr-machine-learning-dataset/) | ExpressExpense SRD dataset, MIT License |
|
| 36 |
+
| 28 | `5ukZftw0` | Financial Sample Spreadsheet (trimmed 30 rows) | 1 | en | xlsx | [link](https://learn.microsoft.com/en-us/power-bi/create-reports/sample-financial-download) | Microsoft sample-data terms (copy/use permitted) |
|
| 37 |
+
| 29 | `PYhFptk3` | EDI 850 Purchase Order | 1 | en | txt | [link](https://iwayinfocenter.informationbuilders.com/TLs/TL_soa_ebiz_edix12/source/sample_docs48.htm) | vendor docs sample X12 (synthetic) |
|
| 38 |
+
| 30 | `C7fe2lau` | Peppol UBL E-Invoice | 1 | en | xml | [link](https://github.com/OpenPEPPOL/peppol-bis-invoice-3/blob/master/rules/examples/base-example.xml) | OpenPEPPOL repo, Apache-2.0 |
|
| 39 |
+
| 31 | `iTruRDrG` | Vince Sea Waybill | 2 | en | pdf | [link](http://vincesupplierportal.vince.com/_uploads/ship/shipDocs/Seaway%20Bill%20Example.pdf) | vendor supplier-portal example |
|
| 40 |
+
| 32 | `UnG6cLfP` | Samson Oil & Gas Check Stub | 2 | en | pdf | [link](https://www.samsonco.com/images/Owner-RelationsPage-DetailedExplanationofCheckStub.pdf) | vendor sample (publicly posted) |
|
| 41 |
+
| 33 | `ENoM9faK` | NASA Mechanical Drawing (sliced from 128p) | 1 | en | pdf | [link](https://s3vi.ndc.nasa.gov/ssri-kb/static/resources/NASA%20GSFC-X-673-64-1F.pdf) | NASA (US gov work, public domain, 17 USC 105) |
|
| 42 |
+
| 34 | `97uZroyv` | Hyperfine Schedule Sheet (sliced from 16p) | 1 | en | pdf | [link](https://hyperfinearchitecture.com/wp-content/uploads/2018/06/HFC_01_Plan-Set.pdf) | (c) Hyperfine Architecture (publicly downloadable) |
|
| 43 |
+
| 35 | `NNaGgwE5` | NRCS Pedon Handwritten Form | 2 | en | pdf | [link](https://www.uvm.edu/femc/attachments/project/161/Field_Book_for_Describing_and_Sampling_Soils.pdf) | USDA-NRCS (US gov, public domain); UVM mirror |
|
| 44 |
+
| 36 | `OayFbGlG` | Optum Discharge Summary | 2 | en | pdf | [link](https://www.optumhealthsandiego.com/content/dam/san-diego/documents/ffsproviders/review-inpatient/Inpatient%20Note%20Example.pdf) | (c) Optum, sample note |
|
| 45 |
+
| 37 | `wVafMvAC` | German 1976 Wage Statement | 1 | de | jpeg | [link](https://commons.wikimedia.org/wiki/File:Entgeltabrechnung_in_einer_Versicherungsgesellschaft_1976.JPG) | CC BY 4.0 + GFDL 1.2+ (uploader Wolf1949, self-created); privately self-uploaded 1976 payslip, no printed personal name |
|
| 46 |
+
| 38 | `GW7i2xbM` | FL Homeowners Declarations | 1 | en | pdf | [link](https://myfloridacfo.com/docs-sf/consumer-services-libraries/consumerservices-documents/understanding-coverage/sample-declarations-page.pdf) | Florida state gov consumer-guide sample |
|
| 47 |
+
| 39 | `KpewWz3R` | FHA 1004 Appraisal (sliced from 21p) | 7 | en | pdf | [link](http://www.piekos.com/xSites/Appraisers/piekos/Content/UploadedFiles/FHA_1004_DEMO.pdf) | (c) Piekos / a la mode form (publicly hosted) |
|
| 48 |
+
| 40 | `tLFa76nQ` | Fidelity Brokerage Statement (sliced from 28p) | 18 | en | pdf | [link](https://www.fidelity.com/bin-public/060_www_fidelity_com/documents/sample-new-fidelity-acnt-stmt.pdf) | (c) Fidelity, published sample |
|
| 49 |
+
| 41 | `4kVtTRoL` | Moneck Merchant Statement | 5 | en | pdf | [link](https://moneck.com/uploads/samples/Merchant-Statement-Example-Format.pdf) | (c) Moneck, hosted sample |
|
| 50 |
+
| 42 | `FiFgt4a6` | Ethiopian Air Waybill | 1 | en | pdf | [link](https://www.againstmalaria.com/images/00/00/775.pdf) | public shipment AWB posting |
|
| 51 |
+
| 43 | `bjBNmyNw` | Gordmans PO Line Items | 1 | en | pdf | [link](https://mimage.opentext.com/alt_content/binary/businessnetwork/gordmans/gordmans-guide-12-20-19a.pdf) | publicly hosted vendor routing manual |
|
| 52 |
+
| 44 | `WnxX1Buq` | PG&E Solar NEM Statement | 4 | en | pdf | [link](https://www.pge.com/assets/pge/docs/account/billing-and-assistance/nem-monthly-transition-bill-base-services-charge.pdf) | utility published sample (fictitious data) |
|
| 53 |
+
| 45 | `zKibU88u` | Orders Export XML | 1 | en | xml | (generated by benchmark authors) | authored for this benchmark, CC BY 4.0 |
|
| 54 |
+
| 46 | `pw8elPW9` | Hebrew Financial Statement (DOCX) | 1 | he | docx | (generated by benchmark authors) | authored for this benchmark, CC BY 4.0 |
|
| 55 |
+
| 47 | `7ZhgzAzp` | Ethiopian Air Waybill (rotated 90, TIFF) | 1 | en | tiff | [link](https://www.againstmalaria.com/images/00/00/775.pdf) | derived (90deg rotation) from doc #42 |
|
| 56 |
+
| 48 | `B0nA2c30` | Five Guys Receipt (rotated 180, PNG) | 1 | en | png | [link](https://expressexpense.com/blog/free-receipt-images-ocr-machine-learning-dataset/) | derived (180deg rotation) from doc #27 (MIT) |
|
| 57 |
+
| 49 | `eKzY7gEA` | Clinical Discharge Summary (HTML) | 1 | en | html | (generated by benchmark authors) | authored for this benchmark, CC BY 4.0 |
|
| 58 |
+
| 50 | `ZN6HbuKp` | Bank Transaction Register (CSV) | 1 | en | csv | (generated by benchmark authors) | authored for this benchmark, CC BY 4.0 |
|
docs/dataset-card.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Dataset Card
|
| 2 |
+
|
| 3 |
+
## Dataset Summary
|
| 4 |
+
|
| 5 |
+
DocuBench is a 50-document benchmark for schema-guided structured extraction. Each example contains a source document, a JSON Schema, and a hand-verified JSON label. The task is to extract the labeled structured data from the document according to the schema.
|
| 6 |
+
|
| 7 |
+
## Composition
|
| 8 |
+
|
| 9 |
+
- 50 documents
|
| 10 |
+
- 50 schemas
|
| 11 |
+
- 50 labels
|
| 12 |
+
- 10 file types: PDF, JPEG, PNG, TIFF, XLSX, CSV, XML, TXT, DOCX, HTML
|
| 13 |
+
- 11 languages/scripts: English, Hebrew, Japanese, Chinese, Arabic, French, German, Portuguese, Dutch, Italian, Spanish
|
| 14 |
+
|
| 15 |
+
Documents cover invoices, bank and brokerage statements, utility bills, annual reports, payslips, purchase orders, waybills, lab reports, discharge summaries, engineering drawings, insurance declarations, tax forms, spreadsheets, XML, CSV, text, and HTML.
|
| 16 |
+
|
| 17 |
+
## Motivation
|
| 18 |
+
|
| 19 |
+
Many document extraction evaluations focus on single-page, flat, or QA-style tasks. DocuBench focuses on end-to-end structured extraction into realistic JSON shapes, including arrays, nested objects, multipage context, non-Latin scripts, and non-PDF inputs.
|
| 20 |
+
|
| 21 |
+
## Collection And Labeling
|
| 22 |
+
|
| 23 |
+
Documents were selected from public sources, vendor sample documents, government publications, open datasets, and benchmark-authored synthetic files. Each document has a source and license record in [`SOURCES.md`](../SOURCES.md) and [`sources.json`](../sources.json).
|
| 24 |
+
|
| 25 |
+
Labels were authored for the benchmark and manually checked field by field against the source document.
|
| 26 |
+
|
| 27 |
+
## Intended Uses
|
| 28 |
+
|
| 29 |
+
- Evaluating document extraction systems
|
| 30 |
+
- Testing schema-guided extraction robustness
|
| 31 |
+
- Comparing parser or extraction workflows on public artifacts
|
| 32 |
+
- Regression testing extraction systems across file types and languages
|
| 33 |
+
|
| 34 |
+
## Out-Of-Scope Uses
|
| 35 |
+
|
| 36 |
+
- Training models on the test labels
|
| 37 |
+
- Claiming broad document AI superiority from the headline aggregate alone
|
| 38 |
+
- Evaluating privacy handling, security, or compliance controls
|
| 39 |
+
- Treating these 50 documents as representative of all enterprise documents
|
| 40 |
+
|
| 41 |
+
## Licensing
|
| 42 |
+
|
| 43 |
+
- Code is MIT licensed.
|
| 44 |
+
- Labels, schemas, benchmark-authored metadata, and benchmark-authored results are CC BY 4.0 unless stated otherwise.
|
| 45 |
+
- Source documents retain their original licenses or publication basis.
|
| 46 |
+
|
| 47 |
+
## Maintenance
|
| 48 |
+
|
| 49 |
+
Scoring changes, label corrections, document removals, or additions should be recorded in a changelog and reflected in the benchmark version.
|
docs/explorer-preview.png
ADDED
|
Git LFS Details
|
docs/limitations.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Limitations
|
| 2 |
+
|
| 3 |
+
DocuBench is intentionally hard, but it is not exhaustive.
|
| 4 |
+
|
| 5 |
+
## Dataset Size
|
| 6 |
+
|
| 7 |
+
The benchmark has 50 documents. That is enough for careful inspection and regression testing, but not enough to support broad statistical claims about every document domain.
|
| 8 |
+
|
| 9 |
+
## Public-Document Bias
|
| 10 |
+
|
| 11 |
+
All documents are public, publicly posted samples, openly licensed files, government publications, or benchmark-authored artifacts. This improves reproducibility, but it means the corpus may differ from private enterprise document distributions.
|
| 12 |
+
|
| 13 |
+
## Label And Schema Scope
|
| 14 |
+
|
| 15 |
+
Each schema asks for selected fields rather than every possible fact in a document. A system may extract useful information that is not measured by a given schema.
|
| 16 |
+
|
| 17 |
+
## Scoring Scope
|
| 18 |
+
|
| 19 |
+
The current scorer uses normalized exact matching and greedy array alignment. It does not yet support field-specific semantic matching, numeric tolerances beyond float normalization, or globally optimal array assignment.
|
| 20 |
+
|
| 21 |
+
## Aggregate Interpretation
|
| 22 |
+
|
| 23 |
+
The headline score is a macro average over documents. Users should inspect per-document and per-capability results before making system decisions.
|
| 24 |
+
|
| 25 |
+
## Cost And Latency
|
| 26 |
+
|
| 27 |
+
Some result files include cost and timing metadata, but the benchmark does not yet enforce a uniform cost/latency reporting contract across all systems.
|
docs/scoring.md
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Scoring
|
| 2 |
+
|
| 3 |
+
DocuBench scores schema-guided extraction output against hand-verified JSON labels. The scorer is intentionally small and inspectable; the canonical implementation is [`scorer.py`](../scorer.py).
|
| 4 |
+
|
| 5 |
+
## Inputs
|
| 6 |
+
|
| 7 |
+
Each scoring call takes:
|
| 8 |
+
|
| 9 |
+
- `result`: the system output JSON object, usually from the top-level `data` key in `results/<system>/<doc_id>.json`
|
| 10 |
+
- `schema`: the JSON Schema in `schemas/<doc_id>.json`
|
| 11 |
+
- `label`: the hand-verified target JSON in `labels/<doc_id>.json`
|
| 12 |
+
|
| 13 |
+
The schema determines which fields are scored.
|
| 14 |
+
|
| 15 |
+
## Normalization
|
| 16 |
+
|
| 17 |
+
Before comparison:
|
| 18 |
+
|
| 19 |
+
- numeric values are cast to floats and rounded to six decimal places
|
| 20 |
+
- strings are lowercased
|
| 21 |
+
- whitespace is removed from strings
|
| 22 |
+
- punctuation and non-word separators are removed from strings
|
| 23 |
+
- empty strings, empty arrays, and empty objects are stripped
|
| 24 |
+
- `null` is preserved because it can represent an intentional labeled value
|
| 25 |
+
|
| 26 |
+
This normalization is meant to avoid penalizing harmless formatting differences. It is not semantic matching.
|
| 27 |
+
|
| 28 |
+
## Non-Array Fields
|
| 29 |
+
|
| 30 |
+
Non-array leaves are scored as binary exact matches after normalization.
|
| 31 |
+
|
| 32 |
+
- matching leaf: `1`
|
| 33 |
+
- mismatching leaf: `0`
|
| 34 |
+
- both sides empty: skipped
|
| 35 |
+
- one side empty: mismatch
|
| 36 |
+
|
| 37 |
+
The non-array score is `correct / total` over scored leaf fields.
|
| 38 |
+
|
| 39 |
+
## Array Fields
|
| 40 |
+
|
| 41 |
+
Arrays are scored order-independently.
|
| 42 |
+
|
| 43 |
+
1. Each labeled item is compared with each predicted item.
|
| 44 |
+
2. Item similarity is computed as binary leaf-field accuracy over the union of leaves present in either item.
|
| 45 |
+
3. The scorer greedily assigns the highest-scoring label/result item pairs without reusing either side.
|
| 46 |
+
4. Unmatched label or result items count against the score through the denominator.
|
| 47 |
+
|
| 48 |
+
Array scores are weighted by the average non-empty leaf count in labeled array items. This keeps the final score approximately leaf-weighted rather than array-count-weighted.
|
| 49 |
+
|
| 50 |
+
## Aggregate Metric
|
| 51 |
+
|
| 52 |
+
For one document, the final score is a weighted average across array and non-array components.
|
| 53 |
+
|
| 54 |
+
For a system, the headline benchmark score is the macro average of per-document final scores. Each document contributes equally to the headline aggregate.
|
| 55 |
+
|
| 56 |
+
## Known Tradeoffs
|
| 57 |
+
|
| 58 |
+
- Array matching is greedy, not globally optimal.
|
| 59 |
+
- String matching is normalized exact matching, not semantic equivalence.
|
| 60 |
+
- Extra fields outside the schema are ignored for non-array objects.
|
| 61 |
+
- Extra fields inside array items can affect item-level similarity because array item comparison uses the union of leaves.
|
| 62 |
+
- Field-specific tolerances are not yet expressed in schema metadata.
|
| 63 |
+
|
| 64 |
+
These tradeoffs are documented so scores are interpretable and reproducible. Changes to scoring behavior should be treated as benchmark-version changes.
|
docs/submissions.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Submission Format
|
| 2 |
+
|
| 3 |
+
DocuBench result sets live under:
|
| 4 |
+
|
| 5 |
+
```text
|
| 6 |
+
results/<system_name>/<doc_id>.json
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
`<system_name>` should be lowercase, filesystem-safe, and stable across reports.
|
| 10 |
+
|
| 11 |
+
## Required Per-Document File
|
| 12 |
+
|
| 13 |
+
Each document result should be a JSON object with a top-level `data` key:
|
| 14 |
+
|
| 15 |
+
```json
|
| 16 |
+
{
|
| 17 |
+
"data": {
|
| 18 |
+
"invoice_number": "INV-001",
|
| 19 |
+
"line_items": []
|
| 20 |
+
}
|
| 21 |
+
}
|
| 22 |
+
```
|
| 23 |
+
|
| 24 |
+
The `data` object is scored against `labels/<doc_id>.json` using `schemas/<doc_id>.json`.
|
| 25 |
+
|
| 26 |
+
## Recommended Metadata
|
| 27 |
+
|
| 28 |
+
Include run metadata when available:
|
| 29 |
+
|
| 30 |
+
```json
|
| 31 |
+
{
|
| 32 |
+
"data": {},
|
| 33 |
+
"cost": 0.0,
|
| 34 |
+
"time_sec": 0.0,
|
| 35 |
+
"meta": {
|
| 36 |
+
"system": "example-system",
|
| 37 |
+
"model": "model-or-api-version",
|
| 38 |
+
"run_date": "2026-06-26",
|
| 39 |
+
"configuration": "short human-readable config"
|
| 40 |
+
}
|
| 41 |
+
}
|
| 42 |
+
```
|
| 43 |
+
|
| 44 |
+
If a system fails to complete, refuses, or returns output that cannot be parsed into the
|
| 45 |
+
requested schema, still write a result file with an empty `data` object:
|
| 46 |
+
|
| 47 |
+
```json
|
| 48 |
+
{
|
| 49 |
+
"status": "failed",
|
| 50 |
+
"error": {
|
| 51 |
+
"type": "schema_mismatch",
|
| 52 |
+
"message": "model output did not conform to the schema"
|
| 53 |
+
},
|
| 54 |
+
"data": {},
|
| 55 |
+
"meta": {
|
| 56 |
+
"model": "model-or-api-version"
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
```
|
| 60 |
+
|
| 61 |
+
This makes the failure visible and causes all non-empty labeled fields for that document
|
| 62 |
+
to be counted as errors.
|
| 63 |
+
|
| 64 |
+
## Validation And Scoring
|
| 65 |
+
|
| 66 |
+
Run:
|
| 67 |
+
|
| 68 |
+
```bash
|
| 69 |
+
docubench validate
|
| 70 |
+
docubench score --engine <system_name>
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
To regenerate reports for all result sets:
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
docubench report
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
## Prompts And Run Configuration
|
| 80 |
+
|
| 81 |
+
Commit the prompt and run configuration that produced a submission under
|
| 82 |
+
[`prompts/`](../prompts), following the existing baselines. The committed LLM baselines
|
| 83 |
+
load their instruction from [`prompts/extraction_prompt.txt`](../prompts/extraction_prompt.txt)
|
| 84 |
+
at runtime, and each result file stamps its model id, provider, and `schema_mode` in
|
| 85 |
+
`meta` — together these make a result set reproducible and auditable.
|
| 86 |
+
|
| 87 |
+
## Review Expectations
|
| 88 |
+
|
| 89 |
+
Public submissions should state:
|
| 90 |
+
|
| 91 |
+
- system name and version
|
| 92 |
+
- model or provider version, if applicable
|
| 93 |
+
- extraction settings that affect output
|
| 94 |
+
- date of run
|
| 95 |
+
- whether the run was produced by released code, proprietary code, or manual workflow
|
| 96 |
+
- any documents skipped or failed
|
| 97 |
+
- cost and latency if measured
|
docubench-explorer.html
ADDED
|
@@ -0,0 +1,786 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="utf-8" />
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
| 6 |
+
<title>DocuBench — Structured Extraction Benchmark</title>
|
| 7 |
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
| 8 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Mono:wght@400;500;700&display=swap" rel="stylesheet" />
|
| 10 |
+
<style>
|
| 11 |
+
:root{
|
| 12 |
+
--green:#288a2d; /* DocuPipe brand green */
|
| 13 |
+
--green-hover:#1F7A24;
|
| 14 |
+
--green-press:#176A1C;
|
| 15 |
+
--green-bright:#22c55e; /* blueprint glow */
|
| 16 |
+
--green-wash:#E8F5E9;
|
| 17 |
+
--hero-top:#f0fdf4;
|
| 18 |
+
|
| 19 |
+
--ink:#111111;
|
| 20 |
+
--ink-2:#3A3D44;
|
| 21 |
+
--ink-soft:#696F8C;
|
| 22 |
+
--ink-faint:#9AA0AE;
|
| 23 |
+
--line:rgba(0,0,0,0.09);
|
| 24 |
+
--line-2:rgba(0,0,0,0.06);
|
| 25 |
+
--paper:#ffffff;
|
| 26 |
+
--paper-2:#F7F8F7;
|
| 27 |
+
--page-bg:#EFF2EE;
|
| 28 |
+
--track:#EDEFEE;
|
| 29 |
+
|
| 30 |
+
--shadow: 0 1px 2px rgba(16,24,16,.04), 0 18px 40px -24px rgba(16,40,20,.22);
|
| 31 |
+
--shadow-sm: 0 1px 2px rgba(16,24,16,.05), 0 6px 16px -12px rgba(16,40,20,.22);
|
| 32 |
+
--radius:14px;
|
| 33 |
+
--radius-sm:10px;
|
| 34 |
+
--ease:cubic-bezier(.22,.68,.32,1);
|
| 35 |
+
}
|
| 36 |
+
/* per-engine accent palette (brand-derived) */
|
| 37 |
+
[data-engine="docupipe_high"] { --c:#288a2d; --cd:#176A1C; --cw:#E8F5E9; }
|
| 38 |
+
[data-engine="docupipe_standard"]{ --c:#5BA85F; --cd:#3E8B45; --cw:#EEF7EF; }
|
| 39 |
+
[data-engine="gpt"] { --c:#1A6B7A; --cd:#124C57; --cw:#E4F1F3; }
|
| 40 |
+
[data-engine="extend"] { --c:#7626A6; --cd:#59197F; --cw:#F2E9F8; }
|
| 41 |
+
[data-engine="claude"] { --c:#C2622E; --cd:#97461C; --cw:#FAEEE5; }
|
| 42 |
+
[data-engine="gemini"] { --c:#3B6FD4; --cd:#2A52A0; --cw:#E9EFFB; }
|
| 43 |
+
|
| 44 |
+
*{ box-sizing:border-box; }
|
| 45 |
+
html{ -webkit-text-size-adjust:100%; }
|
| 46 |
+
body{
|
| 47 |
+
margin:0; color:var(--ink);
|
| 48 |
+
background-color:var(--page-bg);
|
| 49 |
+
background-image:
|
| 50 |
+
linear-gradient(rgba(40,138,45,.05) 1px, transparent 1px),
|
| 51 |
+
linear-gradient(90deg, rgba(40,138,45,.05) 1px, transparent 1px);
|
| 52 |
+
background-size:30px 30px;
|
| 53 |
+
background-position:center top;
|
| 54 |
+
font-family:"Roboto", system-ui, -apple-system, sans-serif;
|
| 55 |
+
font-size:15px; line-height:1.5; -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
|
| 56 |
+
}
|
| 57 |
+
.mono{ font-family:"Roboto Mono", ui-monospace, monospace; }
|
| 58 |
+
.num{ font-family:"Roboto Mono", ui-monospace, monospace; font-variant-numeric:tabular-nums; }
|
| 59 |
+
.eyebrow{ font-family:"Roboto Mono", monospace; font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--green-press); font-weight:500; }
|
| 60 |
+
a{ color:var(--green-press); }
|
| 61 |
+
|
| 62 |
+
/* ---------- reveal ---------- */
|
| 63 |
+
@keyframes rise{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:none; } }
|
| 64 |
+
.reveal{ opacity:0; animation:rise .65s var(--ease) forwards; }
|
| 65 |
+
@media (prefers-reduced-motion:reduce){ .reveal{ animation:none; opacity:1; } }
|
| 66 |
+
|
| 67 |
+
/* ---------- hero band (lives inside the frame so the margin rules run to the top) ---------- */
|
| 68 |
+
.band{ position:relative; }
|
| 69 |
+
.band__inner{ position:relative; z-index:1; padding:34px 30px 34px; }
|
| 70 |
+
|
| 71 |
+
.topbar{ display:flex; align-items:center; justify-content:space-between; gap:18px; }
|
| 72 |
+
.wordmark{ display:inline-flex; align-items:center; gap:11px; text-decoration:none; color:inherit; transition:opacity .15s var(--ease); }
|
| 73 |
+
.wordmark:hover{ opacity:.78; }
|
| 74 |
+
.logo{ width:30px; height:30px; flex:none; display:block; border-radius:8px; box-shadow:0 5px 14px -7px rgba(23,106,28,.7); }
|
| 75 |
+
.wordmark b{ font-weight:900; font-size:16px; letter-spacing:.12em; color:var(--ink); }
|
| 76 |
+
.topbar .tag-pill{ font-family:"Roboto Mono", monospace; font-size:11px; letter-spacing:.06em; color:var(--green-press); background:rgba(40,138,45,.09); border:1px solid rgba(40,138,45,.22); padding:6px 12px; border-radius:999px; }
|
| 77 |
+
|
| 78 |
+
.hero-eyebrow{ margin:46px 0 18px; }
|
| 79 |
+
h1{ font-weight:900; font-size:clamp(2.4rem, 5.4vw, 3.9rem); line-height:1.04; letter-spacing:-.02em; margin:0 0 16px; max-width:18ch; }
|
| 80 |
+
h1 .g{ color:var(--green); }
|
| 81 |
+
.lede{ color:var(--ink-soft); font-size:clamp(1rem,1.5vw,1.15rem); max-width:52ch; margin:0 0 26px; }
|
| 82 |
+
.hero-chips{ display:flex; gap:9px; flex-wrap:wrap; }
|
| 83 |
+
.hero-chips .chip{ font-family:"Roboto Mono", monospace; font-size:11.5px; color:var(--ink-2); background:rgba(255,255,255,.72); border:1px solid var(--line); padding:6px 12px; border-radius:999px; backdrop-filter:blur(4px); }
|
| 84 |
+
.hero-chips .chip b{ color:var(--ink); font-weight:700; }
|
| 85 |
+
|
| 86 |
+
/* ---------- layout ---------- */
|
| 87 |
+
.wrap{ max-width:1180px; margin:0 auto; padding:0 28px 90px; }
|
| 88 |
+
section{ margin-top:40px; }
|
| 89 |
+
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:16px; }
|
| 90 |
+
.sec-title{ font-weight:900; font-size:1.5rem; letter-spacing:-.012em; margin:5px 0 0; }
|
| 91 |
+
.sec-note{ color:var(--ink-faint); font-size:13px; max-width:46ch; }
|
| 92 |
+
|
| 93 |
+
.panel{ position:relative; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-sm); box-shadow:none; overflow:hidden; }
|
| 94 |
+
|
| 95 |
+
/* ---------- framed column: vertical margin rules with green intersection dots at each separator ---------- */
|
| 96 |
+
.frame{ position:relative; border-left:1px solid var(--line); border-right:1px solid var(--line); }
|
| 97 |
+
.frame > section{ margin:0; padding:30px 30px; }
|
| 98 |
+
.sep{ position:relative; height:0; border-top:1px solid var(--line); }
|
| 99 |
+
.sep::before, .sep::after{ content:""; position:absolute; top:0; width:6px; height:6px; border-radius:50%; background:#9097A3; box-shadow:0 0 0 3px var(--page-bg); }
|
| 100 |
+
.sep::before{ left:0; transform:translate(-50%,-50%); }
|
| 101 |
+
.sep::after{ right:0; transform:translate(50%,-50%); }
|
| 102 |
+
|
| 103 |
+
/* learn more */
|
| 104 |
+
.learn-card{ display:flex; align-items:center; justify-content:space-between; gap:22px; flex-wrap:wrap;
|
| 105 |
+
padding:24px 26px; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--paper-2); }
|
| 106 |
+
.learn-card h3{ margin:0 0 4px; font-size:16px; font-weight:700; }
|
| 107 |
+
.learn-card p{ margin:0; color:var(--ink-soft); font-size:13.5px; max-width:56ch; }
|
| 108 |
+
.learn-btn{ display:inline-flex; align-items:center; gap:8px; white-space:nowrap; font-weight:600; font-size:14px;
|
| 109 |
+
color:#fff; text-decoration:none; padding:11px 22px; border-radius:999px;
|
| 110 |
+
background:linear-gradient(135deg,#2c8c43,#176A1C); box-shadow:0 8px 18px -10px rgba(23,106,28,.8);
|
| 111 |
+
transition:transform .15s var(--ease), box-shadow .15s var(--ease); }
|
| 112 |
+
.learn-btn:hover{ transform:translateY(-1px); box-shadow:0 12px 22px -10px rgba(23,106,28,.9); }
|
| 113 |
+
|
| 114 |
+
.ctl-divider{ height:1px; background:var(--line); margin:3px 0; }
|
| 115 |
+
|
| 116 |
+
/* ---------- controls ---------- */
|
| 117 |
+
.controls{ padding:20px 24px; border-bottom:1px solid var(--line); background:var(--paper-2); display:flex; flex-direction:column; gap:16px; }
|
| 118 |
+
.ctl-group{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
|
| 119 |
+
.ctl-label{ font-family:"Roboto Mono", monospace; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); width:96px; flex:none; }
|
| 120 |
+
@media (max-width:620px){ .ctl-label{ width:auto; } }
|
| 121 |
+
/* filter units keep their label glued to their control so they wrap as a whole */
|
| 122 |
+
.filters-row{ gap:14px 18px; }
|
| 123 |
+
.fu{ display:flex; align-items:center; gap:9px; }
|
| 124 |
+
.fu-label{ font-family:"Roboto Mono", monospace; font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-faint); flex:none; }
|
| 125 |
+
.ctl-hint{ font-family:"Roboto Mono", monospace; font-size:10.5px; color:var(--ink-faint); white-space:nowrap; }
|
| 126 |
+
.ctl-subhint{ font-family:"Roboto Mono", monospace; font-size:10.5px; color:var(--ink-faint); padding-left:108px; margin-top:-9px; }
|
| 127 |
+
.sec-tools{ display:flex; align-items:center; gap:10px; }
|
| 128 |
+
@media (max-width:620px){ .ctl-subhint{ padding-left:0; } }
|
| 129 |
+
|
| 130 |
+
/* system chips (compare) */
|
| 131 |
+
.syschip{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; user-select:none;
|
| 132 |
+
font-size:13px; font-weight:500; color:var(--ink-2); background:var(--paper); border:1px solid var(--line);
|
| 133 |
+
padding:7px 13px 7px 11px; border-radius:999px; transition:all .18s var(--ease); }
|
| 134 |
+
.syschip .dot{ width:10px; height:10px; border-radius:3px; background:var(--c); transition:all .18s; }
|
| 135 |
+
.syschip .sub{ font-family:"Roboto Mono",monospace; font-size:10px; color:var(--ink-faint); letter-spacing:.02em; }
|
| 136 |
+
.syschip:hover{ border-color:rgba(0,0,0,.2); }
|
| 137 |
+
.syschip[aria-pressed="false"]{ opacity:.4; }
|
| 138 |
+
.syschip[aria-pressed="false"] .dot{ background:var(--ink-faint); }
|
| 139 |
+
.syschip[data-focal="true"]{ border-color:var(--c); background:var(--cw); color:var(--cd); box-shadow:0 0 0 1px var(--c) inset; font-weight:700; }
|
| 140 |
+
.syschip[data-focal="true"] .sub{ color:var(--cd); }
|
| 141 |
+
|
| 142 |
+
/* segmented + chips for filters */
|
| 143 |
+
.seg{ display:inline-flex; background:var(--track); border:1px solid var(--line); border-radius:999px; padding:3px; gap:2px; }
|
| 144 |
+
.seg button{ appearance:none; border:0; background:transparent; cursor:pointer; font-family:inherit; font-size:12.5px; font-weight:500; color:var(--ink-soft); padding:6px 11px; border-radius:999px; transition:all .18s var(--ease); white-space:nowrap; }
|
| 145 |
+
.seg button:hover{ color:var(--ink); }
|
| 146 |
+
.seg button[aria-pressed="true"]{ background:var(--paper); color:var(--green-press); box-shadow:var(--shadow-sm); font-weight:700; }
|
| 147 |
+
.seg button small{ font-family:"Roboto Mono",monospace; font-weight:400; opacity:.6; margin-left:4px; font-size:10px; }
|
| 148 |
+
|
| 149 |
+
.fchip{ appearance:none; cursor:pointer; font-family:inherit; font-size:12.5px; font-weight:500; color:var(--ink-2);
|
| 150 |
+
background:var(--paper); border:1px solid var(--line); border-radius:999px; padding:6px 12px; transition:all .18s var(--ease); white-space:nowrap; }
|
| 151 |
+
.fchip small{ font-family:"Roboto Mono",monospace; opacity:.55; margin-left:5px; font-size:10px; }
|
| 152 |
+
.fchip:hover{ border-color:rgba(0,0,0,.2); color:var(--ink); }
|
| 153 |
+
.fchip[aria-pressed="true"]{ background:var(--green-wash); border-color:var(--green); color:var(--green-press); font-weight:700; }
|
| 154 |
+
.fchip[aria-pressed="true"] small{ opacity:.8; }
|
| 155 |
+
|
| 156 |
+
.ctl-spacer{ flex:1; }
|
| 157 |
+
.countpill{ font-family:"Roboto Mono",monospace; font-size:12px; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:999px; padding:6px 13px; white-space:nowrap; }
|
| 158 |
+
.countpill b{ color:var(--green-press); font-weight:700; }
|
| 159 |
+
.btn{ appearance:none; cursor:pointer; font-family:inherit; font-size:12.5px; font-weight:600; color:var(--ink-soft);
|
| 160 |
+
background:var(--paper); border:1px solid var(--line); border-radius:999px; padding:7px 14px; transition:all .18s var(--ease);
|
| 161 |
+
display:inline-flex; align-items:center; gap:6px; }
|
| 162 |
+
.btn:hover{ color:var(--ink); border-color:rgba(0,0,0,.22); }
|
| 163 |
+
.btn[disabled]{ opacity:.4; cursor:default; }
|
| 164 |
+
|
| 165 |
+
/* ---------- figure body (bignum + bars) ---------- */
|
| 166 |
+
.figbody{ display:grid; grid-template-columns: minmax(220px, .8fr) 1.55fr; }
|
| 167 |
+
.figfocus{ padding:30px 30px 28px; border-right:1px solid var(--line); display:flex; flex-direction:column; background:linear-gradient(180deg,var(--cw),transparent 72%); }
|
| 168 |
+
.bignum{ font-weight:900; font-size:clamp(3.6rem,8vw,5.6rem); line-height:.9; letter-spacing:-.035em; color:var(--cd); font-variant-numeric:tabular-nums; display:flex; align-items:flex-start; }
|
| 169 |
+
.bignum .pc{ font-size:.32em; font-weight:700; margin-top:.5em; margin-left:.05em; color:var(--c); font-family:"Roboto Mono",monospace; }
|
| 170 |
+
.focusname{ margin-top:14px; font-size:1.1rem; font-weight:700; }
|
| 171 |
+
.focussub{ color:var(--ink-faint); font-size:12.5px; margin-top:2px; }
|
| 172 |
+
.focusmeta{ margin-top:auto; padding-top:22px; color:var(--ink-soft); font-size:12.5px; line-height:1.45; }
|
| 173 |
+
.focusmeta b{ color:var(--ink); }
|
| 174 |
+
|
| 175 |
+
.figbars{ padding:28px 32px 26px; display:flex; flex-direction:column; justify-content:center; gap:18px; }
|
| 176 |
+
.barrow{ display:grid; gap:8px; transition:opacity .25s; }
|
| 177 |
+
.barrow.hide{ display:none; }
|
| 178 |
+
.barrow__top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
|
| 179 |
+
.barrow__name{ font-size:14px; font-weight:500; color:var(--ink-soft); display:flex; align-items:center; gap:8px; transition:all .2s; }
|
| 180 |
+
.barrow__name small{ font-family:"Roboto Mono",monospace; font-weight:400; font-size:10px; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-faint); }
|
| 181 |
+
.barrow[data-focal="true"] .barrow__name{ color:var(--ink); font-weight:700; }
|
| 182 |
+
.lead-tag{ font-family:"Roboto Mono",monospace; font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--cd); background:var(--cw); padding:2px 7px; border-radius:999px; font-weight:600; opacity:0; transition:opacity .25s; }
|
| 183 |
+
.barrow[data-lead="true"] .lead-tag{ opacity:1; }
|
| 184 |
+
.barrow__r{ display:flex; align-items:baseline; gap:10px; }
|
| 185 |
+
.barrow__delta{ font-family:"Roboto Mono",monospace; font-size:11px; color:var(--ink-faint); min-width:6ch; text-align:right; }
|
| 186 |
+
.barrow__val{ font-family:"Roboto Mono",monospace; font-variant-numeric:tabular-nums; font-size:18px; font-weight:500; color:var(--ink-soft); min-width:5.5ch; text-align:right; transition:color .2s; }
|
| 187 |
+
.barrow[data-focal="true"] .barrow__val{ color:var(--cd); font-weight:700; }
|
| 188 |
+
.bar{ height:13px; background:var(--track); border-radius:7px; overflow:hidden; box-shadow:inset 0 1px 2px rgba(0,0,0,.05); }
|
| 189 |
+
.bar__fill{ height:100%; width:0; border-radius:7px; background:var(--c); opacity:.5; transition:width .55s var(--ease), opacity .25s; }
|
| 190 |
+
.barrow[data-focal="true"] .bar__fill{ opacity:1; background:linear-gradient(90deg,var(--cd),var(--c)); }
|
| 191 |
+
|
| 192 |
+
.axis{ margin-top:4px; display:flex; justify-content:space-between; align-items:center; padding-top:8px; border-top:1px dashed var(--line); }
|
| 193 |
+
.axis span{ font-family:"Roboto Mono",monospace; font-size:10.5px; color:var(--ink-faint); }
|
| 194 |
+
.axis .mid{ color:var(--ink-faint); }
|
| 195 |
+
.subset-cap{ margin-top:14px; font-size:12.5px; color:var(--ink-soft); }
|
| 196 |
+
.subset-cap b{ color:var(--ink); font-weight:600; }
|
| 197 |
+
.empty-fig{ padding:40px; text-align:center; color:var(--ink-faint); font-size:14px; display:none; }
|
| 198 |
+
|
| 199 |
+
/* ---------- shared grid (breakdown + docs) ---------- */
|
| 200 |
+
.ghead, .grow{ display:grid; align-items:center; }
|
| 201 |
+
.ghead{ padding:12px 24px; border-bottom:1px solid var(--line); background:var(--paper-2); position:sticky; top:0; z-index:5; }
|
| 202 |
+
.gh-col{ font-family:"Roboto Mono",monospace; font-size:10px; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-faint); }
|
| 203 |
+
.gh-eng{ display:flex; flex-direction:column; gap:2px; cursor:pointer; }
|
| 204 |
+
.gh-eng .nm{ display:flex; align-items:center; gap:6px; color:var(--ink-soft); text-transform:none; font-size:12.5px; letter-spacing:0; font-weight:600; }
|
| 205 |
+
.gh-eng[data-focal="true"] .nm{ color:var(--cd); }
|
| 206 |
+
.gh-eng .sw{ width:9px; height:9px; border-radius:3px; background:var(--c); opacity:.55; }
|
| 207 |
+
.gh-eng[data-focal="true"] .sw{ opacity:1; }
|
| 208 |
+
.gh-eng .agg{ font-family:"Roboto Mono",monospace; font-size:13px; font-weight:700; color:var(--ink-soft); text-transform:none; letter-spacing:0; }
|
| 209 |
+
.gh-eng[data-focal="true"] .agg{ color:var(--cd); }
|
| 210 |
+
.gh-eng .sortcaret{ opacity:0; font-size:9px; }
|
| 211 |
+
.gh-eng[data-sorted] .sortcaret{ opacity:.7; }
|
| 212 |
+
|
| 213 |
+
.scell{ display:grid; grid-template-columns:1fr auto; align-items:center; gap:9px; padding-right:16px; }
|
| 214 |
+
.scell__track{ height:8px; background:var(--track); border-radius:5px; overflow:hidden; }
|
| 215 |
+
.scell__fill{ height:100%; width:0; background:var(--c); opacity:.5; border-radius:5px; transition:width .5s var(--ease); }
|
| 216 |
+
.scell[data-focal="true"] .scell__fill{ opacity:1; background:linear-gradient(90deg,var(--cd),var(--c)); }
|
| 217 |
+
.scell__num{ font-family:"Roboto Mono",monospace; font-variant-numeric:tabular-nums; font-size:12.5px; color:var(--ink-soft); min-width:4ch; text-align:right; }
|
| 218 |
+
.scell[data-focal="true"] .scell__num{ color:var(--cd); font-weight:700; }
|
| 219 |
+
|
| 220 |
+
/* breakdown */
|
| 221 |
+
.bd-toggle{ display:inline-flex; }
|
| 222 |
+
.bd-body .grow{ padding:10px 24px; border-bottom:1px solid var(--line-2); transition:background .15s; }
|
| 223 |
+
.bd-body .grow:last-child{ border-bottom:0; }
|
| 224 |
+
.bd-body .grow:hover{ background:var(--paper-2); }
|
| 225 |
+
.bd-label{ display:flex; align-items:center; gap:10px; }
|
| 226 |
+
.bd-key{ font-weight:700; font-size:13.5px; text-transform:uppercase; font-family:"Roboto Mono",monospace; letter-spacing:.02em; color:var(--ink); }
|
| 227 |
+
.bd-count{ font-family:"Roboto Mono",monospace; font-size:11px; color:var(--ink-faint); }
|
| 228 |
+
.bd-count b{ color:var(--ink-soft); font-weight:600; }
|
| 229 |
+
|
| 230 |
+
/* documents table */
|
| 231 |
+
.doc-scroll{ max-height:540px; overflow-y:auto; }
|
| 232 |
+
.doc-scroll::-webkit-scrollbar{ width:10px; }
|
| 233 |
+
.doc-scroll::-webkit-scrollbar-thumb{ background:rgba(0,0,0,.16); border-radius:99px; border:3px solid var(--paper); }
|
| 234 |
+
.doc-body .grow{ padding:9px 24px; border-bottom:1px solid var(--line-2); transition:background .12s; }
|
| 235 |
+
.doc-body .grow:last-child{ border-bottom:0; }
|
| 236 |
+
.doc-body .grow:hover{ background:var(--paper-2); }
|
| 237 |
+
.doc-body .grow.hide{ display:none; }
|
| 238 |
+
.doc-label{ display:flex; align-items:flex-start; gap:10px; padding-right:18px; min-width:0; }
|
| 239 |
+
.doc-idx{ font-family:"Roboto Mono",monospace; font-size:11px; color:var(--ink-faint); width:2.4ch; text-align:right; padding-top:2px; flex:none; }
|
| 240 |
+
.doc-meta{ min-width:0; }
|
| 241 |
+
.doc-name{ font-size:13px; font-weight:600; color:var(--ink); line-height:1.3; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
| 242 |
+
.doc-source{ margin-left:7px; font-family:"Roboto Mono",monospace; font-size:10px; font-weight:600; color:var(--green-press); text-decoration:none; white-space:nowrap; }
|
| 243 |
+
.doc-source:hover{ text-decoration:underline; }
|
| 244 |
+
.doc-feat{ font-size:11px; color:var(--ink-faint); line-height:1.3; margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
| 245 |
+
.doc-tags{ display:inline-flex; gap:4px; margin-right:6px; }
|
| 246 |
+
.t{ font-family:"Roboto Mono",monospace; font-size:9px; letter-spacing:.02em; text-transform:uppercase; color:var(--ink-soft); background:var(--track); border-radius:4px; padding:1px 5px; }
|
| 247 |
+
.t.lang{ color:var(--green-press); background:var(--green-wash); }
|
| 248 |
+
.doc-empty{ padding:34px; text-align:center; color:var(--ink-faint); font-size:13px; display:none; }
|
| 249 |
+
|
| 250 |
+
/* legend / footer */
|
| 251 |
+
footer{ margin-top:46px; padding-top:22px; border-top:1px solid var(--line); display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; align-items:flex-start; }
|
| 252 |
+
footer p{ margin:0; color:var(--ink-faint); font-size:12px; max-width:62ch; }
|
| 253 |
+
.legend{ display:flex; gap:15px; flex-wrap:wrap; }
|
| 254 |
+
.legend span{ display:inline-flex; align-items:center; gap:7px; font-family:"Roboto Mono",monospace; font-size:11.5px; color:var(--ink-2); }
|
| 255 |
+
.legend i{ width:11px; height:11px; border-radius:3px; }
|
| 256 |
+
|
| 257 |
+
@media (max-width:860px){
|
| 258 |
+
.figbody{ grid-template-columns:1fr; }
|
| 259 |
+
.figfocus{ border-right:0; border-bottom:1px solid var(--line); }
|
| 260 |
+
}
|
| 261 |
+
</style>
|
| 262 |
+
</head>
|
| 263 |
+
<body>
|
| 264 |
+
|
| 265 |
+
<div class="wrap">
|
| 266 |
+
<div class="frame">
|
| 267 |
+
<!-- ============ HEADER ============ -->
|
| 268 |
+
<header class="band" data-engine="docupipe_high">
|
| 269 |
+
<div class="band__inner">
|
| 270 |
+
<div class="topbar">
|
| 271 |
+
<a class="wordmark" href="https://www.docupipe.ai?campaign=benchmark">
|
| 272 |
+
<svg class="logo" viewBox="0 0 183.69 183.69" width="30" height="30" aria-label="DocuPipe" role="img">
|
| 273 |
+
<defs><linearGradient id="dpGrad" x1="149.66" y1="-8.31" x2="34.02" y2="191.99" gradientUnits="userSpaceOnUse">
|
| 274 |
+
<stop offset="0" stop-color="#8bc973"/><stop offset=".09" stop-color="#66b160"/><stop offset=".27" stop-color="#3f984d"/><stop offset=".55" stop-color="#2c8c43"/><stop offset="1" stop-color="#2b8b43"/>
|
| 275 |
+
</linearGradient></defs>
|
| 276 |
+
<rect width="183.69" height="183.69" rx="26.83" ry="26.83" fill="url(#dpGrad)"/>
|
| 277 |
+
<path fill="#fff" d="M77.02,20.3h-39.45v111.75c.09.09.18.18.27.26h31.08v31.78c2.66.3,5.36.45,8.1.45s5.44-.15,8.1-.45c36.02-4.03,64.02-34.58,64.02-71.67,0-39.83-32.29-72.12-72.12-72.12ZM85.12,147.76v-16.27c18.15-3.75,31.79-19.82,31.79-39.07s-13.64-35.32-31.79-39.07c-2.62-.54-5.33-.82-8.1-.82h-8.1v63.58h-15.15V36.51h23.25c30.88,0,55.92,25.03,55.92,55.91,0,28.13-20.78,51.41-47.82,55.34ZM85.12,114.38v-43.91c8.93,3.3,15.29,11.88,15.29,21.95s-6.36,18.66-15.29,21.96Z"/>
|
| 278 |
+
</svg>
|
| 279 |
+
<b>DOCUPIPE</b>
|
| 280 |
+
</a>
|
| 281 |
+
<a class="tag-pill" href="https://github.com/DocuPipe/docubench" target="_blank" rel="noopener">Source & data on GitHub ↗</a>
|
| 282 |
+
</div>
|
| 283 |
+
<div class="hero-eyebrow eyebrow reveal" style="animation-delay:.02s">AI document-extraction benchmark</div>
|
| 284 |
+
<h1 class="reveal" style="animation-delay:.06s">DocuBench</h1>
|
| 285 |
+
<p class="lede reveal" style="animation-delay:.1s">DocuBench pairs 50 real-world documents with a JSON Schema and a hand-verified label, then scores each system on macro-average field accuracy. The set is deliberately hard: arrays and nested tables, right-to-left and CJK scripts, rotated scans, handwriting, and non-PDF formats.</p>
|
| 286 |
+
|
| 287 |
+
</div>
|
| 288 |
+
</header>
|
| 289 |
+
|
| 290 |
+
<div class="sep reveal" style="animation-delay:.16s"></div>
|
| 291 |
+
|
| 292 |
+
<!-- ============ FIGURE: compare + filter + bars ============ -->
|
| 293 |
+
<section class="reveal" style="animation-delay:.18s">
|
| 294 |
+
<div class="sec-head">
|
| 295 |
+
<div>
|
| 296 |
+
<h2 class="sec-title">Macro-average field accuracy</h2>
|
| 297 |
+
</div>
|
| 298 |
+
<div class="sec-tools">
|
| 299 |
+
<span class="countpill" id="countPill"><b>50</b> / 50 docs</span>
|
| 300 |
+
<button class="btn" id="resetBtn" disabled>
|
| 301 |
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12a9 9 0 1 0 3-6.7L3 8"/><path d="M3 3v5h5"/></svg>
|
| 302 |
+
Reset
|
| 303 |
+
</button>
|
| 304 |
+
</div>
|
| 305 |
+
</div>
|
| 306 |
+
|
| 307 |
+
<div class="panel">
|
| 308 |
+
<div class="controls">
|
| 309 |
+
<div class="ctl-group">
|
| 310 |
+
<span class="ctl-label">Compare</span>
|
| 311 |
+
<div id="sysChips" style="display:flex;gap:8px;flex-wrap:wrap"></div>
|
| 312 |
+
</div>
|
| 313 |
+
<div class="ctl-subhint">⌘-click a model in the list to highlight it</div>
|
| 314 |
+
<div class="ctl-divider"></div>
|
| 315 |
+
<div class="ctl-group filters-row">
|
| 316 |
+
<div class="fu"><span class="ctl-label">Language</span><div class="seg" id="fLang"></div></div>
|
| 317 |
+
<div class="fu"><span class="fu-label">Length</span><div class="seg" id="fLen"></div></div>
|
| 318 |
+
<div class="fu"><span class="fu-label">Format</span><div class="seg" id="fFmt"></div></div>
|
| 319 |
+
</div>
|
| 320 |
+
<div class="ctl-group">
|
| 321 |
+
<span class="ctl-label">Challenges</span>
|
| 322 |
+
<div id="fFeat" style="display:flex;gap:7px;flex-wrap:wrap"></div>
|
| 323 |
+
</div>
|
| 324 |
+
</div>
|
| 325 |
+
|
| 326 |
+
<div class="figbody" id="figBody" data-engine="docupipe_high">
|
| 327 |
+
<div class="figfocus" id="figFocus" data-engine="docupipe_high">
|
| 328 |
+
<div class="bignum"><span id="bigNum">97.56</span><span class="pc">%</span></div>
|
| 329 |
+
<div class="focusname" id="focusName">DocuPipe high</div>
|
| 330 |
+
<div class="focussub" id="focusSub">leads across all 50 documents</div>
|
| 331 |
+
</div>
|
| 332 |
+
<div class="figbars" id="figBars"></div>
|
| 333 |
+
</div>
|
| 334 |
+
<div class="empty-fig" id="emptyFig">No documents match the current slice. Loosen a filter.</div>
|
| 335 |
+
</div>
|
| 336 |
+
</section>
|
| 337 |
+
|
| 338 |
+
<div class="sep reveal" style="animation-delay:.2s"></div>
|
| 339 |
+
|
| 340 |
+
<!-- ============ BREAKDOWN MATRIX ============ -->
|
| 341 |
+
<section class="reveal" style="animation-delay:.22s">
|
| 342 |
+
<div class="sec-head">
|
| 343 |
+
<div>
|
| 344 |
+
<h2 class="sec-title">Accuracy by slice</h2>
|
| 345 |
+
</div>
|
| 346 |
+
<div class="seg bd-toggle" id="bdToggle" role="group" aria-label="Breakdown dimension">
|
| 347 |
+
<button data-dim="ftype" aria-pressed="true">By file type</button>
|
| 348 |
+
<button data-dim="lang" aria-pressed="false">By language</button>
|
| 349 |
+
</div>
|
| 350 |
+
</div>
|
| 351 |
+
<div class="panel">
|
| 352 |
+
<div class="ghead" id="bdHead" data-engine="docupipe_high"></div>
|
| 353 |
+
<div class="bd-body" id="bdBody"></div>
|
| 354 |
+
</div>
|
| 355 |
+
</section>
|
| 356 |
+
|
| 357 |
+
<div class="sep reveal" style="animation-delay:.24s"></div>
|
| 358 |
+
|
| 359 |
+
<!-- ============ DOCUMENTS ============ -->
|
| 360 |
+
<section class="reveal" style="animation-delay:.26s">
|
| 361 |
+
<div class="sec-head">
|
| 362 |
+
<div>
|
| 363 |
+
<h2 class="sec-title">Per-document scores</h2>
|
| 364 |
+
</div>
|
| 365 |
+
</div>
|
| 366 |
+
<div class="panel">
|
| 367 |
+
<div class="ghead" id="docHead" data-engine="docupipe_high"></div>
|
| 368 |
+
<div class="doc-scroll">
|
| 369 |
+
<div class="doc-body" id="docBody"></div>
|
| 370 |
+
<div class="doc-empty" id="docEmpty">No documents match the current slice.</div>
|
| 371 |
+
</div>
|
| 372 |
+
</div>
|
| 373 |
+
</section>
|
| 374 |
+
|
| 375 |
+
<div class="sep reveal" style="animation-delay:.28s"></div>
|
| 376 |
+
|
| 377 |
+
<!-- ============ LEARN MORE ============ -->
|
| 378 |
+
<section class="reveal" style="animation-delay:.3s">
|
| 379 |
+
<div class="sec-head">
|
| 380 |
+
<div>
|
| 381 |
+
<h2 class="sec-title">Learn more</h2>
|
| 382 |
+
</div>
|
| 383 |
+
</div>
|
| 384 |
+
<div class="learn-card">
|
| 385 |
+
<div>
|
| 386 |
+
<h3>The full DocuBench write-up</h3>
|
| 387 |
+
<p>Methodology, the scoring contract, worked examples, and a per-document analysis of where each system wins and loses.</p>
|
| 388 |
+
</div>
|
| 389 |
+
<a class="learn-btn" href="https://www.docupipe.ai/blog/docupipe-vs-extend-benchmark" target="_blank" rel="noopener">Read the write-up →</a>
|
| 390 |
+
</div>
|
| 391 |
+
</section>
|
| 392 |
+
</div><!-- /frame -->
|
| 393 |
+
|
| 394 |
+
</div>
|
| 395 |
+
|
| 396 |
+
<script>
|
| 397 |
+
/* =================== DATA =================== */
|
| 398 |
+
const DATA = {"meta": {"name": "DocuBench", "version": "0.1.0", "doc_count": 50, "metric": "macro_average_field_accuracy"}, "display": {"docupipe_high": "DocuPipe high", "docupipe_standard": "DocuPipe standard", "extend": "Extend", "gpt": "GPT-5.5", "claude": "Claude", "gemini": "Gemini"}, "docs": [{"id": "ZN6HbuKp", "name": "Bank Transaction Register (CSV)", "lang": "en", "ftype": "csv", "pages": 1, "feature": "34-row register; computed summary + filtered largeDebits[] + needle", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": true, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 0.985714, "extend": 0.539683, "gpt": 0.985714, "claude": 0.9, "gemini": 1.0}, {"id": "IPm0MkgQ", "name": "Carson Bank Sample Statement", "lang": "en", "ftype": "pdf", "pages": 6, "feature": "transaction array, cross-page straddle", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "M66HZlWT", "name": "Chang Gung Chinese Medical Receipt", "lang": "zh", "ftype": "jpeg", "pages": 1, "feature": "Chinese; self-pay + NHI-point fields, both reconcile", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": true, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "eKzY7gEA", "name": "Clinical Discharge Summary (HTML)", "lang": "en", "ftype": "html", "pages": 1, "feature": "clinical lists as array-of-objects", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "PSU5pciM", "name": "CPS Energy Electric Bill", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "electric charge array + meter read", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "1ZVqiyJZ", "name": "DC DISB Homeowners Declarations", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "coverage limits array + policy fields", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "62PhJTyf", "name": "Dutch Jaarrekening Balans+Winst-en-verliesrekening (excerpt)", "lang": "nl", "ftype": "pdf", "pages": 3, "feature": "balance-sheet + income-statement arrays, totaal activa=passiva", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 0.767123, "claude": 1.0, "gemini": 1.0}, {"id": "PYhFptk3", "name": "EDI 850 Purchase Order", "lang": "en", "ftype": "txt", "pages": 1, "feature": "X12 EDI text; envelope + 6 PO1 lines, CTT count reconciles", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.888889, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "FiFgt4a6", "name": "Ethiopian Air Waybill", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "air waybill fields (charges blank on form)", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 0.761905, "extend": 1.0, "gpt": 1.0, "claude": 0.857143, "gemini": 1.0}, {"id": "7ZhgzAzp", "name": "Ethiopian Air Waybill (rotated 90, TIFF)", "lang": "en", "ftype": "tiff", "pages": 1, "feature": "rotation-robustness; same fields as upright AWB", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": true, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 0.857143, "extend": 0.952381, "gpt": 0.952381, "claude": 1.0, "gemini": 0.95}, {"id": "KpewWz3R", "name": "FHA 1004 Appraisal (sliced from 21p)", "lang": "en", "ftype": "pdf", "pages": 7, "feature": "real estate; 5-comp sales-comparison array reconciles", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.986182, "docupipe_standard": 0.962, "extend": 0.949333, "gpt": 0.885333, "claude": 0.962, "gemini": 0.962}, {"id": "tLFa76nQ", "name": "Fidelity Brokerage Statement (sliced from 28p)", "lang": "en", "ftype": "pdf", "pages": 18, "feature": "brokerage; 18-holding + 58-activity arrays, holdings sum reconciles", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.97694, "docupipe_standard": 0.946918, "extend": 0.87605, "gpt": 0.793383, "claude": 0.729009, "gemini": 0.747722}, {"id": "5ukZftw0", "name": "Financial Sample Spreadsheet (trimmed 30 rows)", "lang": "en", "ftype": "xlsx", "pages": 1, "feature": "30-row table, computed columns reconcile per row", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.966102, "docupipe_standard": 0.966102, "extend": 0.949153, "gpt": 1.0, "claude": 0.0, "gemini": 0.661017}, {"id": "B0nA2c30", "name": "Five Guys Receipt (rotated 180, PNG)", "lang": "en", "ftype": "png", "pages": 1, "feature": "rotation-robustness; same fields as upright receipt", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": true, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 0.763469, "claude": 0.965575, "gemini": 0.976939}, {"id": "vBIz5dut", "name": "Five Guys Receipt Photo", "lang": "en", "ftype": "jpeg", "pages": 1, "feature": "photo receipt; 17-row line items w/ modifiers", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.976939, "gpt": 0.977273, "claude": 0.988469, "gemini": 0.976939}, {"id": "GW7i2xbM", "name": "FL Homeowners Declarations", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "insurance; A-F coverages, premium split as-printed", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.911765, "gpt": 0.935484, "claude": 0.935484, "gemini": 0.935484}, {"id": "Eet2wW3x", "name": "FRESA Arabic Tax Invoice", "lang": "ar", "ftype": "pdf", "pages": 1, "feature": "Arabic RTL; 4-row charge array + VAT, grand total reconciles", "flags": {"arrays": true, "reconcile": true, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.983607, "docupipe_standard": 0.983607, "extend": 0.983607, "gpt": 1.0, "claude": 1.0, "gemini": 0.983607}, {"id": "wVafMvAC", "name": "German 1976 Wage Statement", "lang": "de", "ftype": "jpeg", "pages": 1, "feature": "payslip; deduction-row array with printed trailing-minus storno (negative) amounts", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.897382, "docupipe_standard": 1.0, "extend": 0.786441, "gpt": 1.0, "claude": 0.177401, "gemini": 1.0}, {"id": "XhJyv5mb", "name": "German DEG Jahresabschluss Bilanz+GuV (excerpt)", "lang": "de", "ftype": "pdf", "pages": 2, "feature": "balance-sheet + income-statement arrays, Aktiva=Passiva", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.982609, "docupipe_standard": 0.956522, "extend": 0.735043, "gpt": 0.973913, "claude": 0.991304, "gemini": 0.973913}, {"id": "ZXlksSpk", "name": "Getbuildingworks BOQ Summary", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "25-bill summary array reconciles to grand total", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "bjBNmyNw", "name": "Gordmans PO Line Items", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "retail PO; 4 line items, extended-cost reconciles", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.952381, "docupipe_standard": 0.952381, "extend": 0.97619, "gpt": 0.642857, "claude": 1.0, "gemini": 1.0}, {"id": "pw8elPW9", "name": "Hebrew Financial Statement (DOCX)", "lang": "he", "ftype": "docx", "pages": 1, "feature": "Hebrew RTL balance sheet + income statement, reconciling totals", "flags": {"arrays": false, "reconcile": true, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.833333, "gpt": 0.833333, "claude": 1.0, "gemini": 0.962963}, {"id": "SBR9L7Y8", "name": "Hebrew Payslip", "lang": "he", "ftype": "jpeg", "pages": 1, "feature": "Hebrew RTL; 5 payment + 6 deduction rows, gross/net reconcile", "flags": {"arrays": false, "reconcile": true, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.448276, "gpt": 0.862069, "claude": 0.448276, "gemini": 0.931034}, {"id": "jlKc8eVi", "name": "Hitachi Japanese Invoice", "lang": "ja", "ftype": "pdf", "pages": 1, "feature": "Japanese; 30-row line-item array w/ symbol product codes", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": true, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.98401, "docupipe_standard": 0.98401, "extend": 0.907107, "gpt": 0.970812, "claude": 0.965736, "gemini": 0.975888}, {"id": "45xidifn", "name": "Hitachi Japanese Statement", "lang": "ja", "ftype": "pdf", "pages": 1, "feature": "Japanese; 32 trip rows + 12 subtotals, grand total reconciles", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": true, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.989461, "docupipe_standard": 1.0, "extend": 0.900077, "gpt": 0.90285, "claude": 0.802927, "gemini": 0.90285}, {"id": "97uZroyv", "name": "Hyperfine Schedule Sheet (sliced from 16p)", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "architectural door/room/window schedules; sparse blanks -> null", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 0.962085, "claude": 0.962085, "gemini": 1.0}, {"id": "WxP8Tqgf", "name": "Italian Busta Paga (payslip)", "lang": "it", "ftype": "pdf", "pages": 1, "feature": "VOCE/competenze pay-line array, gross/net reconcile", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.973505, "docupipe_standard": 0.973505, "extend": 0.942935, "gpt": 0.964674, "claude": 1.0, "gemini": 0.951766}, {"id": "LYeb3G3s", "name": "Labsmart CBC Lab Report", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "13-analyte results array, nested patient", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": true}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.980769, "gpt": 0.980769, "claude": 0.980769, "gemini": 1.0}, {"id": "J6buHXQ4", "name": "Majdal Shams Municipal Financials", "lang": "he", "ftype": "pdf", "pages": 13, "feature": "Hebrew; balance-sheet + budget receipts/payments arrays", "flags": {"arrays": true, "reconcile": false, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.954613, "docupipe_standard": 0.951444, "extend": 0.627876, "gpt": 0.925072, "claude": 0.929443, "gemini": 0.902976}, {"id": "4kVtTRoL", "name": "Moneck Merchant Statement", "lang": "en", "ftype": "pdf", "pages": 5, "feature": "merchant card statement; deposits/fees/chargebacks arrays", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.997619, "docupipe_standard": 1.0, "extend": 0.997619, "gpt": 0.866667, "claude": 0.921429, "gemini": 0.919048}, {"id": "ENoM9faK", "name": "NASA Mechanical Drawing (sliced from 128p)", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "engineering drawing; 15-row list-of-material array", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.947692, "docupipe_standard": 0.804, "extend": 0.795385, "gpt": 0.844776, "claude": 0.863582, "gemini": 1.0}, {"id": "NNaGgwE5", "name": "NRCS Pedon Handwritten Form", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "handwriting; 10 soil-horizon rows, Munsell colors", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": true, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 0.977849, "extend": 0.977528, "gpt": 0.785714, "claude": 0.977528, "gemini": 0.988764}, {"id": "OayFbGlG", "name": "Optum Discharge Summary", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "healthcare; diagnoses array, empty-meds case", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 0.944444, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "zKibU88u", "name": "Orders Export XML", "lang": "en", "ftype": "xml", "pages": 1, "feature": "200-order export; needle-extraction of one order + scattered lookups", "flags": {"arrays": false, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": true, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "C7fe2lau", "name": "Peppol UBL E-Invoice", "lang": "en", "ftype": "xml", "pages": 1, "feature": "UBL XML; 3 invoice lines + tax/monetary totals reconcile", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "WnxX1Buq", "name": "PG&E Solar NEM Statement", "lang": "en", "ftype": "pdf", "pages": 4, "feature": "energy NEM; charge-line + NEM-credit arrays reconcile", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.848485, "gpt": 0.975, "claude": 1.0, "gemini": 1.0}, {"id": "5YJaBbNg", "name": "Portuguese Balanco e Demonstracao de Resultados (excerpt)", "lang": "pt", "ftype": "pdf", "pages": 2, "feature": "balance-sheet + income-statement arrays reconcile", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.97561, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 0.97561, "claude": 0.97561, "gemini": 0.963855}, {"id": "NlWTPen5", "name": "PPL Electric Two Bill Example", "lang": "en", "ftype": "pdf", "pages": 3, "feature": "delivery charge array, usage + demand", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "qQUPWQNA", "name": "Ramat Gan Arnona Rates 2025", "lang": "he", "ftype": "pdf", "pages": 5, "feature": "Hebrew; residential + zoned/banded property-type rate arrays", "flags": {"arrays": true, "reconcile": false, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.763351, "docupipe_standard": 0.78142, "extend": 0.737057, "gpt": 0.748112, "claude": 0.799718, "gemini": 0.734771}, {"id": "Oe7iRM1G", "name": "Sage French Bulletin de Paie (payslip)", "lang": "fr", "ftype": "pdf", "pages": 1, "feature": "18-row social-contributions array, gross/net reconcile", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 0.955137, "extend": 0.809816, "gpt": 1.0, "claude": 0.841837, "gemini": 0.946454}, {"id": "UnG6cLfP", "name": "Samson Oil & Gas Check Stub", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "oil&gas revenue lines, per-line deductions, gross/net reconcile", "flags": {"arrays": false, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 0.913131, "gpt": 0.969697, "claude": 1.0, "gemini": 0.939394}, {"id": "BnftpXVQ", "name": "SEC EDGAR FedEx Credit Agreement (excerpt)", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "22-lender commitment array sums to $1.5B", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "SkD8Lz8o", "name": "SEC EDGAR Precision Lease 4th Amendment (excerpt)", "lang": "en", "ftype": "pdf", "pages": 3, "feature": "transposed multi-period rent schedule -> flat array", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 0.885714, "claude": 1.0, "gemini": 1.0}, {"id": "yTRFKVPx", "name": "Smartsheet Construction Invoice", "lang": "en", "ftype": "pdf", "pages": 4, "feature": "materials/labor/misc line-item arrays, reconciling totals", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "DtfW60lS", "name": "Spanish Iberdrola Factura Electricidad", "lang": "es", "ftype": "pdf", "pages": 4, "feature": "facturacion charge array reconciles to Total a pagar", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "nESapyAA", "name": "Taub Hebrew Tax Invoice", "lang": "he", "ftype": "pdf", "pages": 1, "feature": "Hebrew RTL; line-item + payment, 18% VAT reconciles", "flags": {"arrays": false, "reconcile": true, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.954545, "docupipe_standard": 0.954545, "extend": 1.0, "gpt": 0.909091, "claude": 0.909091, "gemini": 0.909091}, {"id": "QxoQ6zgn", "name": "UICCP Packing List Carton Dimensions", "lang": "en", "ftype": "pdf", "pages": 1, "feature": "carton/packing spec table array", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 1.0}, {"id": "phovuuuk", "name": "University of Pittsburgh Filled Sample W-2", "lang": "en", "ftype": "pdf", "pages": 3, "feature": "box 12 + box 14 code arrays", "flags": {"arrays": true, "reconcile": false, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 1.0, "docupipe_standard": 1.0, "extend": 1.0, "gpt": 1.0, "claude": 1.0, "gemini": 0.961538}, {"id": "iTruRDrG", "name": "Vince Sea Waybill", "lang": "en", "ftype": "pdf", "pages": 2, "feature": "cargo array w/ HS codes, cartons/weight/cbm reconcile", "flags": {"arrays": true, "reconcile": true, "rtl": false, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.8, "docupipe_standard": 0.8, "extend": 0.615385, "gpt": 0.981818, "claude": 0.628571, "gemini": 1.0}, {"id": "qoSTXgNE", "name": "Zionist Strategy NGO Financials", "lang": "he", "ftype": "pdf", "pages": 4, "feature": "Hebrew; 3-statement leaf line items, 3 reconciliations", "flags": {"arrays": false, "reconcile": true, "rtl": true, "cjk": false, "handwriting": false, "rotated": false, "needle": false, "nested": false}, "docupipe_high": 0.694444, "docupipe_standard": 0.65625, "extend": 0.694444, "gpt": 0.75, "claude": 0.65, "gemini": 0.740741}]};
|
| 399 |
+
|
| 400 |
+
const ENGINES = {
|
| 401 |
+
docupipe_high: { label:"DocuPipe", tier:"high effort" },
|
| 402 |
+
docupipe_standard: { label:"DocuPipe", tier:"standard" },
|
| 403 |
+
gpt: { label:"GPT-5.5", tier:"" },
|
| 404 |
+
extend: { label:"Extend", tier:"" },
|
| 405 |
+
claude: { label:"Claude", tier:"Sonnet 4.6" },
|
| 406 |
+
gemini: { label:"Gemini", tier:"3.5 Flash" },
|
| 407 |
+
};
|
| 408 |
+
const ORDER = ["docupipe_high","gemini","gpt","extend","claude","docupipe_standard"];
|
| 409 |
+
|
| 410 |
+
/* =================== STATE =================== */
|
| 411 |
+
const state = {
|
| 412 |
+
shown: new Set(ORDER),
|
| 413 |
+
focal: "docupipe_high",
|
| 414 |
+
filters: { lang:"all", len:"all", fmt:"all", features:new Set() },
|
| 415 |
+
dim: "ftype",
|
| 416 |
+
sortKey: "docupipe_high",
|
| 417 |
+
sortDir: -1,
|
| 418 |
+
};
|
| 419 |
+
|
| 420 |
+
/* =================== HELPERS =================== */
|
| 421 |
+
const mean = a => a.length ? a.reduce((x,y)=>x+y,0)/a.length : 0;
|
| 422 |
+
const fmt = (v,dp=2) => (v*100).toFixed(dp);
|
| 423 |
+
const IMG = new Set(["jpeg","png","tiff"]);
|
| 424 |
+
|
| 425 |
+
function matches(d){
|
| 426 |
+
const f = state.filters;
|
| 427 |
+
if(f.lang==="en" && d.lang!=="en") return false;
|
| 428 |
+
if(f.lang==="non" && d.lang==="en") return false;
|
| 429 |
+
if(f.len==="single" && d.pages!==1) return false;
|
| 430 |
+
if(f.len==="multi" && !(d.pages>1)) return false;
|
| 431 |
+
if(f.len==="long" && !(d.pages>5)) return false;
|
| 432 |
+
if(f.fmt==="pdf" && d.ftype!=="pdf") return false;
|
| 433 |
+
if(f.fmt==="image" && !IMG.has(d.ftype)) return false;
|
| 434 |
+
if(f.fmt==="other" && (d.ftype==="pdf"||IMG.has(d.ftype))) return false;
|
| 435 |
+
for(const fl of f.features){ if(!d.flags[fl]) return false; }
|
| 436 |
+
return true;
|
| 437 |
+
}
|
| 438 |
+
const subsetDocs = () => DATA.docs.filter(matches);
|
| 439 |
+
function aggFor(engine, docs){ return mean(docs.map(d=>d[engine])); }
|
| 440 |
+
|
| 441 |
+
function floorScale(minPct){
|
| 442 |
+
if(minPct >= 100) return 95; // avoid a zero-width scale when every system is perfect
|
| 443 |
+
let fl = Math.floor(minPct/5)*5; // floor to the nearest 5 below the lowest system
|
| 444 |
+
if(minPct - fl < 0.25) fl -= 5; // only step down if the min sits right on the gridline
|
| 445 |
+
return Math.max(0, fl);
|
| 446 |
+
}
|
| 447 |
+
const shownOrder = () => ORDER.filter(k=>state.shown.has(k));
|
| 448 |
+
|
| 449 |
+
/* =================== BUILD: system chips =================== */
|
| 450 |
+
const sysChips = document.getElementById("sysChips");
|
| 451 |
+
ORDER.forEach(k=>{
|
| 452 |
+
const e = ENGINES[k];
|
| 453 |
+
const b = document.createElement("button");
|
| 454 |
+
b.className="syschip"; b.dataset.engine=k;
|
| 455 |
+
b.setAttribute("aria-pressed","true");
|
| 456 |
+
b.innerHTML = `<span class="dot"></span><span>${e.label}</span>${e.tier?`<span class="sub">${e.tier}</span>`:""}`;
|
| 457 |
+
// normal click = include/exclude in the comparison (at least one must stay on);
|
| 458 |
+
// ⌘/Ctrl-click = highlight that model (showing it first if it was hidden)
|
| 459 |
+
b.addEventListener("click",(ev)=>{
|
| 460 |
+
if(ev.metaKey || ev.ctrlKey){
|
| 461 |
+
if(!state.shown.has(k)) state.shown.add(k);
|
| 462 |
+
state.focal=k;
|
| 463 |
+
renderAll();
|
| 464 |
+
return;
|
| 465 |
+
}
|
| 466 |
+
if(state.shown.has(k)){
|
| 467 |
+
if(state.shown.size===1) return; // keep at least one
|
| 468 |
+
state.shown.delete(k);
|
| 469 |
+
if(state.focal===k) state.focal=shownOrder()[0]; // hand off the highlight
|
| 470 |
+
} else {
|
| 471 |
+
state.shown.add(k);
|
| 472 |
+
}
|
| 473 |
+
renderAll();
|
| 474 |
+
});
|
| 475 |
+
sysChips.appendChild(b);
|
| 476 |
+
});
|
| 477 |
+
|
| 478 |
+
/* =================== BUILD: filter controls =================== */
|
| 479 |
+
function buildSeg(host, options, getCur, onPick){
|
| 480 |
+
host.innerHTML="";
|
| 481 |
+
options.forEach(o=>{
|
| 482 |
+
const b=document.createElement("button");
|
| 483 |
+
b.innerHTML = `${o.label}${o.count!=null?`<small>${o.count}</small>`:""}`;
|
| 484 |
+
b.addEventListener("click",()=>{ onPick(o.value); refreshSeg(host,options,getCur); renderAll(); });
|
| 485 |
+
host.appendChild(b);
|
| 486 |
+
});
|
| 487 |
+
refreshSeg(host,options,getCur);
|
| 488 |
+
}
|
| 489 |
+
function refreshSeg(host,options,getCur){
|
| 490 |
+
[...host.children].forEach((b,i)=> b.setAttribute("aria-pressed", options[i].value===getCur()));
|
| 491 |
+
}
|
| 492 |
+
const cnt = pred => DATA.docs.filter(pred).length;
|
| 493 |
+
|
| 494 |
+
buildSeg(document.getElementById("fLang"),
|
| 495 |
+
[{label:"All",value:"all"},{label:"English",value:"en",count:cnt(d=>d.lang==="en")},{label:"Non-English",value:"non",count:cnt(d=>d.lang!=="en")}],
|
| 496 |
+
()=>state.filters.lang, v=>state.filters.lang=v);
|
| 497 |
+
|
| 498 |
+
buildSeg(document.getElementById("fLen"),
|
| 499 |
+
[{label:"All",value:"all"},{label:"1 page",value:"single",count:cnt(d=>d.pages===1)},{label:"Multi",value:"multi",count:cnt(d=>d.pages>1)},{label:"6+ pages",value:"long",count:cnt(d=>d.pages>5)}],
|
| 500 |
+
()=>state.filters.len, v=>state.filters.len=v);
|
| 501 |
+
|
| 502 |
+
buildSeg(document.getElementById("fFmt"),
|
| 503 |
+
[{label:"All",value:"all"},{label:"PDF",value:"pdf",count:cnt(d=>d.ftype==="pdf")},{label:"Image",value:"image",count:cnt(d=>IMG.has(d.ftype))},{label:"Other",value:"other",count:cnt(d=>d.ftype!=="pdf"&&!IMG.has(d.ftype))}],
|
| 504 |
+
()=>state.filters.fmt, v=>state.filters.fmt=v);
|
| 505 |
+
|
| 506 |
+
const FEATURES = [
|
| 507 |
+
{flag:"arrays", label:"Arrays"},
|
| 508 |
+
{flag:"reconcile", label:"Reconciling totals"},
|
| 509 |
+
{flag:"rtl", label:"RTL script"},
|
| 510 |
+
{flag:"cjk", label:"CJK script"},
|
| 511 |
+
{flag:"rotated", label:"Rotated scan"},
|
| 512 |
+
{flag:"needle", label:"Needle-in-haystack"},
|
| 513 |
+
{flag:"handwriting", label:"Handwriting"},
|
| 514 |
+
];
|
| 515 |
+
const fFeat = document.getElementById("fFeat");
|
| 516 |
+
FEATURES.forEach(f=>{
|
| 517 |
+
const c = cnt(d=>d.flags[f.flag]); if(c===0) return;
|
| 518 |
+
const b=document.createElement("button");
|
| 519 |
+
b.className="fchip"; b.setAttribute("aria-pressed","false");
|
| 520 |
+
b.innerHTML = `${f.label}<small>${c}</small>`;
|
| 521 |
+
b.addEventListener("click",()=>{
|
| 522 |
+
if(state.filters.features.has(f.flag)) state.filters.features.delete(f.flag);
|
| 523 |
+
else state.filters.features.add(f.flag);
|
| 524 |
+
b.setAttribute("aria-pressed", state.filters.features.has(f.flag));
|
| 525 |
+
renderAll();
|
| 526 |
+
});
|
| 527 |
+
fFeat.appendChild(b);
|
| 528 |
+
});
|
| 529 |
+
|
| 530 |
+
document.getElementById("resetBtn").addEventListener("click",()=>{
|
| 531 |
+
state.filters = { lang:"all", len:"all", fmt:"all", features:new Set() };
|
| 532 |
+
// re-mark the first ("All") option of each segmented control as active
|
| 533 |
+
document.querySelectorAll("#fLang button,#fLen button,#fFmt button").forEach(b=>b.setAttribute("aria-pressed","false"));
|
| 534 |
+
document.querySelectorAll('#fLang button')[0].setAttribute("aria-pressed","true");
|
| 535 |
+
document.querySelectorAll('#fLen button')[0].setAttribute("aria-pressed","true");
|
| 536 |
+
document.querySelectorAll('#fFmt button')[0].setAttribute("aria-pressed","true");
|
| 537 |
+
fFeat.querySelectorAll("button").forEach(b=>b.setAttribute("aria-pressed","false"));
|
| 538 |
+
renderAll();
|
| 539 |
+
});
|
| 540 |
+
|
| 541 |
+
/* =================== BUILD: hero bars (persistent rows) =================== */
|
| 542 |
+
const figBars = document.getElementById("figBars");
|
| 543 |
+
const barRefs = {};
|
| 544 |
+
ORDER.forEach(k=>{
|
| 545 |
+
const e=ENGINES[k];
|
| 546 |
+
const row=document.createElement("div");
|
| 547 |
+
row.className="barrow"; row.dataset.engine=k;
|
| 548 |
+
row.innerHTML=`
|
| 549 |
+
<div class="barrow__top">
|
| 550 |
+
<div class="barrow__name">${e.label}${e.tier?` <small>${e.tier}</small>`:""} <span class="lead-tag">Winner</span></div>
|
| 551 |
+
<div class="barrow__r"><span class="barrow__delta"></span><span class="barrow__val num"></span></div>
|
| 552 |
+
</div>
|
| 553 |
+
<div class="bar"><div class="bar__fill"></div></div>`;
|
| 554 |
+
figBars.appendChild(row);
|
| 555 |
+
barRefs[k]={ row, name:row.querySelector(".barrow__name"), delta:row.querySelector(".barrow__delta"), val:row.querySelector(".barrow__val"), fill:row.querySelector(".bar__fill") };
|
| 556 |
+
});
|
| 557 |
+
const axisEl=document.createElement("div");
|
| 558 |
+
axisEl.className="axis";
|
| 559 |
+
axisEl.innerHTML=`<span id="axMin">90%</span><span>100%</span>`;
|
| 560 |
+
figBars.appendChild(axisEl);
|
| 561 |
+
const capEl=document.createElement("div");
|
| 562 |
+
capEl.className="subset-cap"; capEl.id="subsetCap";
|
| 563 |
+
figBars.appendChild(capEl);
|
| 564 |
+
|
| 565 |
+
/* =================== BUILD: matrix + docs headers/bodies =================== */
|
| 566 |
+
const bdHead=document.getElementById("bdHead"), bdBody=document.getElementById("bdBody");
|
| 567 |
+
const docHead=document.getElementById("docHead"), docBody=document.getElementById("docBody");
|
| 568 |
+
|
| 569 |
+
function gridTemplate(nSys, labelFr){ return `${labelFr} repeat(${nSys}, minmax(96px, .8fr))`; }
|
| 570 |
+
function sourceFileHref(d){
|
| 571 |
+
const path = `documents/${d.id}.${d.ftype}`;
|
| 572 |
+
if(location.protocol === "file:") return path;
|
| 573 |
+
return `https://github.com/DocuPipe/docubench/blob/main/${path}`;
|
| 574 |
+
}
|
| 575 |
+
|
| 576 |
+
/* docs rows persistent */
|
| 577 |
+
const docRefs={};
|
| 578 |
+
DATA.docs.forEach((d,i)=>{
|
| 579 |
+
const row=document.createElement("div"); row.className="grow"; row.dataset.id=d.id;
|
| 580 |
+
row.innerHTML=`<div class="doc-label">
|
| 581 |
+
<span class="doc-idx num"></span>
|
| 582 |
+
<div class="doc-meta">
|
| 583 |
+
<div class="doc-name"><span class="doc-tags"><span class="t lang">${d.lang}</span><span class="t">${d.ftype}</span></span>${d.name}<a class="doc-source" href="${sourceFileHref(d)}" target="_blank" rel="noopener">source file</a></div>
|
| 584 |
+
<div class="doc-feat">${d.feature}</div>
|
| 585 |
+
</div>
|
| 586 |
+
</div>`;
|
| 587 |
+
docBody.appendChild(row);
|
| 588 |
+
docRefs[d.id]={ row, idx:row.querySelector(".doc-idx"), cells:{} };
|
| 589 |
+
});
|
| 590 |
+
|
| 591 |
+
/* =================== RENDER =================== */
|
| 592 |
+
function propagateEngine(){
|
| 593 |
+
const k=state.focal;
|
| 594 |
+
["figBody","figFocus","bdHead","docHead"].forEach(id=>document.getElementById(id).dataset.engine=k);
|
| 595 |
+
document.querySelector(".band").dataset.engine=k;
|
| 596 |
+
}
|
| 597 |
+
|
| 598 |
+
function renderAll(){
|
| 599 |
+
propagateEngine();
|
| 600 |
+
const shown=shownOrder();
|
| 601 |
+
const docs=subsetDocs();
|
| 602 |
+
const agg={}; shown.forEach(k=>agg[k]=aggFor(k,docs));
|
| 603 |
+
|
| 604 |
+
// system chips state
|
| 605 |
+
ORDER.forEach(k=>{
|
| 606 |
+
const b=[...sysChips.children].find(x=>x.dataset.engine===k);
|
| 607 |
+
b.setAttribute("aria-pressed", state.shown.has(k));
|
| 608 |
+
b.dataset.focal = (k===state.focal);
|
| 609 |
+
});
|
| 610 |
+
|
| 611 |
+
// count + reset
|
| 612 |
+
const f=state.filters;
|
| 613 |
+
const active = f.lang!=="all"||f.len!=="all"||f.fmt!=="all"||f.features.size>0;
|
| 614 |
+
document.getElementById("countPill").innerHTML=`<b>${docs.length}</b> / 50 docs`;
|
| 615 |
+
document.getElementById("resetBtn").disabled=!active;
|
| 616 |
+
|
| 617 |
+
const figBody=document.getElementById("figBody");
|
| 618 |
+
const emptyFig=document.getElementById("emptyFig");
|
| 619 |
+
if(docs.length===0){
|
| 620 |
+
figBody.style.display="none"; emptyFig.style.display="block";
|
| 621 |
+
} else {
|
| 622 |
+
figBody.style.display=""; emptyFig.style.display="none";
|
| 623 |
+
renderBars(shown, agg, docs);
|
| 624 |
+
}
|
| 625 |
+
|
| 626 |
+
renderMatrix(shown);
|
| 627 |
+
renderDocs(shown, docs);
|
| 628 |
+
renderLegend(shown);
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
function renderBars(shown, agg, docs){
|
| 632 |
+
const vals=shown.map(k=>agg[k]);
|
| 633 |
+
const maxV=Math.max(...vals), minV=Math.min(...vals);
|
| 634 |
+
const floorPct=floorScale(minV*100);
|
| 635 |
+
document.getElementById("axMin").textContent=floorPct+"%";
|
| 636 |
+
const span=100-floorPct;
|
| 637 |
+
// ranking
|
| 638 |
+
const ranked=[...shown].sort((a,b)=>agg[b]-agg[a]);
|
| 639 |
+
|
| 640 |
+
ORDER.forEach(k=>{
|
| 641 |
+
const r=barRefs[k];
|
| 642 |
+
if(!state.shown.has(k)){ r.row.classList.add("hide"); return; }
|
| 643 |
+
r.row.classList.remove("hide");
|
| 644 |
+
r.row.style.order=ranked.indexOf(k);
|
| 645 |
+
const v=agg[k];
|
| 646 |
+
r.val.textContent=fmt(v,2);
|
| 647 |
+
r.fill.style.width=(Math.max(0,(v*100-floorPct))/span*100).toFixed(2)+"%";
|
| 648 |
+
const isFocal=k===state.focal;
|
| 649 |
+
r.row.dataset.focal=isFocal;
|
| 650 |
+
r.row.dataset.lead=(Math.abs(v-maxV)<1e-9);
|
| 651 |
+
if(isFocal){ r.delta.textContent=""; }
|
| 652 |
+
else{ const d=parseFloat(fmt(v,2))-parseFloat(fmt(agg[state.focal],2)); r.delta.textContent=(d>=0?"+":"−")+Math.abs(d).toFixed(2); }
|
| 653 |
+
});
|
| 654 |
+
|
| 655 |
+
// focus panel
|
| 656 |
+
const fa=agg[state.focal];
|
| 657 |
+
document.getElementById("bigNum").textContent=fmt(fa,2);
|
| 658 |
+
const e=ENGINES[state.focal];
|
| 659 |
+
document.getElementById("focusName").textContent=`${e.label}${e.tier?" "+e.tier:""}`;
|
| 660 |
+
const isLead=Math.abs(fa-maxV)<1e-9;
|
| 661 |
+
const n=docs.length;
|
| 662 |
+
document.getElementById("focusSub").textContent= isLead
|
| 663 |
+
? `leads across ${n} document${n>1?"s":""}`
|
| 664 |
+
: `#${ranked.indexOf(state.focal)+1} of ${shown.length} on ${n} document${n>1?"s":""}`;
|
| 665 |
+
document.getElementById("subsetCap").innerHTML = subsetCaption(n);
|
| 666 |
+
}
|
| 667 |
+
|
| 668 |
+
function subsetCaption(n){
|
| 669 |
+
const f=state.filters; const parts=[];
|
| 670 |
+
if(f.lang==="en") parts.push("English"); else if(f.lang==="non") parts.push("non-English");
|
| 671 |
+
if(f.len==="single") parts.push("single-page"); else if(f.len==="multi") parts.push("multi-page"); else if(f.len==="long") parts.push("6+ pages");
|
| 672 |
+
if(f.fmt==="pdf") parts.push("PDF"); else if(f.fmt==="image") parts.push("image"); else if(f.fmt==="other") parts.push("non-PDF/image");
|
| 673 |
+
FEATURES.forEach(ft=>{ if(f.features.has(ft.flag)) parts.push(ft.label); });
|
| 674 |
+
if(!parts.length) return `Across <b>all ${n}</b> documents in the benchmark.`;
|
| 675 |
+
return `Across <b>${n}</b> document${n>1?"s":""}: ${parts.join(" · ")}.`;
|
| 676 |
+
}
|
| 677 |
+
|
| 678 |
+
function engHeaderCols(host, labelText, sortable){
|
| 679 |
+
const shown=shownOrder();
|
| 680 |
+
host.style.gridTemplateColumns=gridTemplate(shown.length, host===docHead?"1.7fr":"1.4fr");
|
| 681 |
+
let html=`<div class="gh-col">${labelText}</div>`;
|
| 682 |
+
shown.forEach(k=>{
|
| 683 |
+
const e=ENGINES[k];
|
| 684 |
+
const sorted = sortable && state.sortKey===k;
|
| 685 |
+
html+=`<div class="gh-eng gh-col" data-engine="${k}" data-key="${k}" ${state.focal===k?'data-focal="true"':""} ${sorted?`data-sorted="${state.sortDir}"`:""}>
|
| 686 |
+
<div class="nm"><span class="sw"></span>${e.label}${e.tier?" "+e.tier:""} ${sortable?`<span class="sortcaret">${sorted?(state.sortDir<0?"▼":"▲"):"▾"}</span>`:""}</div>
|
| 687 |
+
<div class="agg">${"—"}</div></div>`;
|
| 688 |
+
});
|
| 689 |
+
host.innerHTML=html;
|
| 690 |
+
}
|
| 691 |
+
|
| 692 |
+
let bdCellMap={};
|
| 693 |
+
function renderMatrix(shown){
|
| 694 |
+
// header
|
| 695 |
+
engHeaderCols(bdHead, "Slice", false);
|
| 696 |
+
// aggregates over FULL set
|
| 697 |
+
shown.forEach(k=>{ const a=aggFor(k,DATA.docs); bdHead.querySelector(`.gh-eng[data-key="${k}"] .agg`).textContent=fmt(a,2)+"%"; });
|
| 698 |
+
// rows
|
| 699 |
+
const groups={};
|
| 700 |
+
DATA.docs.forEach(d=>{ const v=d[state.dim]; (groups[v]||=[]).push(d); });
|
| 701 |
+
const rows=Object.keys(groups).map(v=>({value:v,docs:groups[v]}));
|
| 702 |
+
rows.sort((a,b)=>b.docs.length-a.docs.length || a.value.localeCompare(b.value));
|
| 703 |
+
|
| 704 |
+
bdBody.innerHTML=""; bdCellMap={};
|
| 705 |
+
rows.forEach(r=>{
|
| 706 |
+
const el=document.createElement("div"); el.className="grow";
|
| 707 |
+
el.style.gridTemplateColumns=gridTemplate(shown.length,"1.4fr");
|
| 708 |
+
let html=`<div class="bd-label"><span class="bd-key">${r.value}</span><span class="bd-count"><b>${r.docs.length}</b> doc${r.docs.length>1?"s":""}</span></div>`;
|
| 709 |
+
shown.forEach(k=>{
|
| 710 |
+
const v=aggFor(k,r.docs);
|
| 711 |
+
html+=`<div class="scell" data-engine="${k}" ${state.focal===k?'data-focal="true"':""}>
|
| 712 |
+
<div class="scell__track"><div class="scell__fill" style="width:${(v*100).toFixed(1)}%"></div></div>
|
| 713 |
+
<span class="scell__num">${fmt(v,1)}</span></div>`;
|
| 714 |
+
});
|
| 715 |
+
el.innerHTML=html; bdBody.appendChild(el);
|
| 716 |
+
});
|
| 717 |
+
// header click = nothing for matrix
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
function renderDocs(shown, docs){
|
| 721 |
+
engHeaderCols(docHead, `Document · n=${docs.length}`, true);
|
| 722 |
+
// header aggregates over subset + sort handlers
|
| 723 |
+
shown.forEach(k=>{
|
| 724 |
+
const a=aggFor(k,docs);
|
| 725 |
+
docHead.querySelector(`.gh-eng[data-key="${k}"] .agg`).textContent= docs.length?fmt(a,2)+"%":"—";
|
| 726 |
+
const col=docHead.querySelector(`.gh-eng[data-key="${k}"]`);
|
| 727 |
+
col.onclick=()=>{ if(state.sortKey===k) state.sortDir*=-1; else { state.sortKey=k; state.sortDir=-1; } renderAll(); };
|
| 728 |
+
});
|
| 729 |
+
// ensure sortKey is shown
|
| 730 |
+
if(!state.shown.has(state.sortKey)) state.sortKey=shown[0];
|
| 731 |
+
|
| 732 |
+
// order rows
|
| 733 |
+
const visIds=new Set(docs.map(d=>d.id));
|
| 734 |
+
const sorted=[...docs].sort((a,b)=> (a[state.sortKey]-b[state.sortKey])*state.sortDir || a.name.localeCompare(b.name));
|
| 735 |
+
|
| 736 |
+
let n=0;
|
| 737 |
+
// hide all first, then place sorted
|
| 738 |
+
DATA.docs.forEach(d=>{ docRefs[d.id].row.classList.add("hide"); });
|
| 739 |
+
sorted.forEach((d,i)=>{
|
| 740 |
+
const ref=docRefs[d.id]; ref.row.classList.remove("hide"); ref.row.style.order=i;
|
| 741 |
+
ref.idx.textContent=String(++n).padStart(2,"0");
|
| 742 |
+
// (re)build cells to match shown systems
|
| 743 |
+
rebuildDocCells(d, shown);
|
| 744 |
+
});
|
| 745 |
+
document.getElementById("docEmpty").style.display = docs.length?"none":"block";
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
function rebuildDocCells(d, shown){
|
| 749 |
+
const ref=docRefs[d.id];
|
| 750 |
+
ref.row.style.gridTemplateColumns=gridTemplate(shown.length,"1.7fr");
|
| 751 |
+
// remove old score cells
|
| 752 |
+
ref.row.querySelectorAll(".scell").forEach(n=>n.remove());
|
| 753 |
+
shown.forEach(k=>{
|
| 754 |
+
const v=d[k];
|
| 755 |
+
const cell=document.createElement("div");
|
| 756 |
+
cell.className="scell"; cell.dataset.engine=k; if(state.focal===k) cell.dataset.focal="true";
|
| 757 |
+
cell.innerHTML=`<div class="scell__track"><div class="scell__fill" style="width:${(v*100).toFixed(1)}%"></div></div><span class="scell__num">${fmt(v,1)}</span>`;
|
| 758 |
+
ref.row.appendChild(cell);
|
| 759 |
+
});
|
| 760 |
+
}
|
| 761 |
+
|
| 762 |
+
function renderLegend(shown){
|
| 763 |
+
const legend=document.getElementById("legend"); if(!legend) return;
|
| 764 |
+
legend.innerHTML="";
|
| 765 |
+
ORDER.forEach(k=>{
|
| 766 |
+
if(!state.shown.has(k)) return;
|
| 767 |
+
const e=ENGINES[k];
|
| 768 |
+
const s=document.createElement("span"); s.dataset.engine=k;
|
| 769 |
+
s.innerHTML=`<i style="background:var(--c);opacity:${k===state.focal?1:.55}"></i>${e.label}${e.tier?" "+e.tier:""}`;
|
| 770 |
+
legend.appendChild(s);
|
| 771 |
+
});
|
| 772 |
+
}
|
| 773 |
+
|
| 774 |
+
/* =================== matrix toggle =================== */
|
| 775 |
+
document.getElementById("bdToggle").addEventListener("click",e=>{
|
| 776 |
+
const b=e.target.closest("button"); if(!b) return;
|
| 777 |
+
state.dim=b.dataset.dim;
|
| 778 |
+
document.querySelectorAll("#bdToggle button").forEach(x=>x.setAttribute("aria-pressed",x===b));
|
| 779 |
+
renderMatrix(shownOrder());
|
| 780 |
+
});
|
| 781 |
+
|
| 782 |
+
/* =================== INIT =================== */
|
| 783 |
+
renderAll();
|
| 784 |
+
</script>
|
| 785 |
+
</body>
|
| 786 |
+
</html>
|
docubench/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Utilities for the DocuBench structured document extraction benchmark."""
|
| 2 |
+
|
| 3 |
+
__version__ = "0.1.0"
|
docubench/cli.py
ADDED
|
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Command-line utilities for validating and scoring DocuBench."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
import argparse
|
| 6 |
+
import csv
|
| 7 |
+
import json
|
| 8 |
+
import sys
|
| 9 |
+
from pathlib import Path
|
| 10 |
+
from typing import Any
|
| 11 |
+
|
| 12 |
+
from scorer import score_standardization
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
DEFAULT_ENGINE_DISPLAY_NAMES = {
|
| 16 |
+
"claude": "Claude",
|
| 17 |
+
"docupipe_high": "DocuPipe high",
|
| 18 |
+
"docupipe_standard": "DocuPipe standard",
|
| 19 |
+
"extend": "Extend",
|
| 20 |
+
"gemini": "Gemini",
|
| 21 |
+
"gpt": "GPT",
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
def load_json(path: Path) -> Any:
|
| 26 |
+
with open(path, encoding="utf-8") as f:
|
| 27 |
+
return json.load(f)
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def write_json(path: Path, data: Any) -> None:
|
| 31 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 32 |
+
with open(path, "w", encoding="utf-8") as f:
|
| 33 |
+
json.dump(data, f, ensure_ascii=False, indent=2)
|
| 34 |
+
f.write("\n")
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def benchmark_ids(root: Path) -> list[str]:
|
| 38 |
+
return sorted(p.stem for p in (root / "labels").glob("*.json"))
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
def discover_engines(root: Path) -> list[str]:
|
| 42 |
+
results_dir = root / "results"
|
| 43 |
+
if not results_dir.exists():
|
| 44 |
+
return []
|
| 45 |
+
return sorted(p.name for p in results_dir.iterdir() if p.is_dir())
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def document_id_map(root: Path) -> dict[str, Path]:
|
| 49 |
+
docs: dict[str, Path] = {}
|
| 50 |
+
for path in (root / "documents").iterdir():
|
| 51 |
+
if path.is_file():
|
| 52 |
+
docs[path.stem] = path
|
| 53 |
+
return docs
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
def validate_benchmark(root: Path) -> tuple[list[str], list[str], dict[str, Any]]:
|
| 57 |
+
errors: list[str] = []
|
| 58 |
+
warnings: list[str] = []
|
| 59 |
+
|
| 60 |
+
required_dirs = ["documents", "labels", "schemas", "results"]
|
| 61 |
+
for dirname in required_dirs:
|
| 62 |
+
if not (root / dirname).is_dir():
|
| 63 |
+
errors.append(f"missing required directory: {dirname}/")
|
| 64 |
+
|
| 65 |
+
sources_path = root / "sources.json"
|
| 66 |
+
if not sources_path.is_file():
|
| 67 |
+
errors.append("missing sources.json")
|
| 68 |
+
sources = []
|
| 69 |
+
else:
|
| 70 |
+
try:
|
| 71 |
+
sources = load_json(sources_path)
|
| 72 |
+
except json.JSONDecodeError as exc:
|
| 73 |
+
errors.append(f"sources.json is invalid JSON: {exc}")
|
| 74 |
+
sources = []
|
| 75 |
+
|
| 76 |
+
if errors:
|
| 77 |
+
return errors, warnings, {}
|
| 78 |
+
|
| 79 |
+
doc_paths = document_id_map(root)
|
| 80 |
+
doc_ids = set(doc_paths)
|
| 81 |
+
label_ids = {p.stem for p in (root / "labels").glob("*.json")}
|
| 82 |
+
schema_ids = {p.stem for p in (root / "schemas").glob("*.json")}
|
| 83 |
+
source_ids = {row.get("doc_id") for row in sources if isinstance(row, dict)}
|
| 84 |
+
|
| 85 |
+
expected_ids = label_ids | schema_ids | source_ids
|
| 86 |
+
for collection_name, ids in [
|
| 87 |
+
("documents", doc_ids),
|
| 88 |
+
("labels", label_ids),
|
| 89 |
+
("schemas", schema_ids),
|
| 90 |
+
("sources", source_ids),
|
| 91 |
+
]:
|
| 92 |
+
missing = sorted(expected_ids - ids)
|
| 93 |
+
extra = sorted(ids - expected_ids)
|
| 94 |
+
if missing:
|
| 95 |
+
errors.append(f"{collection_name} missing ids: {', '.join(missing)}")
|
| 96 |
+
if extra:
|
| 97 |
+
errors.append(f"{collection_name} has unexpected ids: {', '.join(extra)}")
|
| 98 |
+
|
| 99 |
+
for directory in ["labels", "schemas"]:
|
| 100 |
+
for path in sorted((root / directory).glob("*.json")):
|
| 101 |
+
try:
|
| 102 |
+
load_json(path)
|
| 103 |
+
except json.JSONDecodeError as exc:
|
| 104 |
+
errors.append(f"{path.relative_to(root)} is invalid JSON: {exc}")
|
| 105 |
+
|
| 106 |
+
engines = discover_engines(root)
|
| 107 |
+
for engine in engines:
|
| 108 |
+
engine_dir = root / "results" / engine
|
| 109 |
+
result_ids = {p.stem for p in engine_dir.glob("*.json")}
|
| 110 |
+
missing = sorted(label_ids - result_ids)
|
| 111 |
+
extra = sorted(result_ids - label_ids)
|
| 112 |
+
if missing:
|
| 113 |
+
warnings.append(f"results/{engine} missing ids: {', '.join(missing)}")
|
| 114 |
+
if extra:
|
| 115 |
+
warnings.append(f"results/{engine} has extra ids: {', '.join(extra)}")
|
| 116 |
+
for path in sorted(engine_dir.glob("*.json")):
|
| 117 |
+
try:
|
| 118 |
+
payload = load_json(path)
|
| 119 |
+
except json.JSONDecodeError as exc:
|
| 120 |
+
errors.append(f"{path.relative_to(root)} is invalid JSON: {exc}")
|
| 121 |
+
continue
|
| 122 |
+
if not isinstance(payload, dict):
|
| 123 |
+
errors.append(f"{path.relative_to(root)} must contain a JSON object")
|
| 124 |
+
elif "data" not in payload:
|
| 125 |
+
warnings.append(f"{path.relative_to(root)} has no top-level data key")
|
| 126 |
+
|
| 127 |
+
summary = {
|
| 128 |
+
"documents": len(doc_ids),
|
| 129 |
+
"labels": len(label_ids),
|
| 130 |
+
"schemas": len(schema_ids),
|
| 131 |
+
"sources": len(source_ids),
|
| 132 |
+
"engines": engines,
|
| 133 |
+
}
|
| 134 |
+
return errors, warnings, summary
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
def score_engines(root: Path, engines: list[str] | None = None) -> dict[str, Any]:
|
| 138 |
+
doc_ids = benchmark_ids(root)
|
| 139 |
+
selected_engines = engines or discover_engines(root)
|
| 140 |
+
per_engine: dict[str, dict[str, float | None]] = {engine: {} for engine in selected_engines}
|
| 141 |
+
|
| 142 |
+
for doc_id in doc_ids:
|
| 143 |
+
schema = load_json(root / "schemas" / f"{doc_id}.json")
|
| 144 |
+
label = load_json(root / "labels" / f"{doc_id}.json")
|
| 145 |
+
for engine in selected_engines:
|
| 146 |
+
result_path = root / "results" / engine / f"{doc_id}.json"
|
| 147 |
+
if not result_path.exists():
|
| 148 |
+
per_engine[engine][doc_id] = None
|
| 149 |
+
continue
|
| 150 |
+
result_payload = load_json(result_path)
|
| 151 |
+
result = result_payload.get("data", {}) if isinstance(result_payload, dict) else {}
|
| 152 |
+
score = score_standardization(result=result, schema=schema, label=label)
|
| 153 |
+
per_engine[engine][doc_id] = score["final"]
|
| 154 |
+
|
| 155 |
+
per_doc = []
|
| 156 |
+
for doc_id in doc_ids:
|
| 157 |
+
row: dict[str, Any] = {"doc_id": doc_id}
|
| 158 |
+
for engine in selected_engines:
|
| 159 |
+
row[engine] = per_engine[engine][doc_id]
|
| 160 |
+
per_doc.append(row)
|
| 161 |
+
|
| 162 |
+
aggregates = {}
|
| 163 |
+
for engine, scores_by_doc in per_engine.items():
|
| 164 |
+
scores = [score for score in scores_by_doc.values() if score is not None]
|
| 165 |
+
aggregates[engine] = sum(scores) / len(scores) if scores else None
|
| 166 |
+
|
| 167 |
+
return {
|
| 168 |
+
"benchmark": {
|
| 169 |
+
"name": "DocuBench",
|
| 170 |
+
"version": "0.1.0",
|
| 171 |
+
"doc_count": len(doc_ids),
|
| 172 |
+
"metric": "macro_average_field_accuracy",
|
| 173 |
+
},
|
| 174 |
+
"engine_display_names": {
|
| 175 |
+
engine: DEFAULT_ENGINE_DISPLAY_NAMES.get(engine, engine)
|
| 176 |
+
for engine in selected_engines
|
| 177 |
+
},
|
| 178 |
+
"aggregates": aggregates,
|
| 179 |
+
"breakdowns": build_breakdowns(root, per_doc, selected_engines),
|
| 180 |
+
"per_doc": per_doc,
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
def build_breakdowns(root: Path, per_doc: list[dict[str, Any]], engines: list[str]) -> dict[str, Any]:
|
| 185 |
+
sources_path = root / "sources.json"
|
| 186 |
+
if not sources_path.exists():
|
| 187 |
+
return {}
|
| 188 |
+
sources = load_json(sources_path)
|
| 189 |
+
metadata = {row["doc_id"]: row for row in sources if isinstance(row, dict) and "doc_id" in row}
|
| 190 |
+
by_doc = {row["doc_id"]: row for row in per_doc}
|
| 191 |
+
breakdowns: dict[str, Any] = {}
|
| 192 |
+
|
| 193 |
+
for dimension in ["ftype", "lang"]:
|
| 194 |
+
groups: dict[str, list[str]] = {}
|
| 195 |
+
for doc_id, row in metadata.items():
|
| 196 |
+
value = str(row.get(dimension) or "unknown")
|
| 197 |
+
groups.setdefault(value, []).append(doc_id)
|
| 198 |
+
dimension_rows = []
|
| 199 |
+
for value in sorted(groups):
|
| 200 |
+
doc_ids = sorted(doc_id for doc_id in groups[value] if doc_id in by_doc)
|
| 201 |
+
out: dict[str, Any] = {"value": value, "doc_count": len(doc_ids)}
|
| 202 |
+
for engine in engines:
|
| 203 |
+
scores = [by_doc[doc_id][engine] for doc_id in doc_ids if by_doc[doc_id][engine] is not None]
|
| 204 |
+
out[engine] = sum(scores) / len(scores) if scores else None
|
| 205 |
+
dimension_rows.append(out)
|
| 206 |
+
breakdowns[dimension] = dimension_rows
|
| 207 |
+
return breakdowns
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
def print_score_table(scores: dict[str, Any]) -> None:
|
| 211 |
+
engines = list(scores["aggregates"].keys())
|
| 212 |
+
header = f"{'doc_id':<12}" + "".join(f"{engine:>20}" for engine in engines)
|
| 213 |
+
print(header)
|
| 214 |
+
print("-" * len(header))
|
| 215 |
+
for row in scores["per_doc"]:
|
| 216 |
+
line = f"{row['doc_id']:<12}"
|
| 217 |
+
for engine in engines:
|
| 218 |
+
score = row[engine]
|
| 219 |
+
line += f"{(f'{score:.4f}' if score is not None else 'n/a'):>20}"
|
| 220 |
+
print(line)
|
| 221 |
+
print("-" * len(header))
|
| 222 |
+
aggregate_line = f"{'AGGREGATE':<12}"
|
| 223 |
+
for engine in engines:
|
| 224 |
+
score = scores["aggregates"][engine]
|
| 225 |
+
aggregate_line += f"{(f'{score:.4f}' if score is not None else 'n/a'):>20}"
|
| 226 |
+
print(aggregate_line)
|
| 227 |
+
|
| 228 |
+
|
| 229 |
+
def write_summary_csv(path: Path, scores: dict[str, Any]) -> None:
|
| 230 |
+
engines = list(scores["aggregates"].keys())
|
| 231 |
+
path.parent.mkdir(parents=True, exist_ok=True)
|
| 232 |
+
with open(path, "w", encoding="utf-8", newline="") as f:
|
| 233 |
+
writer = csv.DictWriter(f, fieldnames=["doc_id", *engines], lineterminator="\n")
|
| 234 |
+
writer.writeheader()
|
| 235 |
+
for row in scores["per_doc"]:
|
| 236 |
+
writer.writerow({key: row.get(key) for key in ["doc_id", *engines]})
|
| 237 |
+
writer.writerow({"doc_id": "AGGREGATE", **scores["aggregates"]})
|
| 238 |
+
|
| 239 |
+
|
| 240 |
+
def cmd_validate(args: argparse.Namespace) -> int:
|
| 241 |
+
errors, warnings, summary = validate_benchmark(args.root)
|
| 242 |
+
for warning in warnings:
|
| 243 |
+
print(f"warning: {warning}", file=sys.stderr)
|
| 244 |
+
if errors:
|
| 245 |
+
for error in errors:
|
| 246 |
+
print(f"error: {error}", file=sys.stderr)
|
| 247 |
+
return 1
|
| 248 |
+
print(
|
| 249 |
+
"validated "
|
| 250 |
+
f"{summary['documents']} documents, "
|
| 251 |
+
f"{summary['labels']} labels, "
|
| 252 |
+
f"{summary['schemas']} schemas, "
|
| 253 |
+
f"{summary['sources']} source records, "
|
| 254 |
+
f"{len(summary['engines'])} result sets"
|
| 255 |
+
)
|
| 256 |
+
return 0
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
def cmd_score(args: argparse.Namespace) -> int:
|
| 260 |
+
scores = score_engines(args.root, args.engine)
|
| 261 |
+
if args.json:
|
| 262 |
+
print(json.dumps(scores, ensure_ascii=False, indent=2))
|
| 263 |
+
else:
|
| 264 |
+
print_score_table(scores)
|
| 265 |
+
return 0
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
def cmd_report(args: argparse.Namespace) -> int:
|
| 269 |
+
scores = score_engines(args.root, args.engine)
|
| 270 |
+
write_json(args.summary_json, scores)
|
| 271 |
+
write_summary_csv(args.summary_csv, scores)
|
| 272 |
+
print(f"wrote {args.summary_json}")
|
| 273 |
+
print(f"wrote {args.summary_csv}")
|
| 274 |
+
return 0
|
| 275 |
+
|
| 276 |
+
|
| 277 |
+
def build_parser() -> argparse.ArgumentParser:
|
| 278 |
+
parser = argparse.ArgumentParser(prog="docubench")
|
| 279 |
+
parser.add_argument("--root", type=Path, default=Path.cwd(), help="repository root")
|
| 280 |
+
subparsers = parser.add_subparsers(dest="command", required=True)
|
| 281 |
+
|
| 282 |
+
validate = subparsers.add_parser("validate", help="validate benchmark files")
|
| 283 |
+
validate.set_defaults(func=cmd_validate)
|
| 284 |
+
|
| 285 |
+
score = subparsers.add_parser("score", help="score committed result sets")
|
| 286 |
+
score.add_argument("--engine", action="append", help="result directory to score; repeatable")
|
| 287 |
+
score.add_argument("--json", action="store_true", help="emit JSON instead of a table")
|
| 288 |
+
score.set_defaults(func=cmd_score)
|
| 289 |
+
|
| 290 |
+
report = subparsers.add_parser("report", help="write summary JSON and CSV reports")
|
| 291 |
+
report.add_argument("--engine", action="append", help="result directory to score; repeatable")
|
| 292 |
+
report.add_argument("--summary-json", type=Path, default=Path("results/summary.json"))
|
| 293 |
+
report.add_argument("--summary-csv", type=Path, default=Path("results/summary.csv"))
|
| 294 |
+
report.set_defaults(func=cmd_report)
|
| 295 |
+
|
| 296 |
+
return parser
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
def main(argv: list[str] | None = None) -> int:
|
| 300 |
+
parser = build_parser()
|
| 301 |
+
args = parser.parse_args(argv)
|
| 302 |
+
args.root = args.root.resolve()
|
| 303 |
+
if hasattr(args, "summary_json") and not args.summary_json.is_absolute():
|
| 304 |
+
args.summary_json = args.root / args.summary_json
|
| 305 |
+
if hasattr(args, "summary_csv") and not args.summary_csv.is_absolute():
|
| 306 |
+
args.summary_csv = args.root / args.summary_csv
|
| 307 |
+
return args.func(args)
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
if __name__ == "__main__":
|
| 311 |
+
raise SystemExit(main())
|
documents/1ZVqiyJZ.pdf
ADDED
|
Binary file (83.7 kB). View file
|
|
|
documents/45xidifn.pdf
ADDED
|
Binary file (44.2 kB). View file
|
|
|
documents/4kVtTRoL.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:170613ce8f2549a1a0f8311c32af2b43511adb5a1a12e6c6226348fb1efab903
|
| 3 |
+
size 9035753
|
documents/5YJaBbNg.pdf
ADDED
|
Binary file (97.1 kB). View file
|
|
|
documents/5ukZftw0.xlsx
ADDED
|
Binary file (9.55 kB). View file
|
|
|
documents/62PhJTyf.pdf
ADDED
|
Binary file (13.8 kB). View file
|
|
|
documents/7ZhgzAzp.tiff
ADDED
|
|
Git LFS Details
|
documents/97uZroyv.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84380f4b7eab303dfd0db5c38381ea421bad6929996fc014c428134b6110fb2d
|
| 3 |
+
size 109783
|
documents/B0nA2c30.png
ADDED
|
Git LFS Details
|
documents/BnftpXVQ.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:186702a93bda3243769fe4bf0d47368f1ce1417dd82e1ca699dee4c700a63460
|
| 3 |
+
size 214758
|
documents/C7fe2lau.xml
ADDED
|
@@ -0,0 +1,370 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
|
| 3 |
+
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
|
| 4 |
+
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
|
| 5 |
+
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
|
| 6 |
+
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
|
| 7 |
+
<cbc:ID>Snippet1</cbc:ID>
|
| 8 |
+
<cbc:IssueDate>2017-11-13</cbc:IssueDate>
|
| 9 |
+
<cbc:DueDate>2017-12-01</cbc:DueDate>
|
| 10 |
+
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
|
| 11 |
+
<cbc:Note>Please note we have a new phone number: 22 22 22 22</cbc:Note>
|
| 12 |
+
<cbc:TaxPointDate>2017-12-01</cbc:TaxPointDate>
|
| 13 |
+
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
|
| 14 |
+
<cbc:TaxCurrencyCode>SEK</cbc:TaxCurrencyCode>
|
| 15 |
+
<cbc:AccountingCost>4025:123:4343</cbc:AccountingCost>
|
| 16 |
+
<cbc:BuyerReference>0150abc</cbc:BuyerReference>
|
| 17 |
+
<cac:InvoicePeriod>
|
| 18 |
+
<cbc:StartDate>2017-12-01</cbc:StartDate>
|
| 19 |
+
<cbc:EndDate>2017-12-31</cbc:EndDate>
|
| 20 |
+
</cac:InvoicePeriod>
|
| 21 |
+
<cac:ContractDocumentReference>
|
| 22 |
+
<cbc:ID>framework no 1</cbc:ID>
|
| 23 |
+
</cac:ContractDocumentReference>
|
| 24 |
+
<cac:AdditionalDocumentReference>
|
| 25 |
+
<cbc:ID schemeID="ABT">DR35141</cbc:ID>
|
| 26 |
+
<cbc:DocumentTypeCode>130</cbc:DocumentTypeCode>
|
| 27 |
+
</cac:AdditionalDocumentReference>
|
| 28 |
+
<cac:AdditionalDocumentReference>
|
| 29 |
+
<cbc:ID>ts12345</cbc:ID>
|
| 30 |
+
<cbc:DocumentDescription>Technical specification</cbc:DocumentDescription>
|
| 31 |
+
<cac:Attachment>
|
| 32 |
+
<cac:ExternalReference>
|
| 33 |
+
<cbc:URI>www.techspec.no</cbc:URI>
|
| 34 |
+
</cac:ExternalReference>
|
| 35 |
+
</cac:Attachment>
|
| 36 |
+
</cac:AdditionalDocumentReference>
|
| 37 |
+
<cac:AccountingSupplierParty>
|
| 38 |
+
<cac:Party>
|
| 39 |
+
<cbc:EndpointID schemeID="0088">7300010000001</cbc:EndpointID>
|
| 40 |
+
<cac:PartyIdentification>
|
| 41 |
+
<cbc:ID>99887766</cbc:ID>
|
| 42 |
+
</cac:PartyIdentification>
|
| 43 |
+
<cac:PartyName>
|
| 44 |
+
<cbc:Name>SupplierTradingName Ltd.</cbc:Name>
|
| 45 |
+
</cac:PartyName>
|
| 46 |
+
<cac:PostalAddress>
|
| 47 |
+
<cbc:StreetName>Main street 1</cbc:StreetName>
|
| 48 |
+
<cbc:AdditionalStreetName>Postbox 123</cbc:AdditionalStreetName>
|
| 49 |
+
<cbc:CityName>London</cbc:CityName>
|
| 50 |
+
<cbc:PostalZone>GB 123 EW</cbc:PostalZone>
|
| 51 |
+
<cac:Country>
|
| 52 |
+
<cbc:IdentificationCode>GB</cbc:IdentificationCode>
|
| 53 |
+
</cac:Country>
|
| 54 |
+
</cac:PostalAddress>
|
| 55 |
+
<cac:PartyTaxScheme>
|
| 56 |
+
<cbc:CompanyID>GB1232434</cbc:CompanyID>
|
| 57 |
+
<cac:TaxScheme>
|
| 58 |
+
<cbc:ID>VAT</cbc:ID>
|
| 59 |
+
</cac:TaxScheme>
|
| 60 |
+
</cac:PartyTaxScheme>
|
| 61 |
+
|
| 62 |
+
<cac:PartyLegalEntity>
|
| 63 |
+
<cbc:RegistrationName>SupplierOfficialName Ltd</cbc:RegistrationName>
|
| 64 |
+
<cbc:CompanyID>GB983294</cbc:CompanyID>
|
| 65 |
+
<cbc:CompanyLegalForm>AdditionalLegalInformation</cbc:CompanyLegalForm>
|
| 66 |
+
</cac:PartyLegalEntity>
|
| 67 |
+
|
| 68 |
+
</cac:Party>
|
| 69 |
+
</cac:AccountingSupplierParty>
|
| 70 |
+
|
| 71 |
+
<cac:AccountingCustomerParty>
|
| 72 |
+
<cac:Party>
|
| 73 |
+
<cbc:EndpointID schemeID="0002">4598375937</cbc:EndpointID>
|
| 74 |
+
<cac:PartyIdentification>
|
| 75 |
+
<cbc:ID schemeID="0002">4598375937</cbc:ID>
|
| 76 |
+
</cac:PartyIdentification>
|
| 77 |
+
<cac:PartyName>
|
| 78 |
+
<cbc:Name>BuyerTradingName AS</cbc:Name>
|
| 79 |
+
</cac:PartyName>
|
| 80 |
+
<cac:PostalAddress>
|
| 81 |
+
<cbc:StreetName>Hovedgatan 32</cbc:StreetName>
|
| 82 |
+
<cbc:AdditionalStreetName>Po box 878</cbc:AdditionalStreetName>
|
| 83 |
+
<cbc:CityName>Stockholm</cbc:CityName>
|
| 84 |
+
<cbc:PostalZone>456 34</cbc:PostalZone>
|
| 85 |
+
<cbc:CountrySubentity>Södermalm</cbc:CountrySubentity>
|
| 86 |
+
|
| 87 |
+
<cac:Country>
|
| 88 |
+
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
|
| 89 |
+
</cac:Country>
|
| 90 |
+
</cac:PostalAddress>
|
| 91 |
+
<cac:PartyTaxScheme>
|
| 92 |
+
<cbc:CompanyID>SE4598375937</cbc:CompanyID>
|
| 93 |
+
<cac:TaxScheme>
|
| 94 |
+
<cbc:ID>VAT</cbc:ID>
|
| 95 |
+
</cac:TaxScheme>
|
| 96 |
+
</cac:PartyTaxScheme>
|
| 97 |
+
<cac:PartyLegalEntity>
|
| 98 |
+
<cbc:RegistrationName>Buyer Official Name</cbc:RegistrationName>
|
| 99 |
+
<cbc:CompanyID schemeID="0183">39937423947</cbc:CompanyID>
|
| 100 |
+
</cac:PartyLegalEntity>
|
| 101 |
+
<cac:Contact>
|
| 102 |
+
<cbc:Name>Lisa Johnson</cbc:Name>
|
| 103 |
+
<cbc:Telephone>23434234</cbc:Telephone>
|
| 104 |
+
<cbc:ElectronicMail>lj@buyer.se</cbc:ElectronicMail>
|
| 105 |
+
</cac:Contact>
|
| 106 |
+
</cac:Party>
|
| 107 |
+
</cac:AccountingCustomerParty>
|
| 108 |
+
<cac:Delivery>
|
| 109 |
+
<cbc:ActualDeliveryDate>2017-11-01</cbc:ActualDeliveryDate>
|
| 110 |
+
<cac:DeliveryLocation>
|
| 111 |
+
<cbc:ID schemeID="0088">7300010000001</cbc:ID>
|
| 112 |
+
<cac:Address>
|
| 113 |
+
<cbc:StreetName>Delivery street 2</cbc:StreetName>
|
| 114 |
+
<cbc:AdditionalStreetName>Building 56</cbc:AdditionalStreetName>
|
| 115 |
+
<cbc:CityName>Stockholm</cbc:CityName>
|
| 116 |
+
<cbc:PostalZone>21234</cbc:PostalZone>
|
| 117 |
+
<cbc:CountrySubentity>Södermalm</cbc:CountrySubentity>
|
| 118 |
+
<cac:AddressLine>
|
| 119 |
+
<cbc:Line>Gate 15</cbc:Line>
|
| 120 |
+
</cac:AddressLine>
|
| 121 |
+
<cac:Country>
|
| 122 |
+
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
|
| 123 |
+
</cac:Country>
|
| 124 |
+
</cac:Address>
|
| 125 |
+
</cac:DeliveryLocation>
|
| 126 |
+
<cac:DeliveryParty>
|
| 127 |
+
<cac:PartyName>
|
| 128 |
+
<cbc:Name>Delivery party Name</cbc:Name>
|
| 129 |
+
</cac:PartyName>
|
| 130 |
+
</cac:DeliveryParty>
|
| 131 |
+
</cac:Delivery>
|
| 132 |
+
<cac:PaymentMeans>
|
| 133 |
+
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
|
| 134 |
+
<cbc:PaymentID>Snippet1</cbc:PaymentID>
|
| 135 |
+
<cac:PayeeFinancialAccount>
|
| 136 |
+
<cbc:ID>IBAN32423940</cbc:ID>
|
| 137 |
+
<cbc:Name>AccountName</cbc:Name>
|
| 138 |
+
<cac:FinancialInstitutionBranch>
|
| 139 |
+
<cbc:ID>BIC324098</cbc:ID>
|
| 140 |
+
</cac:FinancialInstitutionBranch>
|
| 141 |
+
</cac:PayeeFinancialAccount>
|
| 142 |
+
</cac:PaymentMeans>
|
| 143 |
+
<cac:PaymentTerms>
|
| 144 |
+
<cbc:Note>Payment within 10 days, 2% discount</cbc:Note>
|
| 145 |
+
</cac:PaymentTerms>
|
| 146 |
+
|
| 147 |
+
<cac:AllowanceCharge>
|
| 148 |
+
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
| 149 |
+
<cbc:AllowanceChargeReasonCode>CG</cbc:AllowanceChargeReasonCode>
|
| 150 |
+
<cbc:AllowanceChargeReason>Cleaning</cbc:AllowanceChargeReason>
|
| 151 |
+
<cbc:MultiplierFactorNumeric>20</cbc:MultiplierFactorNumeric>
|
| 152 |
+
<cbc:Amount currencyID="EUR">200</cbc:Amount>
|
| 153 |
+
<cbc:BaseAmount currencyID="EUR">1000</cbc:BaseAmount>
|
| 154 |
+
<cac:TaxCategory>
|
| 155 |
+
<cbc:ID>S</cbc:ID>
|
| 156 |
+
<cbc:Percent>25</cbc:Percent>
|
| 157 |
+
<cac:TaxScheme>
|
| 158 |
+
<cbc:ID>VAT</cbc:ID>
|
| 159 |
+
</cac:TaxScheme>
|
| 160 |
+
</cac:TaxCategory>
|
| 161 |
+
</cac:AllowanceCharge>
|
| 162 |
+
|
| 163 |
+
<cac:AllowanceCharge>
|
| 164 |
+
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
| 165 |
+
<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
|
| 166 |
+
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
|
| 167 |
+
<cbc:Amount currencyID="EUR">200</cbc:Amount>
|
| 168 |
+
<cac:TaxCategory>
|
| 169 |
+
<cbc:ID>S</cbc:ID>
|
| 170 |
+
<cbc:Percent>25</cbc:Percent>
|
| 171 |
+
<cac:TaxScheme>
|
| 172 |
+
<cbc:ID>VAT</cbc:ID>
|
| 173 |
+
</cac:TaxScheme>
|
| 174 |
+
</cac:TaxCategory>
|
| 175 |
+
</cac:AllowanceCharge>
|
| 176 |
+
|
| 177 |
+
<cac:TaxTotal>
|
| 178 |
+
<cbc:TaxAmount currencyID="EUR">1225.00</cbc:TaxAmount>
|
| 179 |
+
<cac:TaxSubtotal>
|
| 180 |
+
<cbc:TaxableAmount currencyID="EUR">4900.0</cbc:TaxableAmount>
|
| 181 |
+
<cbc:TaxAmount currencyID="EUR">1225</cbc:TaxAmount>
|
| 182 |
+
<cac:TaxCategory>
|
| 183 |
+
<cbc:ID>S</cbc:ID>
|
| 184 |
+
<cbc:Percent>25</cbc:Percent>
|
| 185 |
+
<cac:TaxScheme>
|
| 186 |
+
<cbc:ID>VAT</cbc:ID>
|
| 187 |
+
</cac:TaxScheme>
|
| 188 |
+
</cac:TaxCategory>
|
| 189 |
+
</cac:TaxSubtotal>
|
| 190 |
+
<cac:TaxSubtotal>
|
| 191 |
+
<cbc:TaxableAmount currencyID="EUR">1000.0</cbc:TaxableAmount>
|
| 192 |
+
<cbc:TaxAmount currencyID="EUR">0</cbc:TaxAmount>
|
| 193 |
+
<cac:TaxCategory>
|
| 194 |
+
<cbc:ID>E</cbc:ID>
|
| 195 |
+
<cbc:Percent>0</cbc:Percent>
|
| 196 |
+
<cbc:TaxExemptionReason>Reason for tax exempt</cbc:TaxExemptionReason>
|
| 197 |
+
<cac:TaxScheme>
|
| 198 |
+
<cbc:ID>VAT</cbc:ID>
|
| 199 |
+
</cac:TaxScheme>
|
| 200 |
+
</cac:TaxCategory>
|
| 201 |
+
</cac:TaxSubtotal>
|
| 202 |
+
</cac:TaxTotal>
|
| 203 |
+
<cac:TaxTotal>
|
| 204 |
+
<cbc:TaxAmount currencyID ="SEK">9324.00</cbc:TaxAmount>
|
| 205 |
+
</cac:TaxTotal>
|
| 206 |
+
<cac:LegalMonetaryTotal>
|
| 207 |
+
<cbc:LineExtensionAmount currencyID="EUR">5900</cbc:LineExtensionAmount>
|
| 208 |
+
<cbc:TaxExclusiveAmount currencyID="EUR">5900</cbc:TaxExclusiveAmount>
|
| 209 |
+
<cbc:TaxInclusiveAmount currencyID="EUR">7125</cbc:TaxInclusiveAmount>
|
| 210 |
+
<cbc:AllowanceTotalAmount currencyID="EUR">200</cbc:AllowanceTotalAmount>
|
| 211 |
+
<cbc:ChargeTotalAmount currencyID="EUR">200</cbc:ChargeTotalAmount>
|
| 212 |
+
<cbc:PrepaidAmount currencyID="EUR">1000</cbc:PrepaidAmount>
|
| 213 |
+
<cbc:PayableAmount currencyID="EUR">6125.00</cbc:PayableAmount>
|
| 214 |
+
</cac:LegalMonetaryTotal>
|
| 215 |
+
<cac:InvoiceLine>
|
| 216 |
+
<cbc:ID>1</cbc:ID>
|
| 217 |
+
<cbc:Note>Testing note on line level</cbc:Note>
|
| 218 |
+
<cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
|
| 219 |
+
<cbc:LineExtensionAmount currencyID="EUR">4000.00</cbc:LineExtensionAmount>
|
| 220 |
+
<cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
|
| 221 |
+
<cac:AllowanceCharge>
|
| 222 |
+
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
| 223 |
+
<cbc:AllowanceChargeReasonCode>CG</cbc:AllowanceChargeReasonCode>
|
| 224 |
+
<cbc:AllowanceChargeReason>Cleaning</cbc:AllowanceChargeReason>
|
| 225 |
+
<cbc:MultiplierFactorNumeric>1</cbc:MultiplierFactorNumeric>
|
| 226 |
+
<cbc:Amount currencyID="EUR">1</cbc:Amount>
|
| 227 |
+
<cbc:BaseAmount currencyID="EUR">100</cbc:BaseAmount>
|
| 228 |
+
</cac:AllowanceCharge>
|
| 229 |
+
<cac:AllowanceCharge>
|
| 230 |
+
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
| 231 |
+
<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
|
| 232 |
+
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
|
| 233 |
+
<cbc:Amount currencyID="EUR">101</cbc:Amount>
|
| 234 |
+
</cac:AllowanceCharge>
|
| 235 |
+
<cac:Item>
|
| 236 |
+
<cbc:Description>Description of item</cbc:Description>
|
| 237 |
+
<cbc:Name>item name</cbc:Name>
|
| 238 |
+
|
| 239 |
+
<cac:SellersItemIdentification>
|
| 240 |
+
<cbc:ID>97iugug876</cbc:ID>
|
| 241 |
+
</cac:SellersItemIdentification>
|
| 242 |
+
<cac:OriginCountry>
|
| 243 |
+
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
|
| 244 |
+
</cac:OriginCountry>
|
| 245 |
+
<cac:CommodityClassification>
|
| 246 |
+
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
|
| 247 |
+
</cac:CommodityClassification>
|
| 248 |
+
<cac:ClassifiedTaxCategory>
|
| 249 |
+
<cbc:ID>S</cbc:ID>
|
| 250 |
+
<cbc:Percent>25.0</cbc:Percent>
|
| 251 |
+
<cac:TaxScheme>
|
| 252 |
+
<cbc:ID>VAT</cbc:ID>
|
| 253 |
+
</cac:TaxScheme>
|
| 254 |
+
</cac:ClassifiedTaxCategory>
|
| 255 |
+
|
| 256 |
+
</cac:Item>
|
| 257 |
+
|
| 258 |
+
<cac:Price>
|
| 259 |
+
<cbc:PriceAmount currencyID="EUR">410</cbc:PriceAmount>
|
| 260 |
+
<cbc:BaseQuantity unitCode="C62">1</cbc:BaseQuantity>
|
| 261 |
+
<cac:AllowanceCharge>
|
| 262 |
+
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
| 263 |
+
<cbc:Amount currencyID="EUR">40</cbc:Amount>
|
| 264 |
+
<cbc:BaseAmount currencyID="EUR">450</cbc:BaseAmount>
|
| 265 |
+
</cac:AllowanceCharge>
|
| 266 |
+
</cac:Price>
|
| 267 |
+
|
| 268 |
+
</cac:InvoiceLine>
|
| 269 |
+
<cac:InvoiceLine>
|
| 270 |
+
<cbc:ID>2</cbc:ID>
|
| 271 |
+
<cbc:Note>Testing note on line level</cbc:Note>
|
| 272 |
+
|
| 273 |
+
<cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
|
| 274 |
+
<cbc:LineExtensionAmount currencyID="EUR">1000.00</cbc:LineExtensionAmount>
|
| 275 |
+
|
| 276 |
+
<cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
|
| 277 |
+
<cac:InvoicePeriod>
|
| 278 |
+
<cbc:StartDate>2017-12-01</cbc:StartDate>
|
| 279 |
+
<cbc:EndDate>2017-12-05</cbc:EndDate>
|
| 280 |
+
</cac:InvoicePeriod>
|
| 281 |
+
<cac:OrderLineReference>
|
| 282 |
+
<cbc:LineID>124</cbc:LineID>
|
| 283 |
+
</cac:OrderLineReference>
|
| 284 |
+
|
| 285 |
+
<cac:Item>
|
| 286 |
+
<cbc:Description>Description of item</cbc:Description>
|
| 287 |
+
<cbc:Name>item name</cbc:Name>
|
| 288 |
+
<cac:SellersItemIdentification>
|
| 289 |
+
<cbc:ID>97iugug876</cbc:ID>
|
| 290 |
+
</cac:SellersItemIdentification>
|
| 291 |
+
<cac:CommodityClassification>
|
| 292 |
+
<cbc:ItemClassificationCode listID="SRV">86776</cbc:ItemClassificationCode>
|
| 293 |
+
</cac:CommodityClassification>
|
| 294 |
+
<cac:ClassifiedTaxCategory>
|
| 295 |
+
<cbc:ID>E</cbc:ID>
|
| 296 |
+
<cbc:Percent>0.0</cbc:Percent>
|
| 297 |
+
<cac:TaxScheme>
|
| 298 |
+
<cbc:ID>VAT</cbc:ID>
|
| 299 |
+
</cac:TaxScheme>
|
| 300 |
+
</cac:ClassifiedTaxCategory>
|
| 301 |
+
<cac:AdditionalItemProperty>
|
| 302 |
+
<cbc:Name>AdditionalItemName</cbc:Name>
|
| 303 |
+
<cbc:Value>AdditionalItemValue</cbc:Value>
|
| 304 |
+
</cac:AdditionalItemProperty>
|
| 305 |
+
</cac:Item>
|
| 306 |
+
<cac:Price>
|
| 307 |
+
<cbc:PriceAmount currencyID="EUR">200</cbc:PriceAmount>
|
| 308 |
+
<cbc:BaseQuantity unitCode="C62">2</cbc:BaseQuantity>
|
| 309 |
+
</cac:Price>
|
| 310 |
+
</cac:InvoiceLine>
|
| 311 |
+
<cac:InvoiceLine>
|
| 312 |
+
<cbc:ID>3</cbc:ID>
|
| 313 |
+
<cbc:Note>Testing note on line level</cbc:Note>
|
| 314 |
+
<cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
|
| 315 |
+
<cbc:LineExtensionAmount currencyID="EUR">900.00</cbc:LineExtensionAmount>
|
| 316 |
+
<cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
|
| 317 |
+
<cac:InvoicePeriod>
|
| 318 |
+
<cbc:StartDate>2017-12-01</cbc:StartDate>
|
| 319 |
+
<cbc:EndDate>2017-12-05</cbc:EndDate>
|
| 320 |
+
</cac:InvoicePeriod>
|
| 321 |
+
<cac:OrderLineReference>
|
| 322 |
+
<cbc:LineID>124</cbc:LineID>
|
| 323 |
+
</cac:OrderLineReference>
|
| 324 |
+
|
| 325 |
+
<cac:AllowanceCharge>
|
| 326 |
+
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
|
| 327 |
+
<cbc:AllowanceChargeReasonCode>CG</cbc:AllowanceChargeReasonCode>
|
| 328 |
+
<cbc:AllowanceChargeReason>Charge</cbc:AllowanceChargeReason>
|
| 329 |
+
<cbc:MultiplierFactorNumeric>1</cbc:MultiplierFactorNumeric>
|
| 330 |
+
<cbc:Amount currencyID="EUR">1</cbc:Amount>
|
| 331 |
+
<cbc:BaseAmount currencyID="EUR">100</cbc:BaseAmount>
|
| 332 |
+
</cac:AllowanceCharge>
|
| 333 |
+
<cac:AllowanceCharge>
|
| 334 |
+
<cbc:ChargeIndicator>false</cbc:ChargeIndicator>
|
| 335 |
+
<cbc:AllowanceChargeReasonCode>95</cbc:AllowanceChargeReasonCode>
|
| 336 |
+
<cbc:AllowanceChargeReason>Discount</cbc:AllowanceChargeReason>
|
| 337 |
+
<cbc:Amount currencyID="EUR">101</cbc:Amount>
|
| 338 |
+
</cac:AllowanceCharge>
|
| 339 |
+
|
| 340 |
+
<cac:Item>
|
| 341 |
+
<cbc:Description>Description of item</cbc:Description>
|
| 342 |
+
<cbc:Name>item name</cbc:Name>
|
| 343 |
+
<cac:SellersItemIdentification>
|
| 344 |
+
<cbc:ID>97iugug876</cbc:ID>
|
| 345 |
+
</cac:SellersItemIdentification>
|
| 346 |
+
|
| 347 |
+
<cac:CommodityClassification>
|
| 348 |
+
<cbc:ItemClassificationCode listID="SRV">86776</cbc:ItemClassificationCode>
|
| 349 |
+
</cac:CommodityClassification>
|
| 350 |
+
<cac:ClassifiedTaxCategory>
|
| 351 |
+
<cbc:ID>S</cbc:ID>
|
| 352 |
+
<cbc:Percent>25.0</cbc:Percent>
|
| 353 |
+
<cac:TaxScheme>
|
| 354 |
+
<cbc:ID>VAT</cbc:ID>
|
| 355 |
+
</cac:TaxScheme>
|
| 356 |
+
</cac:ClassifiedTaxCategory>
|
| 357 |
+
<cac:AdditionalItemProperty>
|
| 358 |
+
<cbc:Name>AdditionalItemName</cbc:Name>
|
| 359 |
+
<cbc:Value>AdditionalItemValue</cbc:Value>
|
| 360 |
+
</cac:AdditionalItemProperty>
|
| 361 |
+
</cac:Item>
|
| 362 |
+
|
| 363 |
+
<cac:Price>
|
| 364 |
+
<cbc:PriceAmount currencyID="EUR">100</cbc:PriceAmount>
|
| 365 |
+
</cac:Price>
|
| 366 |
+
|
| 367 |
+
</cac:InvoiceLine>
|
| 368 |
+
</Invoice>
|
| 369 |
+
|
| 370 |
+
|
documents/DtfW60lS.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8045c2f9eecf8758e94ebb0b6b4e589df23fb4c24e11fbf81aeacd5ba4542f6f
|
| 3 |
+
size 484371
|
documents/ENoM9faK.pdf
ADDED
|
Binary file (23.5 kB). View file
|
|
|
documents/Eet2wW3x.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:242da729c4cef87cdbb6c27efa9151ea711b575463fc82f4f695456f7ab65acb
|
| 3 |
+
size 110650
|
documents/FiFgt4a6.pdf
ADDED
|
Binary file (12.2 kB). View file
|
|
|
documents/GW7i2xbM.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9511f85b80b12ab1bee094a4fa50c84d42f25ca2a068b48569ed45bd81c30a64
|
| 3 |
+
size 161555
|
documents/IPm0MkgQ.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1aa9c97ef0a64fec8fac14f93153d10d1e10c305287d8400db2c2288d14fe67
|
| 3 |
+
size 840338
|
documents/J6buHXQ4.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:875161ea4077cdd16e8cbb6db8da378bf90c072e1342031371b66b39653c9ae4
|
| 3 |
+
size 2350101
|
documents/KpewWz3R.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:56471b590c4e3bfc06999200105996ff7ec4b04957dffc5e3da40bbed7fb753c
|
| 3 |
+
size 8772110
|
documents/LYeb3G3s.pdf
ADDED
|
Binary file (90.2 kB). View file
|
|
|
documents/M66HZlWT.jpeg
ADDED
|
Git LFS Details
|
documents/NNaGgwE5.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:61b351abc432324b4b8f8212048df82f5c8545fffb3e9bee399562de132a0a74
|
| 3 |
+
size 250973
|
documents/NlWTPen5.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d258b6182342221195ce8138be3f30756b41ad9bd4956bd1b338c4a5bbf9adbe
|
| 3 |
+
size 160726
|
documents/OayFbGlG.pdf
ADDED
|
Binary file (83.3 kB). View file
|
|
|
documents/Oe7iRM1G.pdf
ADDED
|
Binary file (19 kB). View file
|
|
|
documents/PSU5pciM.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:278ba09c356f6cffc9bef5b627f6caaf570ad1f0ad22bce19dc88c36fc141d69
|
| 3 |
+
size 308882
|
documents/PYhFptk3.txt
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
ISA*00* *00* *12*NOTP *12*NOTP *080501*1700*U*00401*000001000*0*P*>
|
| 2 |
+
GS*PO*NOTP*NOTP*20080501*1700*1000*X*004010
|
| 3 |
+
ST*850*000000010
|
| 4 |
+
BEG*00*SA*08292243254*`*20010501*610385388
|
| 5 |
+
REF*DP*030
|
| 6 |
+
REF*PS*
|
| 7 |
+
ITD*14*3*2*`*45*`*46
|
| 8 |
+
DTM*001*20010510
|
| 9 |
+
PKG*F*68*`*`*PALLET, SHRINKWRAP 48W X 40D X 45H
|
| 10 |
+
PKG*F*66*`*`*REGULAR
|
| 11 |
+
TD5*A*92*P3*`*SEE ROUTING GUIDE FOR ROUTING
|
| 12 |
+
N1*ST*RETAIL STORE*9*0001234567890
|
| 13 |
+
N3*123 ANYWHERE AVENUE
|
| 14 |
+
N4*CITY*ST*12345
|
| 15 |
+
PO1*1*120*EA*9.25*TE*CB*(12) 0-083628-838*PR*RO*VN*ABA18783
|
| 16 |
+
PO1*2*220*EA*13.79*TE*CB*(69) 0-093837-991*PR*RO*VN*RUP83112
|
| 17 |
+
PO1*3*126*EA*10.99*TE*CB*(71) 0-099172-837*PR*RO*VN*CPR19293
|
| 18 |
+
PO1*4*76*EA*4.35*TE*CB*(71) 0-012110-737*PR*RO*VN*PIW28173
|
| 19 |
+
PO1*5*72*EA*7.5*TE*CB*(71) 0-084888-975*PR*RO*VN*JBM19387
|
| 20 |
+
PO1*6*696*EA*9.55*TE*CB*(71) 0-003922-121*PR*RO*VN*IUI19283
|
| 21 |
+
CTT*6
|
| 22 |
+
SE*20*000000010
|
| 23 |
+
GE*1*1000
|
| 24 |
+
IEA*1*000001000
|
documents/QxoQ6zgn.pdf
ADDED
|
Binary file (8.97 kB). View file
|
|
|
documents/SBR9L7Y8.jpeg
ADDED
|
Git LFS Details
|
documents/SkD8Lz8o.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4446467a9432e9917737791231107bc304a36d764e35496aa1405113356467e0
|
| 3 |
+
size 117819
|
documents/UnG6cLfP.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:858cd9ac90bdaf97d3d22556602b59855f161c081e5837fc2ee7287e1ead2285
|
| 3 |
+
size 636314
|
documents/WnxX1Buq.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26c2ba231a3e8c516faac0a7ac9daef2a2804ddcce5631d77e8b88dd645abf3e
|
| 3 |
+
size 1431734
|
documents/WxP8Tqgf.pdf
ADDED
|
Binary file (85.2 kB). View file
|
|
|
documents/XhJyv5mb.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0160be575537b3de67434f9028504a500ee5b2f930a3ede3b9f453671c550ccb
|
| 3 |
+
size 189965
|
documents/ZN6HbuKp.csv
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Posting Date,Description,Category,Amount (USD),Running Balance
|
| 2 |
+
2025-01-03,ACME CORP DIRECT DEP,Payroll,2217.08,7217.08
|
| 3 |
+
2025-01-04,SPOTIFY USA,Subscription,-141.58,7075.50
|
| 4 |
+
2025-01-05,SHELL OIL 57,Transport,-120.03,6955.47
|
| 5 |
+
2025-01-06,ATM FEE,Fees,-3.00,6952.47
|
| 6 |
+
2025-01-07,OLIVE GARDEN,Dining,-133.56,6818.91
|
| 7 |
+
2025-01-09,BEST BUY 391,Retail,-193.02,6625.89
|
| 8 |
+
2025-01-12,WHOLE FOODS MKT,Groceries,-205.34,6420.55
|
| 9 |
+
2025-01-14,ONLINE XFER TO SAVINGS,Transfer,-252.63,6167.92
|
| 10 |
+
2025-01-16,ATM FEE,Fees,-25.00,6142.92
|
| 11 |
+
2025-01-18,ONLINE XFER TO SAVINGS,Transfer,-52.76,6090.16
|
| 12 |
+
2025-01-21,ATM FEE,Fees,-25.00,6065.16
|
| 13 |
+
2025-01-24,PG&E WEB PAYMENT,Utilities,-209.35,5855.81
|
| 14 |
+
2025-01-26,ONLINE XFER TO SAVINGS,Transfer,-28.75,5827.06
|
| 15 |
+
2025-02-03,SAFEWAY #412,Groceries,-77.44,5749.62
|
| 16 |
+
2025-02-05,ATM FEE,Fees,-3.00,5746.62
|
| 17 |
+
2025-02-07,ACME CORP DIRECT DEP,Payroll,3094.54,8841.16
|
| 18 |
+
2025-02-08,AMAZON MKTPL,Retail,-73.12,8768.04
|
| 19 |
+
2025-02-10,MONTHLY SERVICE FEE,Fees,-25.00,8743.04
|
| 20 |
+
2025-02-13,SHELL OIL 57,Transport,-145.46,8597.58
|
| 21 |
+
2025-02-14,MONTHLY SERVICE FEE,Fees,-12.00,8585.58
|
| 22 |
+
2025-02-16,CVS PHARMACY 8842,Healthcare,-22.09,8563.49
|
| 23 |
+
2025-02-17,NETFLIX.COM,Subscription,-48.97,8514.52
|
| 24 |
+
2025-02-18,WHOLE FOODS MKT,Groceries,-210.85,8303.67
|
| 25 |
+
2025-02-20,TARGET 00021,Retail,-196.75,8106.92
|
| 26 |
+
2025-02-21,TRADER JOE'S,Groceries,-131.63,7975.29
|
| 27 |
+
2025-02-22,CHIPOTLE 2231,Dining,-125.42,7849.87
|
| 28 |
+
2025-02-23,KAISER PERMANENTE,Healthcare,-62.42,7787.45
|
| 29 |
+
2025-02-26,BEST BUY 391,Retail,-171.67,7615.78
|
| 30 |
+
2025-02-28,BEST BUY 391,Retail,-212.84,7402.94
|
| 31 |
+
2025-03-04,CHIPOTLE 2231,Dining,-49.56,7353.38
|
| 32 |
+
2025-03-07,ZELLE TO J SMITH,Transfer,-233.59,7119.79
|
| 33 |
+
2025-03-10,NETFLIX.COM,Subscription,-182.64,6937.15
|
| 34 |
+
2025-03-12,BART CLIPPER,Transport,-82.40,6854.75
|
| 35 |
+
2025-03-13,ACME CORP DIRECT DEP,Payroll,3026.54,9881.29
|