Class CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlow.VectorSearchBedrockRerankingConfigurationProperty>
- Enclosing interface:
CfnFlow.VectorSearchBedrockRerankingConfigurationProperty
@Stability(Stable)
public static final class CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlow.VectorSearchBedrockRerankingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.metadataConfiguration
(IResolvable metadataConfiguration) metadataConfiguration
(CfnFlow.MetadataConfigurationForRerankingProperty metadataConfiguration) modelConfiguration
(IResolvable modelConfiguration) modelConfiguration
(CfnFlow.VectorSearchBedrockRerankingModelConfigurationProperty modelConfiguration) numberOfRerankedResults
(Number numberOfRerankedResults)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelConfiguration
@Stability(Stable) public CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder modelConfiguration(IResolvable modelConfiguration) - Parameters:
modelConfiguration
- Configuration for the Amazon Bedrock foundation model used for reranking. This parameter is required. This includes the model ARN and any additional request fields required by the model.- Returns:
this
-
modelConfiguration
@Stability(Stable) public CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder modelConfiguration(CfnFlow.VectorSearchBedrockRerankingModelConfigurationProperty modelConfiguration) - Parameters:
modelConfiguration
- Configuration for the Amazon Bedrock foundation model used for reranking. This parameter is required. This includes the model ARN and any additional request fields required by the model.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder metadataConfiguration(IResolvable metadataConfiguration) Sets the value ofCfnFlow.VectorSearchBedrockRerankingConfigurationProperty.getMetadataConfiguration()
- Parameters:
metadataConfiguration
- Configuration for how document metadata should be used during the reranking process. This determines which metadata fields are included when reordering search results.- Returns:
this
-
metadataConfiguration
@Stability(Stable) public CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder metadataConfiguration(CfnFlow.MetadataConfigurationForRerankingProperty metadataConfiguration) Sets the value ofCfnFlow.VectorSearchBedrockRerankingConfigurationProperty.getMetadataConfiguration()
- Parameters:
metadataConfiguration
- Configuration for how document metadata should be used during the reranking process. This determines which metadata fields are included when reordering search results.- Returns:
this
-
numberOfRerankedResults
@Stability(Stable) public CfnFlow.VectorSearchBedrockRerankingConfigurationProperty.Builder numberOfRerankedResults(Number numberOfRerankedResults) Sets the value ofCfnFlow.VectorSearchBedrockRerankingConfigurationProperty.getNumberOfRerankedResults()
- Parameters:
numberOfRerankedResults
- The maximum number of results to rerank. This limits how many of the initial vector search results will be processed by the reranking model. A smaller number improves performance but may exclude potentially relevant results.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFlow.VectorSearchBedrockRerankingConfigurationProperty>
- Returns:
- a new instance of
CfnFlow.VectorSearchBedrockRerankingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-