Skip to content

MetadataConfigurationForReranking

Source code in docs_src/capo_bedrock_agent_runtime/types/metadata_configuration_for_reranking.py
class MetadataConfigurationForReranking(TypedDict, closed=True):
    selection_mode: "capo_bedrock_agent_runtime.types.reranking_metadata_selection_mode.RerankingMetadataSelectionMode"
    """<p>Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify <code>SELECTIVE</code>, include the <code>selectiveModeConfiguration</code> field.</p>"""
    selective_mode_configuration: NotRequired[
        "capo_bedrock_agent_runtime.types.reranking_metadata_selective_mode_configuration.RerankingMetadataSelectiveModeConfiguration"
    ]
    """<p>Contains configurations for the metadata fields to include or exclude when considering reranking.</p>"""

selection_mode instance-attribute

Specifies whether to consider all metadata when reranking, or only the metadata that you select. If you specify SELECTIVE, include the selectiveModeConfiguration field.

selective_mode_configuration instance-attribute

selective_mode_configuration: NotRequired[RerankingMetadataSelectiveModeConfiguration]

Contains configurations for the metadata fields to include or exclude when considering reranking.