fix(suggestions): improve pool management and artist identity validation
- Increase pool sizes (INITIAL_POOL 18->30, EXPANDED_POOL 60->100, MAX_POOL 120->200) - Add auto-refresh when available tracks fall below threshold (MIN_AVAILABLE_THRESHOLD=12) - Add artist identity validation to filter incompatible genres (prevents merengue in metal playlists) - Log when artists are skipped due to incompatible disambiguation - Increase backend defaults (max_artists 20->30, tracks_per_artist 5->6, max_pool_size 100->150)
This commit is contained in:
1 parent
1bb9fc8382
commit
ed1bd31554
4 files changed
+63
-9
No files matched your search
@@ -41,9 +41,9 @@ pub struct SuggestionConfig {
|
||||
impl Default for SuggestionConfig {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
max_artists: 20,
|
||||
tracks_per_artist: 5,
|
||||
max_pool_size: 100,
|
||||
max_artists: 30, // Increased from 20 for more variety
|
||||
tracks_per_artist: 6, // Increased from 5
|
||||
max_pool_size: 150, // Increased from 100
|
||||
vector_max_age_days: 7,
|
||||
min_similarity: 0.1,
|
||||
skip_vector_build: false,
|
||||
|
||||
Reference in new issue
Block a user