Class VoyageAIServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.VoyageAIServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class VoyageAIServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<VoyageAIServiceSettings>Json deserializer forVoyageAIServiceSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerThe number of dimensions for resulting output embeddings.final FloatThe data type for the embeddings to be returned.final StringmodelId()Required - The name of the model to use for the inference task.static VoyageAIServiceSettingsfinal RateLimitSettingThis setting helps to minimize the number of rate limit errors returned from VoyageAI.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 forVoyageAIServiceSettings
-
-
Method Details
-
of
public static VoyageAIServiceSettings of(Function<VoyageAIServiceSettings.Builder, ObjectBuilder<VoyageAIServiceSettings>> fn) -
dimensions
The number of dimensions for resulting output embeddings. This setting maps tooutput_dimensionin the VoyageAI documentation. Only for thetext_embeddingtask type.API name:
dimensions -
modelId
Required - The name of the model to use for the inference task. Refer to the VoyageAI documentation for the list of available text embedding and rerank models.API name:
model_id -
rateLimit
This setting helps to minimize the number of rate limit errors returned from VoyageAI. Thevoyageaiservice sets a default number of requests allowed per minute depending on the task type. For bothtext_embeddingandrerank, it is set to2000.API name:
rate_limit -
embeddingType
The data type for the embeddings to be returned. This setting maps tooutput_dtypein the VoyageAI documentation. Permitted values: float, int8, bit.int8is a synonym ofbytein the VoyageAI documentation.bitis a synonym ofbinaryin the VoyageAI documentation. Only for thetext_embeddingtask type.API name:
embedding_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupVoyageAIServiceSettingsDeserializer
protected static void setupVoyageAIServiceSettingsDeserializer(ObjectDeserializer<VoyageAIServiceSettings.Builder> op)
-