openmerit 0.1.4 → 0.1.6-preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/CHANGELOG.md +40 -0
  2. package/README.md +121 -386
  3. package/dist/core/src/index.d.ts +101 -0
  4. package/dist/core/src/index.js +1649 -0
  5. package/dist/core/src/store.d.ts +35 -0
  6. package/dist/core/src/store.js +102 -0
  7. package/dist/pi/src/index.d.ts +32 -0
  8. package/dist/pi/src/index.js +794 -0
  9. package/dist/pi/src/scheduler.d.ts +11 -0
  10. package/dist/pi/src/scheduler.js +137 -0
  11. package/dist/pi/src/wakeup.d.ts +2 -0
  12. package/dist/pi/src/wakeup.js +108 -0
  13. package/dist/protocol/src/index.d.ts +484 -0
  14. package/dist/protocol/src/index.js +47 -0
  15. package/dist/protocol/src/schemas.d.ts +576 -0
  16. package/dist/protocol/src/schemas.js +280 -0
  17. package/dist/terminal/public/app.js +297 -0
  18. package/dist/terminal/public/brands/anthropic.png +0 -0
  19. package/dist/terminal/public/brands/baai.png +0 -0
  20. package/dist/terminal/public/brands/baseten.png +0 -0
  21. package/dist/terminal/public/brands/cerebras.png +0 -0
  22. package/dist/terminal/public/brands/cohere.png +0 -0
  23. package/dist/terminal/public/brands/deepseek.ico +0 -0
  24. package/dist/terminal/public/brands/google.png +0 -0
  25. package/dist/terminal/public/brands/groq.ico +0 -0
  26. package/dist/terminal/public/brands/lm-studio.png +0 -0
  27. package/dist/terminal/public/brands/meta.ico +0 -0
  28. package/dist/terminal/public/brands/mistral.png +0 -0
  29. package/dist/terminal/public/brands/nomic.png +0 -0
  30. package/dist/terminal/public/brands/ollama.png +0 -0
  31. package/dist/terminal/public/brands/openai.png +0 -0
  32. package/dist/terminal/public/brands/openrouter.png +0 -0
  33. package/dist/terminal/public/brands/qwen.png +0 -0
  34. package/dist/terminal/public/brands/vllm.ico +0 -0
  35. package/dist/terminal/public/brands/vllm.png +0 -0
  36. package/dist/terminal/public/favicon.svg +1 -0
  37. package/dist/terminal/public/flow.css +1 -0
  38. package/dist/terminal/public/flow.js +770 -0
  39. package/dist/terminal/public/index.html +21 -0
  40. package/dist/terminal/public/styles.css +779 -0
  41. package/dist/terminal/src/activity-merge.mjs +64 -0
  42. package/dist/terminal/src/browser.mjs +29 -0
  43. package/dist/terminal/src/cli.mjs +60 -0
  44. package/dist/terminal/src/collect.mjs +311 -0
  45. package/dist/terminal/src/discovery.mjs +93 -0
  46. package/dist/terminal/src/hardware.mjs +57 -0
  47. package/dist/terminal/src/project-activity.mjs +156 -0
  48. package/dist/terminal/src/sample.mjs +171 -0
  49. package/dist/terminal/src/server.mjs +56 -0
  50. package/dist/terminal/src/services.mjs +62 -0
  51. package/dist/terminal/src/topology.mjs +30 -0
  52. package/docs/adapter-guide.md +189 -0
  53. package/docs/architecture.md +59 -0
  54. package/docs/automation.md +74 -0
  55. package/docs/budgets.md +37 -0
  56. package/docs/commands.md +85 -0
  57. package/docs/demo-backfill.md +29 -0
  58. package/docs/demo-fieldkit.md +47 -0
  59. package/docs/demo-placement.md +30 -0
  60. package/docs/demo-spam.md +15 -0
  61. package/docs/demo-support.md +42 -0
  62. package/docs/demo.md +57 -0
  63. package/docs/first-trial.md +60 -0
  64. package/docs/getting-started.md +65 -0
  65. package/docs/index.md +40 -0
  66. package/docs/inference-terminal.md +439 -0
  67. package/docs/lifecycle.md +30 -0
  68. package/docs/memo.md +126 -0
  69. package/docs/metrics-and-evidence.md +48 -0
  70. package/docs/operations.md +40 -0
  71. package/docs/pareto-spec.md +76 -0
  72. package/docs/pi-extension.md +54 -0
  73. package/docs/roadmap.md +28 -0
  74. package/docs/security.md +37 -0
  75. package/docs/site-artwork-linocut.md +23 -0
  76. package/docs/site-artwork-miniature-diverse.md +28 -0
  77. package/docs/site-artwork-miniature.md +26 -0
  78. package/docs/site-demo.md +177 -0
  79. package/docs/site-design.md +94 -0
  80. package/docs/site-documentation.md +83 -0
  81. package/docs/site-dynamic-og.md +35 -0
  82. package/docs/site-faq-maintenance.md +115 -0
  83. package/docs/site-hero-resolution.md +60 -0
  84. package/docs/site-illustration-sequences.md +227 -0
  85. package/docs/site-inference-terminal.md +203 -0
  86. package/docs/site-memo.md +39 -0
  87. package/docs/site-og-image.md +38 -0
  88. package/docs/site-og-workshop.md +21 -0
  89. package/docs/site-section-artwork.md +56 -0
  90. package/docs/site-skill-review.md +57 -0
  91. package/docs/site-terminal-preview.md +85 -0
  92. package/docs/testing.md +118 -0
  93. package/docs/troubleshooting.md +55 -0
  94. package/docs/ux-reference.md +32 -0
  95. package/package.json +74 -42
  96. package/benchmark/invoice_ocr/data/invoice_01_ground_truth.json +0 -38
  97. package/benchmark/invoice_ocr/data/invoice_01_row_2.jpg +0 -0
  98. package/benchmark/invoice_ocr/data/invoice_02_ground_truth.json +0 -32
  99. package/benchmark/invoice_ocr/data/invoice_02_row_5.jpg +0 -0
  100. package/benchmark/invoice_ocr/data/invoice_03_ground_truth.json +0 -26
  101. package/benchmark/invoice_ocr/data/invoice_03_row_6.jpg +0 -0
  102. package/benchmark/invoice_ocr/data/invoice_04_ground_truth.json +0 -26
  103. package/benchmark/invoice_ocr/data/invoice_04_row_7.jpg +0 -0
  104. package/benchmark/invoice_ocr/data/invoice_05_ground_truth.json +0 -38
  105. package/benchmark/invoice_ocr/data/invoice_05_row_947.jpg +0 -0
  106. package/benchmark/invoice_ocr/data/invoice_06_ground_truth.json +0 -38
  107. package/benchmark/invoice_ocr/data/invoice_06_row_948.jpg +0 -0
  108. package/benchmark/invoice_ocr/data/invoice_07_ground_truth.json +0 -20
  109. package/benchmark/invoice_ocr/data/invoice_07_row_949.jpg +0 -0
  110. package/benchmark/invoice_ocr/data/invoice_08_ground_truth.json +0 -38
  111. package/benchmark/invoice_ocr/data/invoice_08_row_1888.jpg +0 -0
  112. package/benchmark/invoice_ocr/data/invoice_09_ground_truth.json +0 -26
  113. package/benchmark/invoice_ocr/data/invoice_09_row_1890.jpg +0 -0
  114. package/benchmark/invoice_ocr/data/invoice_10_ground_truth.json +0 -20
  115. package/benchmark/invoice_ocr/data/invoice_10_row_1892.jpg +0 -0
  116. package/benchmark/invoice_ocr/data/manifest.json +0 -97
  117. package/dist/benchmarks.js +0 -98
  118. package/dist/catalog.js +0 -61
  119. package/dist/cli.js +0 -188
  120. package/dist/daemon.js +0 -407
  121. package/dist/diagnostics.js +0 -227
  122. package/dist/frontier.js +0 -56
  123. package/dist/harness.js +0 -1
  124. package/dist/integrations.js +0 -19
  125. package/dist/invoice-eval.js +0 -33
  126. package/dist/invoice-score.js +0 -124
  127. package/dist/judge.js +0 -43
  128. package/dist/llm.js +0 -207
  129. package/dist/pi-config.js +0 -46
  130. package/dist/pi-trials.js +0 -373
  131. package/dist/policy.js +0 -185
  132. package/dist/providers.js +0 -1
  133. package/dist/recommend.js +0 -76
  134. package/dist/routes.js +0 -74
  135. package/dist/standalone.js +0 -224
  136. package/dist/store.js +0 -89
  137. package/dist/strategist.js +0 -68
  138. package/dist/task-input.js +0 -54
  139. package/dist/traces.js +0 -127
  140. package/dist/trials.js +0 -140
  141. package/dist/types.js +0 -2
  142. package/examples/invoice-prompt.txt +0 -19
  143. package/examples/task.example.json +0 -7
  144. package/extension/openmerit.ts +0 -947
  145. package/instructions/OPENMERIT.md +0 -63
  146. package/instructions/openmerit.policy.json +0 -37
  147. package/rules.md +0 -43
package/package.json CHANGED
@@ -1,36 +1,53 @@
1
1
  {
2
2
  "name": "openmerit",
3
- "version": "0.1.4",
4
- "description": "Find better models for each pi task by comparing quality, cost, and latency.",
3
+ "version": "0.1.6-preview.0",
4
+ "description": "Evidence-driven model decisions for coding harnesses.",
5
5
  "type": "module",
6
+ "bin": {
7
+ "openmerit": "./dist/terminal/src/cli.mjs"
8
+ },
9
+ "license": "MIT",
6
10
  "keywords": [
7
11
  "pi-package",
8
12
  "pi-extension",
9
- "pi-coding-agent",
10
13
  "model-routing",
11
- "llm",
12
- "openrouter",
13
- "evaluation"
14
+ "evaluation",
15
+ "pareto-frontier"
14
16
  ],
15
17
  "files": [
16
- "dist/",
17
- "extension/openmerit.ts",
18
- "instructions/",
19
- "examples/",
20
- "rules.md",
21
- "benchmark/invoice_ocr/data/"
18
+ "dist/core/",
19
+ "dist/protocol/",
20
+ "dist/pi/",
21
+ "dist/terminal/",
22
+ "docs/",
23
+ "CHANGELOG.md",
24
+ "LICENSE",
25
+ "README.md"
22
26
  ],
27
+ "exports": {
28
+ ".": {
29
+ "types": "./dist/core/src/index.d.ts",
30
+ "default": "./dist/core/src/index.js"
31
+ },
32
+ "./core": {
33
+ "types": "./dist/core/src/index.d.ts",
34
+ "default": "./dist/core/src/index.js"
35
+ },
36
+ "./protocol": {
37
+ "types": "./dist/protocol/src/index.d.ts",
38
+ "default": "./dist/protocol/src/index.js"
39
+ },
40
+ "./pi": {
41
+ "types": "./dist/pi/src/index.d.ts",
42
+ "default": "./dist/pi/src/index.js"
43
+ },
44
+ "./package.json": "./package.json"
45
+ },
23
46
  "pi": {
24
47
  "extensions": [
25
- "./extension/openmerit.ts"
48
+ "./dist/pi/src/index.js"
26
49
  ]
27
50
  },
28
- "bin": {
29
- "openmerit": "dist/cli.js"
30
- },
31
- "engines": {
32
- "node": ">=22.18.0"
33
- },
34
51
  "repository": {
35
52
  "type": "git",
36
53
  "url": "git+https://github.com/laz-aslam/openmerit.git"
@@ -42,29 +59,35 @@
42
59
  "publishConfig": {
43
60
  "access": "public"
44
61
  },
62
+ "workspaces": [
63
+ "packages/*"
64
+ ],
65
+ "engines": {
66
+ "node": ">=22.19.0"
67
+ },
45
68
  "scripts": {
69
+ "check": "npm run check --workspaces --if-present",
70
+ "test": "npm run test --workspaces --if-present",
71
+ "typecheck": "tsc -p tsconfig.json",
72
+ "build": "node scripts/build.mjs",
73
+ "demo": "node scripts/demo.mjs",
74
+ "predash": "node scripts/build-terminal.mjs",
75
+ "dash": "node packages/terminal/src/cli.mjs dash",
76
+ "build:docs": "node scripts/build-docs.mjs",
77
+ "check:docs": "npm run build:docs && node --test scripts/docs.test.mjs",
78
+ "check:demo": "node --test demo/test/*.test.mjs",
46
79
  "prepare": "npm run build",
47
- "build": "tsc -p tsconfig.json",
48
- "typecheck": "tsc --noEmit && tsc -p benchmark/tsconfig.json",
49
- "typecheck:extension": "tsc --noEmit --strict --target ES2022 --module NodeNext --moduleResolution NodeNext --skipLibCheck extension/openmerit.ts",
50
- "test": "vitest run",
51
- "check": "npm run typecheck && npm run typecheck:extension && npm test && npm run build && npm run benchmark:verify-recorded",
52
- "prepublishOnly": "npm run check",
53
- "benchmark:invoice:prepare": "node benchmark/invoice_ocr/prepare_data.ts",
54
- "benchmark:invoice": "node benchmark/invoice_ocr/benchmark.ts",
55
- "benchmark:invoice:audit": "node benchmark/invoice_ocr/audit_results.ts",
56
- "benchmark:invoice:round2": "node benchmark/invoice_ocr/benchmark_round2.ts",
57
- "benchmark:invoice:round2:audit": "node benchmark/invoice_ocr/audit_round2.ts",
58
- "benchmark:text-to-sql": "node benchmark/text_to_sql/benchmark.ts",
59
- "benchmark:text-to-sql:audit": "node benchmark/text_to_sql/audit_results.ts",
60
- "benchmark:policy": "node benchmark/policy_adjudication/benchmark.ts",
61
- "benchmark:policy:audit": "node benchmark/policy_adjudication/audit_results.ts",
62
- "benchmark:policy:validate": "node benchmark/policy_adjudication/validate_eval.ts",
63
- "benchmark:verify-recorded": "node benchmark/verify_recorded.ts"
80
+ "verify": "npm test && npm run check && npm run typecheck && npm run build && npm run check:demo && npm run check:docs && git diff --check",
81
+ "prepublishOnly": "npm run verify",
82
+ "build:dash-preview": "node scripts/build-terminal-preview.mjs",
83
+ "deploy:dash-preview": "npx --yes wrangler@4.136.3 deploy --config wrangler.terminal.jsonc"
84
+ },
85
+ "dependencies": {
86
+ "@earendil-works/pi-ai": "0.87.0",
87
+ "typebox": "1.3.27"
64
88
  },
65
- "license": "MIT",
66
89
  "peerDependencies": {
67
- "@earendil-works/pi-coding-agent": "*"
90
+ "@earendil-works/pi-coding-agent": ">=0.87.0 <0.88.0"
68
91
  },
69
92
  "peerDependenciesMeta": {
70
93
  "@earendil-works/pi-coding-agent": {
@@ -72,9 +95,18 @@
72
95
  }
73
96
  },
74
97
  "devDependencies": {
75
- "@earendil-works/pi-coding-agent": "^0.85.1",
76
- "@types/node": "^22.10.0",
77
- "typescript": "^5.7.0",
78
- "vitest": "^2.1.0"
98
+ "@resvg/resvg-js": "2.6.2",
99
+ "@types/node": "^22.18.6",
100
+ "@xyflow/react": "12.12.0",
101
+ "elkjs": "0.12.0",
102
+ "esbuild": "0.28.2",
103
+ "liveline": "0.0.7",
104
+ "markdown-it": "15.0.2",
105
+ "minisearch": "7.2.0",
106
+ "morphdom": "2.7.8",
107
+ "react": "19.3.0",
108
+ "react-dom": "19.3.0",
109
+ "torph": "0.1.3",
110
+ "typescript": "^5.9.3"
79
111
  }
80
112
  }
@@ -1,38 +0,0 @@
1
- {
2
- "supplier_name": "PixelWave Solutions Inc.",
3
- "customer_name": "Greenfield Marketing Ltd.",
4
- "invoice_number": "INV-2023-0098",
5
- "po_number": "PO-5678",
6
- "document_date": "2023-07-15",
7
- "due_date": "2023-08-14",
8
- "document_currency": "CAD",
9
- "document_total_net": 2220.0,
10
- "document_total_tax": 111.0,
11
- "document_total_amount": 2331.0,
12
- "line_items": [
13
- {
14
- "description": "Website design services",
15
- "quantity": 1.0,
16
- "unit_price": 1200.0,
17
- "amount": 1200.0
18
- },
19
- {
20
- "description": "Content writing package",
21
- "quantity": 10.0,
22
- "unit_price": 50.0,
23
- "amount": 500.0
24
- },
25
- {
26
- "description": "SEO optimization",
27
- "quantity": 5.0,
28
- "unit_price": 80.0,
29
- "amount": 400.0
30
- },
31
- {
32
- "description": "Hosting subscription",
33
- "quantity": 12.0,
34
- "unit_price": 10.0,
35
- "amount": 120.0
36
- }
37
- ]
38
- }
@@ -1,32 +0,0 @@
1
- {
2
- "supplier_name": "TechSolutions Ltd",
3
- "customer_name": null,
4
- "invoice_number": "IE-INV-2024-000123",
5
- "po_number": null,
6
- "document_date": "2024-03-15",
7
- "due_date": null,
8
- "document_currency": "EUR",
9
- "document_total_net": 6200.0,
10
- "document_total_tax": 1143.0,
11
- "document_total_amount": 7343.0,
12
- "line_items": [
13
- {
14
- "description": "Consulting services for project X",
15
- "quantity": 3.0,
16
- "unit_price": 1500.0,
17
- "amount": 4500.0
18
- },
19
- {
20
- "description": "High-performance laptop (Model Y)",
21
- "quantity": 1.0,
22
- "unit_price": 1200.0,
23
- "amount": 1200.0
24
- },
25
- {
26
- "description": "International shipping to Germany",
27
- "quantity": 1.0,
28
- "unit_price": 500.0,
29
- "amount": 500.0
30
- }
31
- ]
32
- }
@@ -1,26 +0,0 @@
1
- {
2
- "supplier_name": "CloudCompute Solutions Inc.",
3
- "customer_name": "Acme Corp.",
4
- "invoice_number": "INV-20230815-001",
5
- "po_number": "PO-987654",
6
- "document_date": "2023-08-15",
7
- "due_date": "2023-09-14",
8
- "document_currency": "USD",
9
- "document_total_net": 110.0,
10
- "document_total_tax": 9.07,
11
- "document_total_amount": 119.07,
12
- "line_items": [
13
- {
14
- "description": "Enterprise Cloud Storage Subscription",
15
- "quantity": 1.0,
16
- "unit_price": 50.0,
17
- "amount": 50.0
18
- },
19
- {
20
- "description": "Premium Support Add-On",
21
- "quantity": 2.0,
22
- "unit_price": 30.0,
23
- "amount": 60.0
24
- }
25
- ]
26
- }
@@ -1,26 +0,0 @@
1
- {
2
- "supplier_name": "Tech Solutions Ltd",
3
- "customer_name": "Acme Construction Ltd",
4
- "invoice_number": "INV-20230815-001",
5
- "po_number": "PO-7654321",
6
- "document_date": "2023-08-15",
7
- "due_date": "2023-09-14",
8
- "document_currency": "GBP",
9
- "document_total_net": 1500.0,
10
- "document_total_tax": 240.0,
11
- "document_total_amount": 1740.0,
12
- "line_items": [
13
- {
14
- "description": "High-performance laptop",
15
- "quantity": 1.0,
16
- "unit_price": 1200.0,
17
- "amount": 1200.0
18
- },
19
- {
20
- "description": "Office desk chair",
21
- "quantity": 2.0,
22
- "unit_price": 150.0,
23
- "amount": 300.0
24
- }
25
- ]
26
- }
@@ -1,38 +0,0 @@
1
- {
2
- "supplier_name": "Celtic Code Solutions",
3
- "customer_name": "North Star Consulting Ltd.",
4
- "invoice_number": "INV-2023-0075",
5
- "po_number": null,
6
- "document_date": "2023-07-15",
7
- "due_date": "2023-08-14",
8
- "document_currency": "EUR",
9
- "document_total_net": 4600.0,
10
- "document_total_tax": 1058.0,
11
- "document_total_amount": 5658.0,
12
- "line_items": [
13
- {
14
- "description": "UI Development Consulting",
15
- "quantity": 20.0,
16
- "unit_price": 80.0,
17
- "amount": 1600.0
18
- },
19
- {
20
- "description": "UX Research",
21
- "quantity": 10.0,
22
- "unit_price": 90.0,
23
- "amount": 900.0
24
- },
25
- {
26
- "description": "Custom API Integration",
27
- "quantity": 15.0,
28
- "unit_price": 100.0,
29
- "amount": 1500.0
30
- },
31
- {
32
- "description": "Project Management Support",
33
- "quantity": 5.0,
34
- "unit_price": 120.0,
35
- "amount": 600.0
36
- }
37
- ]
38
- }
@@ -1,38 +0,0 @@
1
- {
2
- "supplier_name": "Oak Property Management Ltd",
3
- "customer_name": "John Doe",
4
- "invoice_number": "RENT-2023-001",
5
- "po_number": null,
6
- "document_date": "2023-05-01",
7
- "due_date": "2023-05-15",
8
- "document_currency": "EUR",
9
- "document_total_net": 1650.0,
10
- "document_total_tax": 103.5,
11
- "document_total_amount": 1753.5,
12
- "line_items": [
13
- {
14
- "description": "Monthly Base Rent",
15
- "quantity": 1.0,
16
- "unit_price": 1200.0,
17
- "amount": 1200.0
18
- },
19
- {
20
- "description": "Utilities (Electricity/Gas)",
21
- "quantity": 1.0,
22
- "unit_price": 200.0,
23
- "amount": 200.0
24
- },
25
- {
26
- "description": "Property Tax",
27
- "quantity": 1.0,
28
- "unit_price": 150.0,
29
- "amount": 150.0
30
- },
31
- {
32
- "description": "Cleaning Service",
33
- "quantity": 1.0,
34
- "unit_price": 100.0,
35
- "amount": 100.0
36
- }
37
- ]
38
- }
@@ -1,20 +0,0 @@
1
- {
2
- "supplier_name": "Acme Office Supplies Inc.",
3
- "customer_name": "Global Tech Corp.",
4
- "invoice_number": "INV-2023-0001",
5
- "po_number": null,
6
- "document_date": "2023-07-15",
7
- "due_date": "2023-08-15",
8
- "document_currency": "USD",
9
- "document_total_net": 600.0,
10
- "document_total_tax": 42.0,
11
- "document_total_amount": 642.0,
12
- "line_items": [
13
- {
14
- "description": "Office chairs",
15
- "quantity": 5.0,
16
- "unit_price": 120.0,
17
- "amount": 600.0
18
- }
19
- ]
20
- }
@@ -1,38 +0,0 @@
1
- {
2
- "supplier_name": "Digital Solutions Pty Ltd",
3
- "customer_name": "Global Tech Industries Ltd",
4
- "invoice_number": "INV-2024-005",
5
- "po_number": null,
6
- "document_date": "2024-06-15",
7
- "due_date": "2024-07-15",
8
- "document_currency": "AUD",
9
- "document_total_net": 3840.0,
10
- "document_total_tax": 384.0,
11
- "document_total_amount": 4224.0,
12
- "line_items": [
13
- {
14
- "description": "Cloud hosting services",
15
- "quantity": 12.0,
16
- "unit_price": 120.0,
17
- "amount": 1440.0
18
- },
19
- {
20
- "description": "Software license renewal",
21
- "quantity": 1.0,
22
- "unit_price": 1200.0,
23
- "amount": 1200.0
24
- },
25
- {
26
- "description": "Subscription data analytics package",
27
- "quantity": 1.0,
28
- "unit_price": 800.0,
29
- "amount": 800.0
30
- },
31
- {
32
- "description": "Technical support",
33
- "quantity": 1.0,
34
- "unit_price": 400.0,
35
- "amount": 400.0
36
- }
37
- ]
38
- }
@@ -1,26 +0,0 @@
1
- {
2
- "supplier_name": "Acme Consulting Group",
3
- "customer_name": null,
4
- "invoice_number": "INV-2023-0789",
5
- "po_number": "PO-2023-4567",
6
- "document_date": "2023-07-15",
7
- "due_date": "2023-08-14",
8
- "document_currency": "USD",
9
- "document_total_net": 3250.0,
10
- "document_total_tax": 268.12,
11
- "document_total_amount": 3518.12,
12
- "line_items": [
13
- {
14
- "description": "Business Strategy Consultation",
15
- "quantity": 10.0,
16
- "unit_price": 200.0,
17
- "amount": 2000.0
18
- },
19
- {
20
- "description": "Technology Roadmap Development",
21
- "quantity": 5.0,
22
- "unit_price": 250.0,
23
- "amount": 1250.0
24
- }
25
- ]
26
- }
@@ -1,20 +0,0 @@
1
- {
2
- "supplier_name": "VirtualCo Solutions",
3
- "customer_name": "John Doe",
4
- "invoice_number": "INV-2023-000123",
5
- "po_number": null,
6
- "document_date": "2023-07-15",
7
- "due_date": "2023-08-14",
8
- "document_currency": "USD",
9
- "document_total_net": 1200.0,
10
- "document_total_tax": 96.0,
11
- "document_total_amount": 1296.0,
12
- "line_items": [
13
- {
14
- "description": "Enterprise SaaS Subscription for Q3 2023",
15
- "quantity": 1.0,
16
- "unit_price": 1200.0,
17
- "amount": 1200.0
18
- }
19
- ]
20
- }
@@ -1,97 +0,0 @@
1
- {
2
- "dataset": "alamgirqazi/invoice-ocr-synthetic",
3
- "dataset_revision": "44ddfd3c0c373b69f377910f83c4164a1e52d52c",
4
- "license": "CC BY 4.0",
5
- "rows": [
6
- {
7
- "invoice_id": "invoice_01",
8
- "row_idx": 2,
9
- "file_name": "synth_0002_8f01361b.png",
10
- "quality": "clean",
11
- "template": "freelancer_invoice",
12
- "image": "invoice_01_row_2.jpg",
13
- "ground_truth": "invoice_01_ground_truth.json"
14
- },
15
- {
16
- "invoice_id": "invoice_02",
17
- "row_idx": 5,
18
- "file_name": "synth_0005_553deef3.png",
19
- "quality": "clean",
20
- "template": "formal_corporate",
21
- "image": "invoice_02_row_5.jpg",
22
- "ground_truth": "invoice_02_ground_truth.json"
23
- },
24
- {
25
- "invoice_id": "invoice_03",
26
- "row_idx": 6,
27
- "file_name": "synth_0006_474081ca.png",
28
- "quality": "clean",
29
- "template": "modern_minimal",
30
- "image": "invoice_03_row_6.jpg",
31
- "ground_truth": "invoice_03_ground_truth.json"
32
- },
33
- {
34
- "invoice_id": "invoice_04",
35
- "row_idx": 7,
36
- "file_name": "synth_0007_7292e354.png",
37
- "quality": "clean",
38
- "template": "utility_bill",
39
- "image": "invoice_04_row_7.jpg",
40
- "ground_truth": "invoice_04_ground_truth.json"
41
- },
42
- {
43
- "invoice_id": "invoice_05",
44
- "row_idx": 947,
45
- "file_name": "synth_0009_8f6b430f.png",
46
- "quality": "faded",
47
- "template": "freelancer_invoice",
48
- "image": "invoice_05_row_947.jpg",
49
- "ground_truth": "invoice_05_ground_truth.json"
50
- },
51
- {
52
- "invoice_id": "invoice_06",
53
- "row_idx": 948,
54
- "file_name": "synth_0010_73bd8d75.png",
55
- "quality": "faded",
56
- "template": "formal_corporate",
57
- "image": "invoice_06_row_948.jpg",
58
- "ground_truth": "invoice_06_ground_truth.json"
59
- },
60
- {
61
- "invoice_id": "invoice_07",
62
- "row_idx": 949,
63
- "file_name": "synth_0011_8888d5c6.png",
64
- "quality": "faded",
65
- "template": "utility_bill",
66
- "image": "invoice_07_row_949.jpg",
67
- "ground_truth": "invoice_07_ground_truth.json"
68
- },
69
- {
70
- "invoice_id": "invoice_08",
71
- "row_idx": 1888,
72
- "file_name": "synth_0012_72cf2460.png",
73
- "quality": "bad_scan",
74
- "template": "modern_minimal",
75
- "image": "invoice_08_row_1888.jpg",
76
- "ground_truth": "invoice_08_ground_truth.json"
77
- },
78
- {
79
- "invoice_id": "invoice_09",
80
- "row_idx": 1890,
81
- "file_name": "synth_0014_d3972e7f.png",
82
- "quality": "bad_scan",
83
- "template": "freelancer_invoice",
84
- "image": "invoice_09_row_1890.jpg",
85
- "ground_truth": "invoice_09_ground_truth.json"
86
- },
87
- {
88
- "invoice_id": "invoice_10",
89
- "row_idx": 1892,
90
- "file_name": "synth_0016_223f5434.png",
91
- "quality": "bad_scan",
92
- "template": "modern_minimal",
93
- "image": "invoice_10_row_1892.jpg",
94
- "ground_truth": "invoice_10_ground_truth.json"
95
- }
96
- ]
97
- }