Skip to content

Bedrock Agent Runtime  >  Unions  >  RerankingMetadataSelectiveModeConfiguration

RerankingMetadataSelectiveModeConfiguration

Union Type

RerankingMetadataSelectiveModeConfiguration module-attribute

Contains configurations for the metadata fields to include or exclude when considering reranking. If you include the fieldsToExclude field, the reranker ignores all the metadata fields that you specify. If you include the fieldsToInclude field, the reranker uses only the metadata fields that you specify and ignores all others. You can include only one of these fields.

Union Member Types

RerankingMetadataSelectiveModeConfigurationFieldsToInclude dataclass

An array of objects, each of which specifies a metadata field to include in consideration when reranking. The remaining metadata fields are ignored.

Attributes

value instance-attribute
value: list[FieldForReranking]

RerankingMetadataSelectiveModeConfigurationFieldsToExclude dataclass

An array of objects, each of which specifies a metadata field to exclude from consideration when reranking.

Attributes

value instance-attribute
value: list[FieldForReranking]

RerankingMetadataSelectiveModeConfigurationUnknown dataclass

Represents an unknown variant.

If you receive this value, you will need to update your library to receive the parsed value.

This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str