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

[Backport 2.x] Support one_to_one in ML Inference Search Response Processor #2843

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 2a33c65 from #2801

* add one document to one prediction support

Signed-off-by: Mingshi Liu <[email protected]>

* rephrase javadoc

Signed-off-by: Mingshi Liu <[email protected]>

* use OpenSearchStatusException in error handling

Signed-off-by: Mingshi Liu <[email protected]>

* fix message

Signed-off-by: Mingshi Liu <[email protected]>

* add more tests

Signed-off-by: Mingshi Liu <[email protected]>

* handle different exceptions properly

Signed-off-by: Mingshi Liu <[email protected]>

---------

Signed-off-by: Mingshi Liu <[email protected]>
(cherry picked from commit 2a33c65)
@mingshl
Copy link
Collaborator

mingshl commented Aug 22, 2024

flaky IT test, rerunning

org.opensearch.ml.rest.RestMLGuardrailsIT > testPredictRemoteModelSuccessWithModelGuardrail STANDARD_ERROR
REPRODUCE WITH: gradlew ':opensearch-ml-plugin:integTest' --tests "org.opensearch.ml.rest.RestMLGuardrailsIT.testPredictRemoteModelSuccessWithModelGuardrail" -Dtests.seed=5F1A7692EFE767CD -Dtests.security.manager=false -Dtests.locale=ro -Dtests.timezone=Europe/Lisbon -Druntime.java=21
    REPRODUCE WITH: gradlew ':opensearch-ml-plugin:integTest' --tests "org.opensearch.ml.rest.RestMLGuardrailsIT.testPredictRemoteModelSuccessWithModelGuardrail" -Dtests.seed=5F1A7692EFE767CD -Dtests.security.manager=false -Dtests.locale=ro -Dtests.timezone=Europe/Lisbon -Druntime.java=21

@mingshl mingshl merged commit 71ff4e2 into 2.x Aug 27, 2024
11 of 15 checks passed
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