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 String
apiKey()
Required - A valid API key for the AlibabaCloud AI Search API.final String
host()
Required - The name of the host address used for the inference task.static AlibabaCloudServiceSettings
final RateLimitSetting
This setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final String
Required - The name of the model service to use for the inference task.protected static void
setupAlibabaCloudServiceSettingsDeserializer
(ObjectDeserializer<AlibabaCloudServiceSettings.Builder> op) toString()
final String
Required - 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-search
service 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 thecompletion
task:ops-qwen-turbo
qwen-turbo
qwen-plus
qwen-max รท qwen-max-longcontext
The following service ID is available for the
rerank
task:ops-bge-reranker-larger
The following service ID is available for the
sparse_embedding
task:ops-text-sparse-embedding-001
The following service IDs are available for the
text_embedding
task:ops-text-embedding-001
ops-text-embedding-zh-001
ops-text-embedding-en-001
ops-text-embedding-002
API 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAlibabaCloudServiceSettingsDeserializer
protected static void setupAlibabaCloudServiceSettingsDeserializer(ObjectDeserializer<AlibabaCloudServiceSettings.Builder> op)
-