fix: avoid hardware usage override for node queries
This commit is contained in:
parent
789fbfa5f2
commit
be1df4dcd0
@ -614,8 +614,10 @@ class AnswerEngine:
|
|||||||
|
|
||||||
if classify.get("question_type") in {"metric", "diagnostic"}:
|
if classify.get("question_type") in {"metric", "diagnostic"}:
|
||||||
lowered_q = f"{question} {normalized}".lower()
|
lowered_q = f"{question} {normalized}".lower()
|
||||||
if any(tok in lowered_q for tok in ("hardware", "class", "type", "rpi", "jetson", "amd64", "arm64")) and any(
|
if (
|
||||||
tok in lowered_q for tok in ("average", "avg", "mean", "ram", "memory", "cpu", "load")
|
focus_entity != "node"
|
||||||
|
and any(tok in lowered_q for tok in ("hardware", "class", "type", "rpi", "jetson", "amd64", "arm64"))
|
||||||
|
and any(tok in lowered_q for tok in ("average", "avg", "mean", "per hardware", "by hardware", "typical"))
|
||||||
):
|
):
|
||||||
hw_top = None
|
hw_top = None
|
||||||
for line in summary_lines:
|
for line in summary_lines:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user