带分数的论文
| 485 | score: float |
| 486 | category: str # must_read, high_relevant, maybe_interested, edge_relevant |
| 487 | relevance_signal: float = 0.0 |
| 488 | drift_bonus: float = 0.0 |
| 489 | drift_topics: Optional[List[str]] = None |
| 490 | reading_signal_bonus: float = 0.0 |
| 491 | reading_signal_topics: Optional[List[str]] = None |
| 492 | |
| 493 | |
| 494 | def _hard_priority_tuple(paper_with_score: PaperWithScore) -> tuple: |
| 495 | """Sort must-read hits ahead of all other candidates, then by score.""" |
| 496 | return ( |
| 497 | 1 if paper_with_score.category == "must_read" else 0, |
| 498 | float(paper_with_score.score), |
| 499 | float(paper_with_score.relevance_signal), |
no outgoing calls
no test coverage detected