Skip to content

[ML] Add hint about using input_output in the inference processor to error message #129864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

davidkyle
Copy link
Member

If using the Inference Ingest processor the input_output option must be used instead of field_mappings . The error message does not make it clear to the user what the problem is.

For example:

# Create an ingest pipeline with inference on an inference endpoint and field_map
PUT _ingest/pipeline/elser_pipeline
{
  "description": "Pipeline to run ELSER model on an inference endpoint",
  "processors": [
    {
      "inference": {
        "model_id": "my_elser",
        "inference_config": {
          "text_expansion": {
            "results_field": "text_embedding"
          }
        },
        "field_map": {
          "text": "text"
        }
      }
    }
  ]
}

# When using the pipeline it errors with
{
  "error": {
    "root_cause": [
      {
        "type": "status_exception",
        "reason": "[my_elser] is configured for the _inference API and does not accept documents as input"
      }
    ],
    "type": "status_exception",
    "reason": "[my_elser] is configured for the _inference API and does not accept documents as input"
  },
  "status": 400
}

The limitation is documented at https://www.elastic.co/docs/reference/enrich-processor/inference-processor

@davidkyle davidkyle added >non-issue :ml Machine learning auto-backport Automatically create backport pull requests when merged v8.19.0 v9.1.0 labels Jun 23, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Jun 23, 2025
@davidkyle davidkyle enabled auto-merge (squash) June 23, 2025 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :ml Machine learning >non-issue Team:ML Meta label for the ML team v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants