Real-time validation
Add real-time human-in-the-loop validation to predictions.
Last updated
Add real-time human-in-the-loop validation to predictions.
Last updated
To upload documents under the conditional validation workflow, a few changes to the standard fileupload
form-data parameters are required:
Specify the validation workflow type by setting: workflowId=validate
Specify the fieldSet
or fieldSets
parameter to predict against
Configure the workflowOptions
according to the required validation rules
Validation workflows are a BETA
feature and subject to change.
This guide is under-construction.
Workflow options are strings which contain a JSON-formatted object that controls how the steps in the validation workflow are executed. Here's a sample workflowOptions
string which validates the confidence of the bpay.crn
field:
For the sample above, extractions which include a bpay.crn
with confidence less than 0.5
will produce a validation task for the sypht.bpay
specification.
The fieldset
specified to validate in the workflowOptions
should be contained in the fieldSets
requested to predict against on the base /fileupload/
request
The full set of validation conditions includes:
field-confidence-range
Validates whether a given field's prediction condidence value falls within an expected range.
Predictions with values outside the allowed range will trigger validation of the field.
Typically used to identify and review low confidence predictions.
Required
field
- Id of the field to validate
Options
min
- The minimum value for the predicted field confidence
Inclusive
Default = null
for no minimum
max
- The maximum value for the predicted field confidence
Inclusive
Default = null
for no maximum
field-value-range
Validates whether a given field's normalised value falls within an expected range.
Predictions with values outside the allowed range will trigger validation of the field.
Required
field
- Id of the field to validate
Options
min
- The minimum value for the predicted field confidence
Inclusive
Default = null
for no minimum
max
- The maximum value for the predicted field confidence
Inclusive
Default = null
for no maximum
field-present
Verifies the presence of a value for a field on a document.
Documents missing values for this field will trigger validation of the field.
Required
field
- Id of the field to validate
While tasks are in progress, the results endpoint will block requests for up-to 30 seconds and return an IN PROGRESS
status.
One complete, results will be returned normally.