Skip to content
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

Updates inference test #230

Merged
merged 1 commit into from
Feb 27, 2025
Merged

Updates inference test #230

merged 1 commit into from
Feb 27, 2025

Conversation

picandocodigo
Copy link
Member

When updating the endpoint code on the stack client with the elasticsearch-specification, it changes the path of infer_trained_model:

-          path   = ("_ml/trained_models/#{Utils.__listify(_model_id)}/deployment/_infer" if _model_id)
+          path   = "_ml/trained_models/#{Utils.__listify(_model_id)}/_infer"

When using the first path, the response is:
{"predicted_value" => [[1.0, 1.0]]}

But with the updated path, it's returning:
{"inference_results" => [{"predicted_value" => [[1.0, 1.0]]}]}

@picandocodigo picandocodigo merged commit 386eaca into main Feb 27, 2025
3 checks passed
@picandocodigo picandocodigo deleted the inference_test branch February 27, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants