MetadataConfigurationForReranking¶
Structure Class¶
MetadataConfigurationForReranking
dataclass
¶
Configuration for how metadata should be used during the reranking process in Knowledge Base vector searches. This determines which metadata fields are included or excluded when reordering search results.
Attributes¶
selection_mode
instance-attribute
¶
selection_mode: RerankingMetadataSelectionMode
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
class-attribute
instance-attribute
¶
selective_mode_configuration: RerankingMetadataSelectiveModeConfiguration | None = None
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.