Class ConnectorPreProcessFunction
java.lang.Object
org.opensearch.ml.common.connector.functions.preprocess.ConnectorPreProcessFunction
- All Implemented Interfaces:
Function<MLInput,RemoteInferenceInputDataSet>
- Direct Known Subclasses:
BedrockEmbeddingPreProcessFunction,CohereEmbeddingPreProcessFunction,CohereRerankPreProcessFunction,DefaultPreProcessFunction,OpenAIEmbeddingPreProcessFunction,RemoteInferencePreProcessFunction
public abstract class ConnectorPreProcessFunction
extends Object
implements Function<MLInput,RemoteInferenceInputDataSet>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringexecuteScript(org.opensearch.script.ScriptService scriptService, String painlessScript, Map<String, Object> params) abstract RemoteInferenceInputDataSetabstract voidvoidvalidateTextDocsInput(MLInput mlInput)
-
Field Details
-
returnDirectlyForRemoteInferenceInput
protected boolean returnDirectlyForRemoteInferenceInput
-
-
Constructor Details
-
ConnectorPreProcessFunction
public ConnectorPreProcessFunction()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<MLInput,RemoteInferenceInputDataSet>
-
validate
-
process
-
validateTextDocsInput
-
executeScript
-