Class InferenceResult.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InferenceResult.Builder>
co.elastic.clients.elasticsearch.inference.InferenceResult.Builder
- All Implemented Interfaces:
WithJson<InferenceResult.Builder>
,ObjectBuilder<InferenceResult>
- Enclosing class:
- InferenceResult
public static class InferenceResult.Builder
extends WithJsonObjectBuilderBase<InferenceResult.Builder>
implements ObjectBuilder<InferenceResult>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
rerank
(List<RankedDocument> v) protected InferenceResult.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<InferenceResult.Builder>
-
textEmbeddingBytes
-
textEmbedding
-
sparseEmbedding
-
completion
-
rerank
-
build
- Specified by:
build
in interfaceObjectBuilder<InferenceResult>
-