Skip to content

MetadataConfigurationForReranking

Source code in docs_src/capo_bedrock/types/metadata_configuration_for_reranking.py
class MetadataConfigurationForReranking(TypedDict, closed=True):
    selection_mode: "capo_bedrock.types.reranking_metadata_selection_mode.RerankingMetadataSelectionMode"
    """<p>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).</p>"""
    selective_mode_configuration: NotRequired[
        "capo_bedrock.types.reranking_metadata_selective_mode_configuration.RerankingMetadataSelectiveModeConfiguration"
    ]
    """<p>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.</p>"""

selection_mode instance-attribute

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).

selective_mode_configuration instance-attribute

selective_mode_configuration: NotRequired[RerankingMetadataSelectiveModeConfiguration]

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.