atlasbot: skip hottest facts for hardware class
This commit is contained in:
parent
93532c2622
commit
1837fec215
@ -1016,11 +1016,15 @@ def _extract_hottest_facts(lines: list[str], question: str) -> list[str]:
|
|||||||
if not lines:
|
if not lines:
|
||||||
return []
|
return []
|
||||||
lowered = question.lower()
|
lowered = question.lower()
|
||||||
|
if "hardware" in lowered or "class" in lowered:
|
||||||
|
return []
|
||||||
if not any(
|
if not any(
|
||||||
term in lowered
|
term in lowered
|
||||||
for term in ("hottest", "hot", "highest", "lowest", "most", "top", "peak", "loaded", "load", "busy")
|
for term in ("hottest", "hot", "highest", "lowest", "most", "top", "peak", "loaded", "load", "busy")
|
||||||
):
|
):
|
||||||
return []
|
return []
|
||||||
|
if "node" not in lowered and "nodes" not in lowered:
|
||||||
|
return []
|
||||||
line = next((item for item in lines if item.lower().startswith("hottest:")), "")
|
line = next((item for item in lines if item.lower().startswith("hottest:")), "")
|
||||||
if not line:
|
if not line:
|
||||||
return []
|
return []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user