MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / mmr_key

Function mmr_key

deployments/feishu/daily-push-agent/main.py:834–840  ·  view source on GitHub ↗
(item: PaperWithScore)

Source from the content-addressed store, hash-verified

832 default=0.0,
833 )
834 mmr_score = relevance_weight * float(item.score) - diversity_weight * redundancy
835 return (mmr_score, float(item.score), float(item.relevance_signal))
836
837 best = max(remaining, key=mmr_key)
838 selected.append(best)
839 remaining.remove(best)
840
841 return must_read_items + selected
842
843

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected