From d3d0660550d67d3604cd5a014496ed5aa85f2bb5 Mon Sep 17 00:00:00 2001 From: Laura Trotta Date: Mon, 7 Apr 2025 11:54:16 +0200 Subject: [PATCH] missing fields in inference processor --- 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 f7ece01270..c5fd838e6f 100644 --- a/specification/ingest/_types/Processors.ts +++ b/specification/ingest/_types/Processors.ts @@ -1044,6 +1044,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 } /**