interface MetadataConfigurationForRerankingProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.aws_bedrock.CfnFlow.MetadataConfigurationForRerankingProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrock#CfnFlow_MetadataConfigurationForRerankingProperty |
![]() | software.amazon.awscdk.services.bedrock.CfnFlow.MetadataConfigurationForRerankingProperty |
![]() | aws_cdk.aws_bedrock.CfnFlow.MetadataConfigurationForRerankingProperty |
![]() | aws-cdk-lib » aws_bedrock » CfnFlow » MetadataConfigurationForRerankingProperty |
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
// 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.CfnFlow.MetadataConfigurationForRerankingProperty = {
selectionMode: 'selectionMode',
// the properties below are optional
selectiveModeConfiguration: {
fieldsToExclude: [{
fieldName: 'fieldName',
}],
fieldsToInclude: [{
fieldName: 'fieldName',
}],
},
};
Properties
Name | Type | Description |
---|---|---|
selection | string | The mode for selecting which metadata fields to include in the reranking process. |
selective | IResolvable | Reranking | Configuration for selective mode, which allows you to explicitly include or exclude specific metadata fields during reranking. |
selectionMode
Type:
string
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).
selectiveModeConfiguration?
Type:
IResolvable
|
Reranking
(optional)
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.