From 394b6f096072ef186283fb56c81e59e8937a814e Mon Sep 17 00:00:00 2001 From: Laura Trotta <153528055+l-trotta@users.noreply.github.com> Date: Mon, 7 Apr 2025 12:13:57 +0200 Subject: [PATCH] missing fields in inference processor (#4200) (cherry picked from commit 99e5d2e810d7e7212cc6dc3400e96c4d07ffbb35) --- specification/ingest/_types/Processors.ts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/specification/ingest/_types/Processors.ts b/specification/ingest/_types/Processors.ts index b507d6deec..b68a2ac05a 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -1043,6 +1043,24 @@ export class InferenceProcessor extends ProcessorBase { * Contains the inference type and its options. */ inference_config?: InferenceConfig + + /** + * Input fields for inference and output (destination) fields for the inference results. + * This option is incompatible with the target_field and field_map options. + */ + input_output?: InputConfig[] + + /** + * If true and any of the input fields defined in input_ouput are missing + * then those missing fields are quietly ignored, otherwise a missing field causes a failure. + * Only applies when using input_output configurations to explicitly list the input fields. + */ + ignore_missing?: boolean +} + +export class InputConfig { + input_field: string + output_field: string } /**