Class CohereEmbeddingBedrockApi


  • Constructor Details

    • CohereEmbeddingBedrockApi

      public CohereEmbeddingBedrockApi(String modelId, String region)
      Create a new CohereEmbeddingBedrockApi instance using the default credentials provider chain, the default object mapper, default temperature and topP values.
      Parameters:
      modelId - The model id to use. See the CohereEmbeddingBedrockApi.CohereEmbeddingModel for the supported models.
      region - The AWS region to use.
    • CohereEmbeddingBedrockApi

      public CohereEmbeddingBedrockApi(String modelId, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, String region, tools.jackson.databind.json.JsonMapper jsonMapper)
      Create a new CohereEmbeddingBedrockApi instance using the provided credentials provider, region and object mapper.
      Parameters:
      modelId - The model id to use. See the CohereEmbeddingBedrockApi.CohereEmbeddingModel for the supported models.
      credentialsProvider - The credentials provider to connect to AWS.
      region - The AWS region to use.
      jsonMapper - The JSON mapper to use for JSON serialization and deserialization.
    • CohereEmbeddingBedrockApi

      public CohereEmbeddingBedrockApi(String modelId, String region, Duration timeout)
      Create a new CohereEmbeddingBedrockApi instance using the default credentials provider chain, the default object mapper, default temperature and topP values.
      Parameters:
      modelId - The model id to use. See the CohereEmbeddingBedrockApi.CohereEmbeddingModel for the supported models.
      region - The AWS region to use.
      timeout - The timeout to use.
    • CohereEmbeddingBedrockApi

      public CohereEmbeddingBedrockApi(String modelId, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, String region, tools.jackson.databind.json.JsonMapper jsonMapper, Duration timeout)
      Create a new CohereEmbeddingBedrockApi instance using the provided credentials provider, region and object mapper.
      Parameters:
      modelId - The model id to use. See the CohereEmbeddingBedrockApi.CohereEmbeddingModel for the supported models.
      credentialsProvider - The credentials provider to connect to AWS.
      region - The AWS region to use.
      jsonMapper - The JSON mapper to use for JSON serialization and deserialization.
      timeout - The timeout to use.
    • CohereEmbeddingBedrockApi

      public CohereEmbeddingBedrockApi(String modelId, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.Region region, tools.jackson.databind.json.JsonMapper jsonMapper, Duration timeout)
      Create a new CohereEmbeddingBedrockApi instance using the provided credentials provider, region and JSON mapper.
      Parameters:
      modelId - The model id to use. See the CohereEmbeddingBedrockApi.CohereEmbeddingModel for the supported models.
      credentialsProvider - The credentials provider to connect to AWS.
      region - The AWS region to use.
      jsonMapper - The JSON mapper to use for JSON serialization and deserialization.
      timeout - The timeout to use.
  • Method Details