Class AlibabaCloudServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.AlibabaCloudServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AlibabaCloudServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AlibabaCloudServiceSettings>Json deserializer forAlibabaCloudServiceSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal StringapiKey()Required - A valid API key for the AlibabaCloud AI Search API.final Stringhost()Required - The name of the host address used for the inference task.static AlibabaCloudServiceSettingsfinal RateLimitSettingThis setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final StringRequired - The name of the model service to use for the inference task.protected static voidsetupAlibabaCloudServiceSettingsDeserializer(ObjectDeserializer<AlibabaCloudServiceSettings.Builder> op) toString()final StringRequired - The name of the workspace used for the inference task.
-
Field Details
-
_DESERIALIZER
Json deserializer forAlibabaCloudServiceSettings
-
-
Method Details
-
of
-
apiKey
Required - A valid API key for the AlibabaCloud AI Search API.API name:
api_key -
host
Required - The name of the host address used for the inference task. You can find the host address in the API keys section of the documentation.API name:
host -
rateLimit
This setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search. By default, thealibabacloud-ai-searchservice sets the number of requests allowed per minute to1000.API name:
rate_limit -
serviceId
Required - The name of the model service to use for the inference task. The following service IDs are available for thecompletiontask:ops-qwen-turboqwen-turboqwen-plusqwen-max รท qwen-max-longcontext
The following service ID is available for the
reranktask:ops-bge-reranker-larger
The following service ID is available for the
sparse_embeddingtask:ops-text-sparse-embedding-001
The following service IDs are available for the
text_embeddingtask:ops-text-embedding-001ops-text-embedding-zh-001ops-text-embedding-en-001ops-text-embedding-002API name:
service_id -
workspace
Required - The name of the workspace used for the inference task.API name:
workspace -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAlibabaCloudServiceSettingsDeserializer
protected static void setupAlibabaCloudServiceSettingsDeserializer(ObjectDeserializer<AlibabaCloudServiceSettings.Builder> op)
-