Interface BedrockEmbeddingModelConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<BedrockEmbeddingModelConfiguration.Builder,,BedrockEmbeddingModelConfiguration> SdkBuilder<BedrockEmbeddingModelConfiguration.Builder,,BedrockEmbeddingModelConfiguration> SdkPojo
- Enclosing class:
BedrockEmbeddingModelConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionaudio(Collection<AudioConfiguration> audio) Deprecated.Use Managed Knowledge Base's modelConfiguration field.audio(Consumer<AudioConfiguration.Builder>... audio) Deprecated.Use Managed Knowledge Base's modelConfiguration field.audio(AudioConfiguration... audio) Deprecated.Use Managed Knowledge Base's modelConfiguration field.dimensions(Integer dimensions) The dimensions details for the vector configuration used on the Bedrock embeddings model.embeddingDataType(String embeddingDataType) The data type for the vectors when using a model to convert text into vector embeddings.embeddingDataType(EmbeddingDataType embeddingDataType) The data type for the vectors when using a model to convert text into vector embeddings.modelConfiguration(Document modelConfiguration) Model-specific configuration for the embedding model, provided as a JSON object.video(Collection<VideoConfiguration> video) Deprecated.Use Managed Knowledge Base's modelConfiguration field.video(Consumer<VideoConfiguration.Builder>... video) Deprecated.Use Managed Knowledge Base's modelConfiguration field.video(VideoConfiguration... video) Deprecated.Use Managed Knowledge Base's modelConfiguration field.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
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
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
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.htmlConfiguration settings for processing audio content in multimodal knowledge bases.
This field is deprecated. Use
modelConfigurationinstead.- Parameters:
audio- Configuration settings for processing audio content in multimodal knowledge bases.This field is deprecated. Use
modelConfigurationinstead.- 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.htmlConfiguration settings for processing audio content in multimodal knowledge bases.
This field is deprecated. Use
modelConfigurationinstead.- Parameters:
audio- Configuration settings for processing audio content in multimodal knowledge bases.This field is deprecated. Use
modelConfigurationinstead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
audio
@Deprecated BedrockEmbeddingModelConfiguration.Builder audio(Consumer<AudioConfiguration.Builder>... audio) Deprecated.Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.htmlConfiguration settings for processing audio content in multimodal knowledge bases.
This is a convenience method that creates an instance of theThis field is deprecated. Use
modelConfigurationinstead.AudioConfiguration.Builderavoiding the need to create one manually viaAudioConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaudio(List<AudioConfiguration>).- Parameters:
audio- a consumer that will call methods onAudioConfiguration.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.htmlConfiguration settings for processing video content in multimodal knowledge bases.
This field is deprecated. Use
modelConfigurationinstead.- Parameters:
video- Configuration settings for processing video content in multimodal knowledge bases.This field is deprecated. Use
modelConfigurationinstead.- 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.htmlConfiguration settings for processing video content in multimodal knowledge bases.
This field is deprecated. Use
modelConfigurationinstead.- Parameters:
video- Configuration settings for processing video content in multimodal knowledge bases.This field is deprecated. Use
modelConfigurationinstead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
@Deprecated BedrockEmbeddingModelConfiguration.Builder video(Consumer<VideoConfiguration.Builder>... video) Deprecated.Use Managed Knowledge Base's modelConfiguration field. https://docs.aws.amazon.com/bedrock/latest/userguide/kb-build-managed.htmlConfiguration settings for processing video content in multimodal knowledge bases.
This is a convenience method that creates an instance of theThis field is deprecated. Use
modelConfigurationinstead.VideoConfiguration.Builderavoiding the need to create one manually viaVideoConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tovideo(List<VideoConfiguration>).- Parameters:
video- a consumer that will call methods onVideoConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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.
-