51Your RAG keeps retrieving near-duplicate chunks, wasting the context window. How do you diversify results?▼mediumGleanPerplexityNotion1 replies◆ premiumTop-k by pure similarity often hands the model five paraphrases of the same paragraph, starving it of the other facts the question needs. The fix is ranking for relevance and novelty at once. Here is how.Open full answer →
46How do you balance relevance and diversity in a ranking/recommendation list?▼hardNetflixSpotifyPinterest1 replies◆ premiumRank each item by relevance alone and you ship ten near-identical results and a filter bubble. The signal interviewers want is a re-ranking stage that scores the list as a set, plus the metric that proves it works.Open full answer →