Skip to content

Commit

Permalink
Fix bwc issue in remote prediction (#2085) (#2097)
Browse files Browse the repository at this point in the history
* Fix bwc issue in remote prediction

Signed-off-by: Sicheng Song <[email protected]>

* Fix typo

Signed-off-by: Sicheng Song <[email protected]>

* Re-order the function name type to the right order

Signed-off-by: Sicheng Song <[email protected]>

---------

Signed-off-by: Sicheng Song <[email protected]>
(cherry picked from commit b3dfabc)

Co-authored-by: Sicheng Song <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and b4sjoo authored Feb 13, 2024
1 parent 8691863 commit 65ef97e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import java.util.HashSet;
import java.util.Set;

// Please strictly add new FunctionName to the last line
// and avoid altering the order of the existing FunctionName,
// or it will break the backward compatibility!
public enum FunctionName {
LINEAR_REGRESSION,
KMEANS,
Expand All @@ -20,11 +23,11 @@ public enum FunctionName {
RCF_SUMMARIZE,
LOGISTIC_REGRESSION,
TEXT_EMBEDDING,
TEXT_SIMILARITY,
SPARSE_ENCODING,
SPARSE_TOKENIZE,
METRICS_CORRELATION,
REMOTE,
SPARSE_ENCODING,
SPARSE_TOKENIZE,
TEXT_SIMILARITY,
AGENT;

public static FunctionName from(String value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@

package org.opensearch.ml.common.dataset;

// Please strictly add new MLInputDataType to the last line
// and avoid altering the order of the existing MLInputDataType,
// or it will break the backward compatibility!
public enum MLInputDataType {
SEARCH_QUERY,
DATA_FRAME,
TEXT_DOCS,
TEXT_SIMILARITY,
REMOTE
REMOTE,
TEXT_SIMILARITY
}

0 comments on commit 65ef97e

Please sign in to comment.