MetadataConfigurationForRerankingProperty Struct
Configuration for how metadata should be used during the reranking process in Knowledge Base vector searches.
This determines which metadata fields are included or excluded when reordering search results.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const metadataConfigurationForRerankingProperty: bedrock.CfnFlowVersion.MetadataConfigurationForRerankingProperty = {
selectionMode: 'selectionMode',
// the properties below are optional
selectiveModeConfiguration: {
fieldsToExclude: [{
fieldName: 'fieldName',
}],
fieldsToInclude: [{
fieldName: 'fieldName',
}],
},
};
Properties
selectionModestringselection_modestrselectionModeStringSelectionModestringSelectionMode*stringrequired#The mode for selecting which metadata fields to include in the reranking process.
Valid values are ALL (use all available metadata fields) or SELECTIVE (use only specified fields).
selectiveModeConfigurationIResolvable | CfnFlowVersion.RerankingMetadataSelectiveModeConfigurationPropertyselective_mode_configurationtyping.Union[IResolvable, RerankingMetadataSelectiveModeConfigurationProperty]selectiveModeConfigurationIResolvableSelectiveModeConfigurationIResolvableSelectiveModeConfigurationinterface{}#Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking.
This is only used when selectionMode is set to SELECTIVE.