Class SparseEmbeddingResult
java.lang.Object
co.elastic.clients.elasticsearch.inference.SparseEmbeddingResult
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SparseEmbeddingResult>Json deserializer forSparseEmbeddingResult -
Method Summary
Modifier and TypeMethodDescriptionRequired - API name:embeddingfinal booleanRequired - Indicates if the text input was truncated in the request sent to the servicestatic SparseEmbeddingResultrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forSparseEmbeddingResult
-
-
Method Details
-
of
public static SparseEmbeddingResult of(Function<SparseEmbeddingResult.Builder, ObjectBuilder<SparseEmbeddingResult>> fn) -
isTruncated
public final boolean isTruncated()Required - Indicates if the text input was truncated in the request sent to the serviceAPI name:
is_truncated -
embedding
Required - API name:embedding -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
SparseEmbeddingResult.Builderinitialized with field values of this instance
-
setupSparseEmbeddingResultDeserializer
protected static void setupSparseEmbeddingResultDeserializer(ObjectDeserializer<SparseEmbeddingResult.Builder> op)
-