Skip to content

Bedrock  >  Unions  >  RerankingMetadataSelectiveModeConfiguration

RerankingMetadataSelectiveModeConfiguration

Union Type

RerankingMetadataSelectiveModeConfiguration module-attribute

Configuration for selectively including or excluding metadata fields during the reranking process. This allows you to control which metadata attributes are considered when reordering search results.

Union Member Types

RerankingMetadataSelectiveModeConfigurationFieldsToInclude dataclass

A list of metadata field names to explicitly include in the reranking process. Only these fields will be considered when reordering search results. This parameter cannot be used together with fieldsToExclude.

Attributes

value instance-attribute
value: list[FieldForReranking]

RerankingMetadataSelectiveModeConfigurationFieldsToExclude dataclass

A list of metadata field names to explicitly exclude from the reranking process. All metadata fields except these will be considered when reordering search results. This parameter cannot be used together with fieldsToInclude.

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