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

Function _comparison_needs_mentions

deployments/desktop/shared/agents.py:4233–4238  ·  view source on GitHub ↗
(question: str, resolved_nodes: List[Dict[str, Any]])

Source from the content-addressed store, hash-verified

4231def _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

Callers 2

wiki_askFunction · 0.85
wiki_ask_streamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected