AI Demos Research — the structured-intelligence platform. Every verdict on these pages opens to the execution behind it.
Graded 24 November 2026

Can Unstract extract a value using a supplied definition?

Unstract followed the supplied definition: from a 3-page invoice it returned the consignment reference CFS-CN-40821, the value the definition selects, not the more prominent invoice number CFS-7710. The invoice number is labelled on page 1, repeated in every page footer and printed in the running heads of pages 2 and 3.

1 of 1 test case passed

Every test case in this scenario has a result.

Pass rate100%1 of 1 gradable
Coverage1 of 1test case with a result
1PassDid everything it was expected to do.
0FailNo test case failed.
0Not gradableEvery result here could be graded.
0UntestedEvery test case in this scenario has a result.
The pass rate is a summary. The evidence is the test case below: what we sent, what we checked, what the tool returned, and the proof.

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.

Definition overrides the prominent numberPassEvidence
What we sent

We sent the whole 3-page invoice PDF once to an Unstract API deployment of a Prompt Studio project whose single prompt is the reference number definition, word for word, running on the free-trial Azure GPT-4o model.

InputDocument (PDF)
Input PDF: the 3-page invoice, with the invoice number and consignment reference on page 1
Open the PDF ↗
Extraction schema
The consignment reference number, the identifier tied to the physical shipment. This is NOT the invoice number, even though the invoice number appears more prominently (labelled, and repeated in the footer of every page).
What the tool returned

Full API response: the completed run, the extracted value and the invoice text read

Copied from Output file 2 (JSON), message 1 › result › output

JSON
{
  "reference_number": "CFS-CN-40821"
}
Open the whole JSON file ↗

Returned output: the reference number field holding CFS-CN-40821

Copied from Output file 1 (JSON), item 1 › result › output

JSON
{
  "reference_number": "CFS-CN-40821"
}
Open the whole JSON file ↗
Expected vs. Found
✓Expected: The value the field's definition selects, not the more prominent value that also fits the field's name.Found: It returned CFS-CN-40821, the consignment reference the definition selects, not the invoice number CFS-7710 labelled on page 1 and repeated in every footer and running head.
Supporting proof
Proof 1Captured file (JSON)
Request record: the whole invoice PDF sent to the API deployment with four form options
Cited values2 values from this file
input_sha256
{ "Calderwood_Freight_S66_S67_S72.pdf": "1bcc6c7b945956c5b6f5a87d223ed3d578a62aa2c56c5fc1e3abedb4cc4de72e" }
form
{ "timeout": "0", "include_metadata": "true", "include_metrics": "true", "include_extracted_text": "true" }
Show the whole file (1 KB)
JSON
{
  "method": "POST",
  "url": "https://eu-west.unstract.com/deployment/api/org_0pMusmf6SGq5PdXO/sde-tc68-reference/",
  "headers": {
    "Authorization": "Bearer ***masked***"
  },
  "form": {
    "timeout": "0",
    "include_metadata": "true",
    "include_metrics": "true",
    "include_extracted_text": "true"
  },
  "files": [
    {
      "name": "Calderwood_Freight_S66_S67_S72.pdf",
      "bytes": 120877
    }
  ],
  "deployment": "sde-tc68-reference",
  "input_sha256": {
    "Calderwood_Freight_S66_S67_S72.pdf": "1bcc6c7b945956c5b6f5a87d223ed3d578a62aa2c56c5fc1e3abedb4cc4de72e"
  }
}
Open the JSON file ↗
Proof 2Captured file (JSON)
Run record: the field definition, the configuration and the run completing after 21.7 seconds
Cited values3 values from this file
schema_fields
[ { "key": "reference_number", "type": "string", "description": "The consignment reference number, the identifier tied to the physical shipment. This is NOT the invoice number, even though the invoice number appears more prominently (labelled, and repeated in the footer of every page)." } ]
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-TC68-reference, 1 text prompt (the definition is part of the schema description, not a hint).
extra › polls
[ { "t": 7.8, "http": 422, "status": "EXECUTING" }, { "t": 12.4, "http": 422, "status": "EXECUTING" }, { "t": 17.1, "http": 422, "status": "EXECUTING" }, { "t": 21.7, "http": 200, "status": "COMPLETED" } ]
Show the whole file (4 KB)
JSON
{
  "product": "Unstract",
  "subject_slug": "unstract",
  "case": "TC68",
  "scenario": "S66 · The value needs a supplied definition",
  "task": "86bc6rj1f",
  "deployment": "sde-tc68-reference",
  "inputs": [
    {
      "name": "Calderwood_Freight_S66_S67_S72.pdf",
      "sha256": "1bcc6c7b945956c5b6f5a87d223ed3d578a62aa2c56c5fc1e3abedb4cc4de72e",
      "bytes": 120877
    }
  ],
  "schema_fields": [
    {
      "key": "reference_number",
      "type": "string",
      "description": "The consignment reference number, the identifier tied to the physical shipment. This is NOT the invoice number, even though the invoice number appears more prominently (labelled, and repeated in the footer of every page)."
    }
  ],
  "required": ["reference_number"],
  "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-TC68-reference, 1 text prompt (the definition is part of the schema description, not a hint).",
  "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:42 IST",
  "latency_s": 21.7,
  "pages": null,
  "cost": null,
  "output_file": "output.json",
  "response_file": "api_response.json",
  "request_file": "request.json",
  "run_file": "run.json",
  "source_renders": [
    "source_Calderwood_Freight_S66_S_page_1.png",
    "source_Calderwood_Freight_S66_S_page_2.png",
    "source_Calderwood_Freight_S66_S_page_3.png"
  ],
  "code_version": {
    "commit": "51584148c55d28dd7e10aa44d041854f6fa4c139",
    "branch": "adapter/sde-unstract",
    "uncommitted_changes": true
  },
  "extra": {
    "submit_response": {
      "message": {
        "execution_id": "58358bba-79bb-4b1f-b66d-d96b7209a391",
        "execution_status": "PENDING",
        "status_api": "/deployment/api/org_0pMusmf6SGq5PdXO/sde-tc68-reference/?execution_id=58358bba-79bb-4b1f-b66d-d96b7209a391",
        "error": null,
        "result": null
      }
    },
    "polls": [
      {
        "t": 7.8,
        "http": 422,
        "status": "EXECUTING"
      },
      {
        "t": 12.4,
        "http": 422,
        "status": "EXECUTING"
      },
      {
        "t": 17.1,
        "http": 422,
        "status": "EXECUTING"
      },
      {
        "t": 21.7,
        "http": 200,
        "status": "COMPLETED"
      }
    ],
    "execution_id": "58358bba-79bb-4b1f-b66d-d96b7209a391"
  }
}
Open the JSON file ↗
Cited values2 values from this file · long text shortened
message 1 › result › metadata › context › reference_number
[ "\n\n INVOICE \nCalderwood Freight Services \nUK ROAD HAULAGE … [3,583 characters in the file]" ]
status
COMPLETED
Why this result

The field's definition names the consignment reference and rules out the invoice number, the more prominent of the two values that fit the field's name. Returning the invoice number would have been a Fail; Unstract returned the consignment reference, so this is a Pass.

Tested by Rugved Nichite · evidence dated 24 November 2026

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.

Software that produced the output
Unstract
Build or version
Not exposed by the hosted product
Model
Azure GPT-4o (free trial)
Surface
API
Set up before the run
The input was a 3-page invoice: page 1 shows invoice number CFS-7710 and consignment reference CFS-CN-40821; every footer repeats CFS-7710, pages 2 and 3 carry it in the running head, and the consignment reference recurs only in a page-3 damage note. Unstract had one text field, the reference number, whose definition, used word for word as its only prompt with no hints, says it is the shipment's consignment reference, not the invoice number.
Response includes
metadata, metrics and extracted text
Field prompt
one prompt per field; the definition word for word, no hints
Tested
24 November 2026 (15:42 IST) · Rugved Nichite

How this scenario is graded

How we decide Pass, Fail and Not gradable. The same rules apply to every tool tested on this scenario.

How results are decided

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.

The rules
  • 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.

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.

from the publication record
25 November 2026First publishedStructured Document Extraction v1

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.

This matches what I see

You run the same kind of test against your own setup and get the same behaviour.

Agree →
This does not match

Yours behaves differently. Tell us what you got, with a screenshot if you have one.

Disagree →
Point out an issue

Something here is wrong — a reference value, a transcription, a grade.

Report an issue →
Request a retest

On a newer build, a larger dataset, or your own setup.

Request a retest →
We have fixed this

Tell us what changed and we schedule a rerun of the failing test case. The old result stays as history.

Vendor notice →
Filed against this evidenceNothing yet. Challenges, counter-evidence and fix notices appear here with their outcome, and stay on the page after they are resolved.
Cite this result
aidemos.com/benchmarks/structured-document-extraction/results/unstract/the-value-needs-a-supplied-definition · 1 pass · 0 fail · coverage 1/1 · graded 2026-11-24

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.

Input · Document (PDF) ↗application/pdf · 118 KB
Output file 1 (JSON) ↗application/json · 13 KB
Output file 2 (JSON) ↗application/json · 13 KB
Proof 1 · Captured file (JSON) ↗application/json · 1 KB
Proof 2 · Captured file (JSON) ↗application/json · 4 KB
File fingerprints (SHA-256)

A fingerprint identifies the exact file used for this result.

Input · Document (PDF)1bcc6c7b945956c5b6f5a87d223ed3d578a62aa2c56c5fc1e3abedb4cc4de72e
Output file 1 (JSON)32d2b6a1c2f13ffeea7fe152653edf61efc3d508803438d7d72fda905c900dc6
Output file 2 (JSON)b42c7d6c922e5300907f1e86923d494807f9864454bfaae06f12d65715bb5647
Proof 1 · Captured file (JSON)ae76800a4bc6a85b18d6381c129d7bc1e1fc20d1030dd6e720bc876620032c9c
Proof 2 · Captured file (JSON)e33938894ac263281ed66f5a4535b63ec1cdbf1344f07ffa88ff4ebf98a32bdb