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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aTextEmbeddingInferenceOptions.embeddingSize(Integer value) The number of dimensions in the embedding outputresultsField(String value) The field that is added to incoming documents to contain the inference prediction.protected TextEmbeddingInferenceOptions.Builderself()tokenization(TokenizationConfig value) The tokenization optionsThe tokenization optionsThe tokenization optionsvocabulary(Vocabulary value) API name:vocabularyAPI name:vocabularyMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
embeddingSizeThe number of dimensions in the embedding outputAPI name: embedding_size
- 
tokenizationThe tokenization optionsAPI name: tokenization
- 
tokenizationpublic final TextEmbeddingInferenceOptions.Builder tokenization(Function<TokenizationConfig.Builder, ObjectBuilder<TokenizationConfig>> fn) The tokenization optionsAPI name: tokenization
- 
tokenizationThe tokenization optionsAPI name: tokenization
- 
resultsFieldThe field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name: results_field
- 
vocabularyAPI name:vocabulary
- 
vocabularypublic final TextEmbeddingInferenceOptions.Builder vocabulary(Function<Vocabulary.Builder, ObjectBuilder<Vocabulary>> fn) API name:vocabulary
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<TextEmbeddingInferenceOptions.Builder>
 
- 
buildBuilds aTextEmbeddingInferenceOptions.- Specified by:
- buildin interface- ObjectBuilder<TextEmbeddingInferenceOptions>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-