Skip to content

Commit 0254ec7

Browse files
missing fields in inference processor (#4200) (#4201)
(cherry picked from commit 99e5d2e) Co-authored-by: Laura Trotta <[email protected]>
1 parent 0e4e613 commit 0254ec7

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
@@ -1043,6 +1043,24 @@ export class InferenceProcessor extends ProcessorBase {
10431043
* Contains the inference type and its options.
10441044
*/
10451045
inference_config?: InferenceConfig
1046+
1047+
/**
1048+
* Input fields for inference and output (destination) fields for the inference results.
1049+
* This option is incompatible with the target_field and field_map options.
1050+
*/
1051+
input_output?: InputConfig[]
1052+
1053+
/**
1054+
* If true and any of the input fields defined in input_ouput are missing
1055+
* then those missing fields are quietly ignored, otherwise a missing field causes a failure.
1056+
* Only applies when using input_output configurations to explicitly list the input fields.
1057+
*/
1058+
ignore_missing?: boolean
1059+
}
1060+
1061+
export class InputConfig {
1062+
input_field: string
1063+
output_field: string
10461064
}
10471065

10481066
/**

0 commit comments

Comments
 (0)