Class TextEmbeddingInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TextEmbeddingInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.TextEmbeddingInferenceOptions.Builder
- All Implemented Interfaces:
WithJson<TextEmbeddingInferenceOptions.Builder>,ObjectBuilder<TextEmbeddingInferenceOptions>
- Enclosing class:
- TextEmbeddingInferenceOptions
public static class TextEmbeddingInferenceOptions.Builder extends WithJsonObjectBuilderBase<TextEmbeddingInferenceOptions.Builder> implements ObjectBuilder<TextEmbeddingInferenceOptions>
Builder for
TextEmbeddingInferenceOptions.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description TextEmbeddingInferenceOptionsbuild()Builds aTextEmbeddingInferenceOptions.TextEmbeddingInferenceOptions.BuilderresultsField(java.lang.String value)The field that is added to incoming documents to contain the inference prediction.protected TextEmbeddingInferenceOptions.Builderself()TextEmbeddingInferenceOptions.Buildertokenization(TokenizationConfig value)The tokenization optionsTextEmbeddingInferenceOptions.Buildertokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization optionsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
public final TextEmbeddingInferenceOptions.Builder tokenization(@Nullable TokenizationConfig value)The tokenization optionsAPI name:
tokenization -
tokenization
public final TextEmbeddingInferenceOptions.Builder tokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization optionsAPI name:
tokenization -
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<TextEmbeddingInferenceOptions.Builder>
-
build
Builds aTextEmbeddingInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<TextEmbeddingInferenceOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-