feat(recommendation): extend Score with SimilarityScore + SimilarityWeight

This commit is contained in:
2026-04-29 08:01:53 -04:00
parent 362cb2c9ce
commit bb3f911761
3 changed files with 47 additions and 6 deletions
+2
View File
@@ -73,6 +73,7 @@ type RecommendationConfig struct {
SkipPenalty float64 `yaml:"skip_penalty"`
JitterMagnitude float64 `yaml:"jitter_magnitude"`
ContextWeight float64 `yaml:"context_weight"`
SimilarityWeight float64 `yaml:"similarity_weight"`
RecentlyPlayedHours int `yaml:"recently_played_hours"`
RadioSize int `yaml:"radio_size"`
RadioSizeMax int `yaml:"radio_size_max"`
@@ -95,6 +96,7 @@ func Default() Config {
SkipPenalty: 1.0,
JitterMagnitude: 0.1,
ContextWeight: 2.0,
SimilarityWeight: 2.0,
RecentlyPlayedHours: 1,
RadioSize: 50,
RadioSizeMax: 200,