# VectorSearchRerankingConfigurationProperty

Configuration for reranking vector search results to improve relevance.

Reranking applies additional relevance models to reorder the initial vector search results based on more sophisticated criteria.

- Source: Generated code
- Type last changed: v2.201.0 · 13 Jun 2025

## 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';

declare const additionalModelRequestFields: any;
const vectorSearchRerankingConfigurationProperty: bedrock.CfnFlowVersion.VectorSearchRerankingConfigurationProperty = {
  type: 'type',

  // the properties below are optional
  bedrockRerankingConfiguration: {
    modelConfiguration: {
      modelArn: 'modelArn',

      // the properties below are optional
      additionalModelRequestFields: additionalModelRequestFields,
    },

    // the properties below are optional
    metadataConfiguration: {
      selectionMode: 'selectionMode',

      // the properties below are optional
      selectiveModeConfiguration: {
        fieldsToExclude: [{
          fieldName: 'fieldName',
        }],
        fieldsToInclude: [{
          fieldName: 'fieldName',
        }],
      },
    },
    numberOfRerankedResults: 123,
  },
};
```

## Properties

- `bedrockRerankingConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_bedrock.CfnFlowVersion.VectorSearchBedrockRerankingConfigurationProperty.html) — Configuration for using Amazon Bedrock foundation models to rerank search results.

  This is required when the reranking type is set to BEDROCK.

- `type`: string (required) — The type of reranking to apply to vector search results.

  Currently, the only supported value is BEDROCK, which uses Amazon Bedrock foundation models for reranking.
