Skip to content

Conversation

@maxhniebergall
Copy link
Contributor

previously putting a model with the wrong task type could result in a 500 error with this message:

{
      "index": "test-chunking",
      "id": "awd",
      "cause": {
        "type": "exception",
        "reason": "Exception when running inference id [test-chunking] on field [content]",
        "caused_by": {
          "type": "status_exception",
          "reason": "Expected a chunked inference [text_embedding_result] received [text_expansion_result]"
        }
      },
      "status": 500
    }

but this has been updated to a 409 error with this message:
Received incompatible results. Check that your model_id matches the task_type of this endpoint. Expected chunked output of type [{}] but received [{}].

@elasticsearchmachine elasticsearchmachine added the Team:ML Meta label for the ML team label Oct 28, 2024
@elasticsearchmachine
Copy link
Collaborator

Hi @maxhniebergall, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

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

@maxhniebergall maxhniebergall added the auto-backport Automatically create backport pull requests when merged label Oct 29, 2024
@maxhniebergall maxhniebergall merged commit 6742147 into main Oct 29, 2024
16 checks passed
@maxhniebergall maxhniebergall deleted the inferenceApiImproveChunkedResultsErrorMessage branch October 29, 2024 12:59
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

The backport operation could not be completed due to the following error:

An unexpected error occurred when attempting to backport this PR.

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 115807

salvatore-campagna pushed a commit to salvatore-campagna/elasticsearch that referenced this pull request Oct 29, 2024
* Improve chunked results error message

* Update RestStatus to conflict

* precommit

* Update docs/changelog/115807.yaml
maxhniebergall added a commit to maxhniebergall/elasticsearch that referenced this pull request Oct 30, 2024
* Improve chunked results error message

* Update RestStatus to conflict

* precommit

* Update docs/changelog/115807.yaml

(cherry picked from commit 6742147)
jfreden pushed a commit to jfreden/elasticsearch that referenced this pull request Nov 4, 2024
* Improve chunked results error message

* Update RestStatus to conflict

* precommit

* Update docs/changelog/115807.yaml
maxhniebergall added a commit that referenced this pull request Nov 4, 2024
)

* Improve chunked results error message

* Update RestStatus to conflict

* precommit

* Update docs/changelog/115807.yaml

(cherry picked from commit 6742147)
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 backport pending >enhancement :ml Machine learning Team:ML Meta label for the ML team v8.17.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants