Allow method parameter override for training based indices (solves issue #2246)#2290
Merged
naveentatikonda merged 6 commits intoopensearch-project:mainfrom Dec 10, 2024
Conversation
Signed-off-by: Sahil Buddharaju <[email protected]>
040e7d1 to
b192e8a
Compare
owenhalpert
reviewed
Nov 26, 2024
src/test/java/org/opensearch/knn/integ/ModeAndCompressionIT.java
Outdated
Show resolved
Hide resolved
Collaborator
|
@owenhalpert can you please fix the changelog. |
Collaborator
|
Do we know why this was previously blocked, considering it only involves removing two lines of code? |
Signed-off-by: Sahil Buddharaju <[email protected]>
Contributor
Author
Member
|
@buddharajusahil Can you run |
Signed-off-by: Sahil Buddharaju <[email protected]>
jmazanec15
approved these changes
Dec 2, 2024
Member
jmazanec15
left a comment
There was a problem hiding this comment.
LGTM - we just need to fix CI
kotwanikunal
approved these changes
Dec 5, 2024
naveentatikonda
approved these changes
Dec 10, 2024
Contributor
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-2290-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 19f045d763cd7f302c2b96c8731b725484b14bec
# Push it to GitHub
git push --set-upstream origin backport/backport-2290-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.xThen, create a pull request where the |
Member
|
@buddharajusahil can you fix the conflicts and create a backport PR to 2.x ? |
buddharajusahil
added a commit
to buddharajusahil/k-NN
that referenced
this pull request
Dec 10, 2024
…sue opensearch-project#2246) (opensearch-project#2290) * Allow method parameter override for training based indices Signed-off-by: Sahil Buddharaju <[email protected]> * Fixed code squashing imports Signed-off-by: Sahil Buddharaju <[email protected]> * Changed changelog Signed-off-by: Sahil Buddharaju <[email protected]> * spotlessApply styling Signed-off-by: Sahil Buddharaju <[email protected]> --------- Signed-off-by: Sahil Buddharaju <[email protected]> Co-authored-by: Sahil Buddharaju <[email protected]> (cherry picked from commit 19f045d)
buddharajusahil
added a commit
to buddharajusahil/k-NN
that referenced
this pull request
Dec 11, 2024
…sue opensearch-project#2246) (opensearch-project#2290) * Allow method parameter override for training based indices Signed-off-by: Sahil Buddharaju <[email protected]> * Fixed code squashing imports Signed-off-by: Sahil Buddharaju <[email protected]> * Changed changelog Signed-off-by: Sahil Buddharaju <[email protected]> * spotlessApply styling Signed-off-by: Sahil Buddharaju <[email protected]> --------- Signed-off-by: Sahil Buddharaju <[email protected]> Co-authored-by: Sahil Buddharaju <[email protected]> (cherry picked from commit 19f045d)
navneet1v
pushed a commit
that referenced
this pull request
Dec 11, 2024
…ices (#2317) * Allow method parameter override for training based indices (solves issue #2246) (#2290) * Allow method parameter override for training based indices Signed-off-by: Sahil Buddharaju <[email protected]> * Fixed code squashing imports Signed-off-by: Sahil Buddharaju <[email protected]> * Changed changelog Signed-off-by: Sahil Buddharaju <[email protected]> * spotlessApply styling Signed-off-by: Sahil Buddharaju <[email protected]> --------- Signed-off-by: Sahil Buddharaju <[email protected]> Co-authored-by: Sahil Buddharaju <[email protected]> (cherry picked from commit 19f045d) * Fixed response map Signed-off-by: Sahil Buddharaju <[email protected]> * Used forked personal branch Signed-off-by: Sahil Buddharaju <[email protected]> * spotless apply Signed-off-by: Sahil Buddharaju <[email protected]> --------- Signed-off-by: Sahil Buddharaju <[email protected]> Co-authored-by: Sahil Buddharaju <[email protected]>
owenhalpert
pushed a commit
to owenhalpert/k-NN
that referenced
this pull request
Dec 19, 2024
…sue opensearch-project#2246) (opensearch-project#2290) * Allow method parameter override for training based indices Signed-off-by: Sahil Buddharaju <[email protected]> * Fixed code squashing imports Signed-off-by: Sahil Buddharaju <[email protected]> * Changed changelog Signed-off-by: Sahil Buddharaju <[email protected]> * spotlessApply styling Signed-off-by: Sahil Buddharaju <[email protected]> --------- Signed-off-by: Sahil Buddharaju <[email protected]> Co-authored-by: Sahil Buddharaju <[email protected]>
jingqimao77-spec
pushed a commit
to jingqimao77-spec/k-NN
that referenced
this pull request
Mar 15, 2026
…sue opensearch-project#2246) (opensearch-project#2290) * Allow method parameter override for training based indices Signed-off-by: Sahil Buddharaju <[email protected]> * Fixed code squashing imports Signed-off-by: Sahil Buddharaju <[email protected]> * Changed changelog Signed-off-by: Sahil Buddharaju <[email protected]> * spotlessApply styling Signed-off-by: Sahil Buddharaju <[email protected]> --------- Signed-off-by: Sahil Buddharaju <[email protected]> Co-authored-by: Sahil Buddharaju <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#2246
From mode/disk-based feature, we introduced concept of mode and compression level that will dynamically set default resolution. For indices created directly from the method (i.e. mapping) we allow users to override parameters if they want.
However, for training, we added the mode and compression, but made them mutually exclusive with method. See: https://github.com/opensearch-project/k-NN/blob/main/src/main/java/org/opensearch/knn/plugin/rest/RestTrainModelHandler.java#L138-L139. We need to remove this and allow method overriding to provide a consistent ux experience across the plugin.
Related Issues
Resolves #2246
Check List
--signoff.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.