You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix For You feed: drop self-recs and space out same-author posts
Two ranking bugs reported by users, both in the shared finalize()
back-half of the ranker:
- Own posts appeared in the feed. In pure CF a taste-neighbor liking
your post makes it a candidate, so you got recommended back to
yourself. Thread the viewer DID into finalize() and drop posts whose
author is the viewer. Applied across all three rankers (graph, CF,
and cold-start popularity, which a seedless signed-in viewer also
hits).
- 2-3 posts by the same author in a row. perAuthorCap limited an
author's total count but output was strictly score-sorted, so their
posts clustered. Replace the cap-only loop with spaced round-robin:
per-author buckets emitted highest-score-first, skipping any author
seen within the last FEEDGEN_AUTHOR_MIN_GAP slots. Best-effort — the
gap relaxes when only one author is left, so no content is dropped.
New knob FEEDGEN_AUTHOR_MIN_GAP (default 3), no code change needed to
tune. No API change; defaults live in code.
0 commit comments