Chronological (Rule-Based)
Description
The Chronological policy ranks or scores items based on a specified timestamp feature associated with them. It allows sorting items from newest-to-oldest or oldest-to-newest. Useful for time-sensitive content like news feeds or event listings.
Policy Type: chronological
Supports: scoring_policy
Configuration Example
scoring_policy_chronological.yaml
policy_configs:
scoring_policy:
policy_type: chronological
time_col: "item_creation_timestamp" # Name of the feature column containing the relevant timestamp.
ascending: false # Sort order: false = newest first (descending), true = oldest first (ascending).