(question: str, resolved_nodes: List[Dict[str, Any]])
| 4231 | def _should_pin_recent_papers(question: str, scope: str) -> bool: |
| 4232 | normalized = str(question or "").strip().lower() |
| 4233 | normalized_scope = str(scope or "").strip().lower() |
| 4234 | if not normalized: |
| 4235 | return False |
| 4236 | if normalized_scope == "recent" or _is_trend_question(normalized): |
| 4237 | return True |
| 4238 | has_paper_signal = any(term in normalized for term in _RECENT_PAPER_QUERY_TERMS) |
| 4239 | has_recent_signal = any(term in normalized for term in _RECENT_CONTEXT_QUERY_TERMS) |
| 4240 | return has_paper_signal and has_recent_signal |
| 4241 |
no outgoing calls
no test coverage detected