Can Unstract extract a repeated set of records?
Unstract extracted the invoice's three line items with their values attached to the right item. It excluded the subtotal, VAT and total rows rather than treating them as items.
1 of 1 test case passed
Every test case in this scenario has a result.
The test case
Each test case is judged on its own: Pass, Fail, Not gradable, or Untested. The scenario result above is based on this test case.
Repeated set with correct associationPassEvidence
We sent the three-page invoice to Unstract's Execution API for extraction by a deployed Prompt Studio project.
Every line item in the goods table on page 3
{ "line_items": [ { "amount": "£680.00", "quantity": 2, "item_code": "DP-2210", "unit_price": "£340.00", "description": "Dosing pump, 240V" }, { "amount": "£144.00", "quantity": 3, "item_code": "CT-1040", "unit_price": "£48.00", "description": "Chemical feed tubing, 10m coil" }, { "amount": "£215.00", "quantity": 1, "item_code": "FS-3302", "unit_price": "£215.00", "description": "Inline flow sensor" } ] }
Structured output: three extracted invoice items with their quantities, prices and amounts
Copied from Output file (JSON), item 1 › result › output › line_items
Open the whole JSON file ↗| ✓ | Expected: Return all three items with the correct descriptions, codes, quantities, unit prices and amounts, without omissions, duplicates or values assigned to another item.Found: Source and output contain three items: pump 2 × £340.00 = £680.00; tubing 3 × £48.00 = £144.00; sensor 1 × £215.00 = £215.00, with correctly associated descriptions and codes. |
- form
- { "timeout": "0", "include_metadata": "true", "include_metrics": "true", "include_extracted_text": "true" }
- input_sha256
- { "invoice_HIS-4402 - Digital+Scanned+Digital.pdf": "89fb14d7c0897bbfef47ffa3aa3930ee7eccf62c8a9430710d1906598c9bdfec" }
- headers
- { "Authorization": "Bearer ***masked***" }
Show the whole file (1 KB)
{ "method": "POST", "url": "https://eu-west.unstract.com/deployment/api/org_0pMusmf6SGq5PdXO/sde-tc71-repeated-lines/", "headers": { "Authorization": "Bearer ***masked***" }, "form": { "timeout": "0", "include_metadata": "true", "include_metrics": "true", "include_extracted_text": "true" }, "files": [ { "name": "invoice_HIS-4402 - Digital+Scanned+Digital.pdf", "bytes": 180060 } ], "deployment": "sde-tc71-repeated-lines", "input_sha256": { "invoice_HIS-4402 - Digital+Scanned+Digital.pdf": "89fb14d7c0897bbfef47ffa3aa3930ee7eccf62c8a9430710d1906598c9bdfec" } }
- schema_fields 1
- { "key": "line_items", "type": "array", "description": "Every line item in the goods table on page 3", "item_fields": { "description": "The description of the line item", "item_code": "The item or product code printed for the line", "quantity": "The quantity of the line item", "unit_price": "The unit price of the line item", "amount": "The amount of the line item" } }
- config_changed_from_default
- { "include_metadata": { "value": true, "default": false }, "include_metrics": { "value": true, "default": false }, "include_extracted_text": { "value": true, "default": false } }
- plan_tier
- Unstract Cloud free trial (14 days, 1,000K LLM tokens; free-trial Azure GPT-4o LLM)
- run_time
- 2026-11-24 15:48 IST
Show the whole file (4 KB)
{ "product": "Unstract", "subject_slug": "unstract", "case": "TC71", "scenario": "S69 · A repeated set of records", "task": "86bc6rj29", "deployment": "sde-tc71-repeated-lines", "inputs": [ { "name": "invoice_HIS-4402 - Digital+Scanned+Digital.pdf", "sha256": "89fb14d7c0897bbfef47ffa3aa3930ee7eccf62c8a9430710d1906598c9bdfec", "bytes": 180060 } ], "schema_fields": [ { "key": "line_items", "type": "array", "description": "Every line item in the goods table on page 3", "item_fields": { "description": "The description of the line item", "item_code": "The item or product code printed for the line", "quantity": "The quantity of the line item", "unit_price": "The unit price of the line item", "amount": "The amount of the line item" } } ], "required": ["line_items"], "endpoint": "<base>/deployment/api/<organization_id>/<api_name>/", "surface": "API", "config": "evidence", "variant": null, "config_settings": { "timeout": 0, "include_metadata": true, "include_metrics": true, "include_extracted_text": true }, "config_changed_from_default": { "include_metadata": { "value": true, "default": false }, "include_metrics": { "value": true, "default": false }, "include_extracted_text": { "value": true, "default": false } }, "config_use_for": "any extraction where the result must show its source text, line numbers and cost (metadata carries the line numbers and whisper hash used by the highlight API)", "config_doc": "https://docs.unstract.com/unstract/unstract_platform/api_deployment/unstract_api_deployment_execution_api.md", "config_why": "Documented Execution API; include_metadata/include_metrics/include_extracted_text requested so the result shows the source text and cost per the vendor docs. Unstract takes the fields in a Prompt Studio project: one prompt per schema field = field description verbatim, no hints (arrays are a JSON-output prompt that also names the item keys from the schema); LLM Azure GPT-4o free trial; default free-trial text extractor; deployment tool settings default. Project SDE-TC71-repeated-lines, 1 JSON prompt. (First attempt got no result: DNS resolution error on this PC while polling; this is the only recorded run.)", "config_note": "configuration `evidence` (any extraction where the result must show its source text, line numbers and cost (metadata carries the line numbers and whisper hash used by the highlight API); per https://docs.unstract.com/unstract/unstract_platform/api_deployment/unstract_api_deployment_execution_api.md): sent timeout=0, include_metadata=true, include_metrics=true, include_extracted_text=true; changed from the default: include_metadata=true (default false), include_metrics=true (default false), include_extracted_text=true (default false)", "rerun": null, "tool_version": "not exposed by the hosted product", "plan_tier": "Unstract Cloud free trial (14 days, 1,000K LLM tokens; free-trial Azure GPT-4o LLM)", "run_time": "2026-11-24 15:48 IST", "latency_s": 20.4, "pages": null, "cost": null, "output_file": "output.json", "response_file": "api_response.json", "request_file": "request.json", "run_file": "run.json", "source_renders": [ "source_invoice_HIS-4402_-_Digit_page_1.png", "source_invoice_HIS-4402_-_Digit_page_2.png", "source_invoice_HIS-4402_-_Digit_page_3.png" ], "code_version": { "commit": "51584148c55d28dd7e10aa44d041854f6fa4c139", "branch": "adapter/sde-unstract", "uncommitted_changes": true }, "extra": { "submit_response": { "message": { "execution_id": "14f8df54-0165-4ea2-94f2-3dc9e64cfb86", "execution_status": "PENDING", "status_api": "/deployment/api/org_0pMusmf6SGq5PdXO/sde-tc71-repeated-lines/?execution_id=14f8df54-0165-4ea2-94f2-3dc9e64cfb86", "error": null, "result": null } }, "polls": [ { "t": 6.5, "http": 422, "status": "EXECUTING" }, { "t": 11.1, "http": 422, "status": "EXECUTING" }, { "t": 15.8, "http": 422, "status": "EXECUTING" }, { "t": 20.4, "http": 200, "status": "COMPLETED" } ], "execution_id": "14f8df54-0165-4ea2-94f2-3dc9e64cfb86" } }
- item 1 › result › metadata › line_numbers
- { "line_items": [] }
- item 1 › status
- Success
Every item had to retain its own values. Unstract's documented extraction API completed the extraction and kept each item's description, code, quantity, unit price and amount together, with no items missing or repeated.
No source line locations. No source line positions were supplied for the extracted invoice items.
Currency amounts are text. In the returned invoice items, quantities were numbers; unit prices and amounts were text that retained the pound sign.
Configuration and setup
How this tool was set up for the run and what the test needed in place. Each row is a fact from the run's records; a fact the records do not hold is left out, not guessed.
How this scenario is graded
How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.
Each test case gets one result per tool: Pass, Fail or Not gradable. A test case we haven't run yet shows Untested. There are no partial results.
- Pass: the tool did everything the test expected, and nothing it said contradicts the correct answer.
- Fail: at least one expected behaviour clearly didn't happen; the test case's result says which one and quotes the tool.
- Not gradable: our evidence couldn't settle the outcome (for example a record we needed is missing). It is never counted as a fail, and the test case's result says what's missing.
Where this sits in the benchmark
This page is one cell of a larger study: one tool, one scenario. Only this benchmark's frame appears here.
| Level | Name | Scope |
|---|---|---|
| Benchmark | Structured Document Extraction → | 19 scenarios · 11 tools |
| Capability | Nested & Repeated Fields → | |
| Scenario | A repeated set of records → | |
| Tool | Unstract → |
Global scenario definition → · Global capability definition → · Unstract product page →
History of this result
What has happened to this result since it was first published. Runs and grades are never overwritten: a retest or a re-grade publishes a new result and keeps the earlier one readable.
Act on this result
Nothing filed here edits the run or the grade. A challenge opens a review, and a review can produce a new run or a re-grade — which becomes the current result and leaves this one in the history.
You run the same kind of test against your own setup and get the same behaviour.
Agree →Yours behaves differently. Tell us what you got, with a screenshot if you have one.
Disagree →Something here is wrong — a reference value, a transcription, a grade.
Report an issue →Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.
Vendor notice →The same record is available as structured data through the AI Demos MCP server, with the counts, the coverage and every per-test-case reason carried as fields.
Verify the proof files
These files support this result. Open a file to inspect the original evidence.
File fingerprints (SHA-256)
A fingerprint identifies the exact file used for this result.