Interface BedrockEmbeddingModelConfiguration.Builder

  • Method Details

    • dimensions

      The dimensions details for the vector configuration used on the Bedrock embeddings model.

      Parameters:
      dimensions - The dimensions details for the vector configuration used on the Bedrock embeddings model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • embeddingDataType

      BedrockEmbeddingModelConfiguration.Builder embeddingDataType(String embeddingDataType)

      The data type for the vectors when using a model to convert text into vector embeddings. The model must support the specified data type for vector embeddings. Floating-point (float32) is the default data type, and is supported by most models for vector embeddings. See Supported embeddings models for information on the available models and their vector data types.

      Parameters:
      embeddingDataType - The data type for the vectors when using a model to convert text into vector embeddings. The model must support the specified data type for vector embeddings. Floating-point (float32) is the default data type, and is supported by most models for vector embeddings. See Supported embeddings models for information on the available models and their vector data types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • embeddingDataType

      BedrockEmbeddingModelConfiguration.Builder embeddingDataType(EmbeddingDataType embeddingDataType)

      The data type for the vectors when using a model to convert text into vector embeddings. The model must support the specified data type for vector embeddings. Floating-point (float32) is the default data type, and is supported by most models for vector embeddings. See Supported embeddings models for information on the available models and their vector data types.

      Parameters:
      embeddingDataType - The data type for the vectors when using a model to convert text into vector embeddings. The model must support the specified data type for vector embeddings. Floating-point (float32) is the default data type, and is supported by most models for vector embeddings. See Supported embeddings models for information on the available models and their vector data types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • audio

      Deprecated.
      Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html

      Configuration settings for processing audio content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Parameters:
      audio - Configuration settings for processing audio content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audio

      Deprecated.
      Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html

      Configuration settings for processing audio content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Parameters:
      audio - Configuration settings for processing audio content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • audio

      Deprecated.
      Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html

      Configuration settings for processing audio content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      This is a convenience method that creates an instance of the AudioConfiguration.Builder avoiding the need to create one manually via AudioConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to audio(List<AudioConfiguration>).

      Parameters:
      audio - a consumer that will call methods on AudioConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • video

      Deprecated.
      Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html

      Configuration settings for processing video content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Parameters:
      video - Configuration settings for processing video content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • video

      Deprecated.
      Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html

      Configuration settings for processing video content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Parameters:
      video - Configuration settings for processing video content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • video

      Deprecated.
      Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.html

      Configuration settings for processing video content in multimodal knowledge bases.

      This field is deprecated. Use modelConfiguration instead.

      This is a convenience method that creates an instance of the VideoConfiguration.Builder avoiding the need to create one manually via VideoConfiguration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to video(List<VideoConfiguration>).

      Parameters:
      video - a consumer that will call methods on VideoConfiguration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • modelConfiguration

      BedrockEmbeddingModelConfiguration.Builder modelConfiguration(Document modelConfiguration)

      Model-specific configuration for the embedding model, provided as a JSON object. Use this field to specify settings that apply to the embedding model that you selected, such as how audio and video files are divided into segments.

      The fields that this object accepts depend on the embedding model. For the settings that each model accepts, see the documentation for that model.

      For an example of a CreateKnowledgeBase request that uses this field to configure a multimodal embedding model, see the Examples section of CreateKnowledgeBase.

      Parameters:
      modelConfiguration - Model-specific configuration for the embedding model, provided as a JSON object. Use this field to specify settings that apply to the embedding model that you selected, such as how audio and video files are divided into segments.

      The fields that this object accepts depend on the embedding model. For the settings that each model accepts, see the documentation for that model.

      For an example of a CreateKnowledgeBase request that uses this field to configure a multimodal embedding model, see the Examples section of CreateKnowledgeBase.

      Returns:
      Returns a reference to this object so that method calls can be chained together.