Replacement
12/6/25Less than 1 minute
Replacement
In some cases, read items should be recommended to users again but with lower (or higher) priorities.
Configuration
Replacement is configured in the [recommend.replacement] section of configuration file:
enable_replacementenables or disables replacement of read items back to recommendations. Defaults tofalse.positive_replacement_decayis the decay factor for ranking replaced items from positive feedback. Defaults to0.8.read_replacement_decayis the decay factor for ranking replaced items from read feedback. Defaults to0.6.
Set decay factor greater than 1.0 if you want to increase the priority of read items.
Algorithm
If enable_replacement is set to true:
- Gorse collects read items from user feedback.
- Gorse adds read items back to the recommendation list with decayed scores. For an item read by user , if the original score from the ranker is , the new score after replacement is
where is the set of items with positive feedback from user , is the set of items with read feedback from user , is the positive_replacement_decay and is the read_replacement_decay.
