Skip to content

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
@davidkyle davidkyle merged commit aaee222 into elastic:main Jun 24, 2025
32 checks passed
davidkyle added a commit to davidkyle/elasticsearch that referenced this pull request Jun 24, 2025
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.19

mridula-s109 pushed a commit to mridula-s109/elasticsearch that referenced this pull request Jun 25, 2025
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