Seed titles (autocomplete + recommendations) + weighted-random deck order - #16
Merged
Merged
Conversation
…deck order - seeds: 'titles you loved' with live autocomplete (GET /api/search -> TMDb search, KV-cached, 300ms debounce); picked titles stored in profile.prefs.seeds - pool with seeds (strongest signal): recommendations (+ /similar fallback) of both users' seeds drive the pool + a common-ground genre slice; avoid_genres enforced on recs (the API doesn't filter them); union across users; no seeds -> genre-union pool - randomizer: per-user weighted shuffle at serve time (taste-biased but varies each call and differs between users) instead of a fixed deterministic order - seeds only apply to the room's media type; capped at 3/user (free-tier friendly) - health -> v2.8 Tested local: autocomplete works, seed pool = recommendations, avoid removes those genres from recs, two users' seeds union (sci-fi + romance), order differs across calls.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seed titles + weighted-random deck order
Seeds ("titles you loved" — strongest signal)
GET /api/search?q=…→ TMDb search (KV-cached), 300ms debounce; a dropdown with poster + title + year + Movie/TV. Picked titles become removable chips.profile.prefs.seeds({tmdb_id, media_type}, max 6; ≤3/user used in the pool)./recommendations,/similarfallback) of both users' seeds drive the pool, plus a common-ground genre slice so overlap always exists.avoid_genresenforced on the recommendations (the API doesn't filter them). Union across both users. No seeds → the genre-union pool (unchanged).Randomizer
Verified local
/deckcalls → different order ✅Free tier