Skip to content

Commit 07a4f95

Browse files
missing fields in inference processor (#4200) (#4204)
(cherry picked from commit 99e5d2e) Co-authored-by: Laura Trotta <[email protected]>
1 parent 8b93a5f commit 07a4f95

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

specification/ingest/_types/Processors.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,24 @@ export class InferenceProcessor extends ProcessorBase {
10441044
* Contains the inference type and its options.
10451045
*/
10461046
inference_config?: InferenceConfig
1047+
1048+
/**
1049+
* Input fields for inference and output (destination) fields for the inference results.
1050+
* This option is incompatible with the target_field and field_map options.
1051+
*/
1052+
input_output?: InputConfig[]
1053+
1054+
/**
1055+
* If true and any of the input fields defined in input_ouput are missing
1056+
* then those missing fields are quietly ignored, otherwise a missing field causes a failure.
1057+
* Only applies when using input_output configurations to explicitly list the input fields.
1058+
*/
1059+
ignore_missing?: boolean
1060+
}
1061+
1062+
export class InputConfig {
1063+
input_field: string
1064+
output_field: string
10471065
}
10481066

10491067
/**

0 commit comments

Comments
 (0)