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
Modifier and TypeMethodDescriptionbedrockRerankingConfiguration
(Consumer<VectorSearchBedrockRerankingConfiguration.Builder> bedrockRerankingConfiguration) Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.bedrockRerankingConfiguration
(VectorSearchBedrockRerankingConfiguration bedrockRerankingConfiguration) Specifies the configuration for using an Amazon Bedrock reranker model to rerank retrieved results.Specifies the type of reranking model to use.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 Details
-
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.Builder
avoiding the need to create one manually viaVectorSearchBedrockRerankingConfiguration.builder()
.When the
Consumer
completes,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:
-
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:
-
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:
-