Class CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrock.CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty>
- Enclosing interface:
CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty
@Stability(Stable)
public static final class CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.metadataConfiguration(IResolvable metadataConfiguration) metadataConfiguration(CfnFlowVersion.MetadataConfigurationForRerankingProperty metadataConfiguration) modelConfiguration(IResolvable modelConfiguration) modelConfiguration(CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty modelConfiguration) numberOfRerankedResults(Number numberOfRerankedResults)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
modelConfiguration
@Stability(Stable) public CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder modelConfiguration(IResolvable modelConfiguration) Sets the value ofCfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.getModelConfiguration()- 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 CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder modelConfiguration(CfnFlowVersion.VectorSearchBedrockRerankingModelConfigurationProperty modelConfiguration) Sets the value ofCfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.getModelConfiguration()- 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 CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder metadataConfiguration(IResolvable metadataConfiguration) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder metadataConfiguration(CfnFlowVersion.MetadataConfigurationForRerankingProperty metadataConfiguration) Sets the value ofCfnFlowVersion.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 CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.Builder numberOfRerankedResults(Number numberOfRerankedResults) Sets the value ofCfnFlowVersion.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:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty>- Returns:
- a new instance of
CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-