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:
  • Field Details

  • Method Details

    • of

    • apiKey

      public final String apiKey()
      Required - A valid API key for the AlibabaCloud AI Search API.

      API name: api_key

    • host

      public final String 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

      @Nullable public final RateLimitSetting rateLimit()
      This setting helps to minimize the number of rate limit errors returned from AlibabaCloud AI Search. By default, the alibabacloud-ai-search service sets the number of requests allowed per minute to 1000.

      API name: rate_limit

    • serviceId

      public final String serviceId()
      Required - The name of the model service to use for the inference task. The following service IDs are available for the completion 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

      public final String workspace()
      Required - The name of the workspace used for the inference task.

      API name: workspace

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupAlibabaCloudServiceSettingsDeserializer

      protected static void setupAlibabaCloudServiceSettingsDeserializer(ObjectDeserializer<AlibabaCloudServiceSettings.Builder> op)