[8.16] [ML] Changes inference processor description (#197645) (#197788)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[ML] Changes inference processor description
(#197645)](https://github.com/elastic/kibana/pull/197645)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"István Zoltán
Szabó","email":"szabosteve@gmail.com"},"sourceCommit":{"committedDate":"2024-10-25T09:56:45Z","message":"[ML]
Changes inference processor description (#197645)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"27a98aa9c30b1ad6f1e620dc1be2e644481ab96d","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","v8.16.0","backport:version","v8.17.0"],"title":"[ML]
Changes inference processor
description","number":197645,"url":"https://github.com/elastic/kibana/pull/197645","mergeCommit":{"message":"[ML]
Changes inference processor description (#197645)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"27a98aa9c30b1ad6f1e620dc1be2e644481ab96d"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197645","number":197645,"mergeCommit":{"message":"[ML]
Changes inference processor description (#197645)\n\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"27a98aa9c30b1ad6f1e620dc1be2e644481ab96d"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: István Zoltán Szabó <szabosteve@gmail.com>
This commit is contained in:
Kibana Machine 2024-10-25 22:41:50 +11:00 committed by GitHub
parent ec2bae0eaf
commit e5b0246211
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -56,13 +56,14 @@ const fieldsConfig: FieldsConfig = {
model_id: {
type: FIELD_TYPES.TEXT,
label: i18n.translate('xpack.ingestPipelines.pipelineEditor.inferenceForm.modelIDFieldLabel', {
defaultMessage: 'Model ID',
defaultMessage: 'Deployment, inference, or model ID',
}),
deserializer: String,
helpText: i18n.translate(
'xpack.ingestPipelines.pipelineEditor.inferenceForm.modelIDFieldHelpText',
{
defaultMessage: 'ID of the model to infer against.',
defaultMessage:
'ID of the deployment, the inference endpoint, or the model to infer against.',
}
),
validations: [
@ -71,7 +72,7 @@ const fieldsConfig: FieldsConfig = {
i18n.translate(
'xpack.ingestPipelines.pipelineEditor.inferenceForm.patternRequiredError',
{
defaultMessage: 'A model ID value is required.',
defaultMessage: 'A deployment, an inference, or a model ID value is required.',
}
)
),

View file

@ -571,7 +571,8 @@ export const mapProcessorTypeToDescriptor: MapProcessorTypeToDescriptor = {
defaultMessage: 'Inference',
}),
typeDescription: i18n.translate('xpack.ingestPipelines.processors.description.inference', {
defaultMessage: 'Uses a trained model to infer against incoming data.',
defaultMessage:
'Uses an inference endpoint or a trained model to infer against incoming data.',
}),
getDefaultDescription: ({
model_id: modelId,