diff --git a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/inference.tsx b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/inference.tsx index 7cb0243c61e34..550ed8927985f 100644 --- a/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/inference.tsx +++ b/x-pack/plugins/ingest_pipelines/public/application/components/pipeline_editor/components/processor_form/processors/inference.tsx @@ -27,43 +27,29 @@ import { FieldsConfig, to, from, EDITOR_PX_HEIGHT } from './shared'; const { emptyField, isJsonField } = fieldValidators; const INFERENCE_CONFIG_DOCS = { - regression: { + documentation: { linkLabel: i18n.translate( - 'xpack.ingestPipelines.pipelineEditor.inferenceForm.inferenceConfigField.regressionLinkLabel', - { defaultMessage: 'regression' } - ), - }, - classification: { - linkLabel: i18n.translate( - 'xpack.ingestPipelines.pipelineEditor.inferenceForm.inferenceConfigField.classificationLinkLabel', - { defaultMessage: 'classification' } + 'xpack.ingestPipelines.pipelineEditor.inferenceForm.inferenceConfigField.documentationLinkLabel', + { defaultMessage: 'documentation' } ), }, }; -const getInferenceConfigHelpText = ( - regressionDocsLink: string, - classificationDocsLink: string -): React.ReactNode => { +function getInferenceConfigHelpText(documentationDocsLink: string): React.ReactNode { return ( - {INFERENCE_CONFIG_DOCS.regression.linkLabel} - - ), - classification: ( - - {INFERENCE_CONFIG_DOCS.classification.linkLabel} + documentation: ( + + {INFERENCE_CONFIG_DOCS.documentation.linkLabel} ), }} /> ); -}; +} const fieldsConfig: FieldsConfig = { /* Required fields config */ @@ -151,8 +137,7 @@ const fieldsConfig: FieldsConfig = { export const Inference: FunctionComponent = () => { const { services } = useKibana(); - const regressionDocsLink = services.documentation.getRegressionUrl(); - const classificationDocsLink = services.documentation.getClassificationUrl(); + const documentationDocsLink = services.documentation.getDocumentationUrl(); return ( <> @@ -182,7 +167,7 @@ export const Inference: FunctionComponent = () => {