-
Notifications
You must be signed in to change notification settings - Fork 37
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
Separates RegisterModelStep into RegisterLocalModelStep and RegisterRemoteModelStep. Adds GetMLTaskStep. Handles optional params #155
Conversation
Signed-off-by: Joshua Palis <[email protected]>
…itions to workflow step json Signed-off-by: Joshua Palis <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #155 +/- ##
============================================
+ Coverage 68.39% 69.48% +1.09%
- Complexity 339 357 +18
============================================
Files 45 45
Lines 1585 1642 +57
Branches 143 153 +10
============================================
+ Hits 1084 1141 +57
+ Misses 452 447 -5
- Partials 49 54 +5
|
Still need to handle create connector optional params, will include in the next commit |
@joshpalis raise a separate PR for that. |
Signed-off-by: Joshua Palis <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we planning to have a separate PR for optional params of Register Steps?
src/main/java/org/opensearch/flowframework/workflow/RegisterLocalModelStep.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/workflow/RegisterRemoteModelStep.java
Outdated
Show resolved
Hide resolved
@owaiskazi19 optional params have been handled in this PR |
…RemoteModelStep and RegisterLocalModelStep Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
src/main/java/org/opensearch/flowframework/workflow/RegisterLocalModelStep.java
Show resolved
Hide resolved
Signed-off-by: Joshua Palis <[email protected]>
src/main/java/org/opensearch/flowframework/workflow/RegisterLocalModelStep.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/workflow/RegisterLocalModelStep.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/workflow/RegisterLocalModelStep.java
Show resolved
Hide resolved
src/main/java/org/opensearch/flowframework/workflow/RegisterLocalModelStep.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
Signed-off-by: Joshua Palis <[email protected]>
src/main/java/org/opensearch/flowframework/workflow/RegisterRemoteModelStep.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for patiently addressing all the comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, and commented on the retry TODO issue
Signed-off-by: Joshua Palis <[email protected]>
…emoteModelStep. Adds GetMLTaskStep. Handles optional params (#155) * added RegisterRemoteModelStep and tests Signed-off-by: Joshua Palis <[email protected]> * Adding RegisterLocalModelStep, fixing tests, adding input/ouput definitions to workflow step json Signed-off-by: Joshua Palis <[email protected]> * Fixing javadoc warnings, fixing log message Signed-off-by: Joshua Palis <[email protected]> * Addressing PR comments,making description field optional for RegisterRemoteModelStep and RegisterLocalModelStep Signed-off-by: Joshua Palis <[email protected]> * moving modelConfig builder before adding allConfig Signed-off-by: Joshua Palis <[email protected]> * handling optional description field for remote/local model Signed-off-by: Joshua Palis <[email protected]> * Removing poolingMode, modelMaxLenth, normalizeResult Signed-off-by: Joshua Palis <[email protected]> * adding modelType to required fields check Signed-off-by: Joshua Palis <[email protected]> * Fixing RegisterLocalModelStep to output a task ID instead of a model id Signed-off-by: Joshua Palis <[email protected]> * Adding GetMLTaskStep and tests Signed-off-by: Joshua Palis <[email protected]> * Adding todo for GetMLTask retry capability Signed-off-by: Joshua Palis <[email protected]> --------- Signed-off-by: Joshua Palis <[email protected]> (cherry picked from commit 2142874) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…p and RegisterRemoteModelStep. Adds GetMLTaskStep. Handles optional params (#161) Separates RegisterModelStep into RegisterLocalModelStep and RegisterRemoteModelStep. Adds GetMLTaskStep. Handles optional params (#155) * added RegisterRemoteModelStep and tests * Adding RegisterLocalModelStep, fixing tests, adding input/ouput definitions to workflow step json * Fixing javadoc warnings, fixing log message * Addressing PR comments,making description field optional for RegisterRemoteModelStep and RegisterLocalModelStep * moving modelConfig builder before adding allConfig * handling optional description field for remote/local model * Removing poolingMode, modelMaxLenth, normalizeResult * adding modelType to required fields check * Fixing RegisterLocalModelStep to output a task ID instead of a model id * Adding GetMLTaskStep and tests * Adding todo for GetMLTask retry capability --------- (cherry picked from commit 2142874) Signed-off-by: Joshua Palis <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Joshua Palis <[email protected]>
Description
Creates a new workflow step to register a local model based on API documentation
Creates a separate workflow step to register a remote model based on API Documentation.
Creates a
GetMLTaskStep
to retrieve the model ID given the task ID outputted by theRegisterLocalModelStep
(Necessary to first merge in opensearch-project/ml-commons#1616 prior to this PR)
Note : I have not added the internal connector configuration capability to the
RegisterRemoteModelStep
since we already have aCreateConnectorStep
, but have marked it as a TODO later down the lineIssues Resolved
#149
Part of #88
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.