atlasbot: skip hottest facts for hardware class

This commit is contained in:
Brad Stein 2026-02-01 17:42:54 -03:00
parent 93532c2622
commit 1837fec215

View File

@ -1016,11 +1016,15 @@ def _extract_hottest_facts(lines: list[str], question: str) -> list[str]:
if not lines:
return []
lowered = question.lower()
if "hardware" in lowered or "class" in lowered:
return []
if not any(
term in lowered
for term in ("hottest", "hot", "highest", "lowest", "most", "top", "peak", "loaded", "load", "busy")
):
return []
if "node" not in lowered and "nodes" not in lowered:
return []
line = next((item for item in lines if item.lower().startswith("hottest:")), "")
if not line:
return []