Interface VectorSearchRerankingConfiguration.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<VectorSearchRerankingConfiguration.Builder,VectorSearchRerankingConfiguration>,SdkBuilder<VectorSearchRerankingConfiguration.Builder,VectorSearchRerankingConfiguration>,SdkPojo
- Enclosing class:
- VectorSearchRerankingConfiguration
@Mutable @NotThreadSafe public static interface VectorSearchRerankingConfiguration.Builder extends SdkPojo, CopyableBuilder<VectorSearchRerankingConfiguration.Builder,VectorSearchRerankingConfiguration>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default VectorSearchRerankingConfiguration.BuilderbedrockRerankingConfiguration(Consumer<VectorSearchBedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration)Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.VectorSearchRerankingConfiguration.BuilderbedrockRerankingConfiguration(VectorSearchBedrockRerankingConfiguration bedrockRerankingConfiguration)Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.VectorSearchRerankingConfiguration.Buildertype(String type)Specifies the type of reranking model to use.VectorSearchRerankingConfiguration.Buildertype(VectorSearchRerankingConfigurationType type)Specifies the type of reranking model to use.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
type
VectorSearchRerankingConfiguration.Builder type(String type)
Specifies the type of reranking model to use. Currently, the only supported value is
BEDROCK_RERANKING_MODEL.- Parameters:
type- Specifies the type of reranking model to use. Currently, the only supported value isBEDROCK_RERANKING_MODEL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VectorSearchRerankingConfigurationType,VectorSearchRerankingConfigurationType
-
type
VectorSearchRerankingConfiguration.Builder type(VectorSearchRerankingConfigurationType type)
Specifies the type of reranking model to use. Currently, the only supported value is
BEDROCK_RERANKING_MODEL.- Parameters:
type- Specifies the type of reranking model to use. Currently, the only supported value isBEDROCK_RERANKING_MODEL.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
VectorSearchRerankingConfigurationType,VectorSearchRerankingConfigurationType
-
bedrockRerankingConfiguration
VectorSearchRerankingConfiguration.Builder bedrockRerankingConfiguration(VectorSearchBedrockRerankingConfiguration bedrockRerankingConfiguration)
Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.
- Parameters:
bedrockRerankingConfiguration- Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
bedrockRerankingConfiguration
default VectorSearchRerankingConfiguration.Builder bedrockRerankingConfiguration(Consumer<VectorSearchBedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration)
Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.
This is a convenience method that creates an instance of theVectorSearchBedrockRerankingConfiguration.Builderavoiding the need to create one manually viaVectorSearchBedrockRerankingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tobedrockRerankingConfiguration(VectorSearchBedrockRerankingConfiguration).- Parameters:
bedrockRerankingConfiguration- a consumer that will call methods onVectorSearchBedrockRerankingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
bedrockRerankingConfiguration(VectorSearchBedrockRerankingConfiguration)
-
-