Skip to main content

Create Ground Truth Dataset

Create a new ground truth dataset linked to a schema. The dataset defines the expected extraction output used for accuracy benchmarking.

POST/v1/quality/ground-truth

Response

Response fields (201 Created)

idstringDataset UUID.
namestringDataset name.
descriptionstring | nullOptional description.
user_schema_idstring | nullAssociated user schema ID, if any.
document_countintegerNumber of entries (0 for newly created datasets).
created_atstringISO 8601 creation timestamp.
links.selfstringURL to this dataset.

Response (201 Created)

{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "name": "Invoice Accuracy Set",
  "description": null,
  "user_schema_id": null,
  "document_count": 0,
  "created_at": "2024-09-01T10:00:00.000Z",
  "links": {
    "self": "/v1/quality/ground-truth/a1b2c3d4-e5f6-7890-abcd-ef1234567890"
  }
}

Errors

Error responses

400validation_errorMissing required field: name.
401unauthorizedMissing or invalid API key.
429rate_limitedToo many requests. Retry after the period indicated in the Retry-After header.