atlasbot: include node pods for hotspot namespace
This commit is contained in:
parent
3885abd7fe
commit
178ae5470d
@ -328,6 +328,12 @@ class AnswerEngine:
|
||||
if hottest_facts and not hardware_facts and focus_entity != "class" and not hotspot_request:
|
||||
metric_facts = hottest_facts
|
||||
key_facts = _merge_fact_lines(metric_facts, key_facts)
|
||||
if "namespace" in lowered_q and any(term in lowered_q for term in ("hotspot", "hot spot", "hottest")):
|
||||
for line in summary_lines:
|
||||
if line.startswith("node_pods_top:"):
|
||||
metric_facts = _merge_fact_lines([line], metric_facts)
|
||||
key_facts = _merge_fact_lines([line], key_facts)
|
||||
break
|
||||
if classify.get("question_type") in {"metric", "diagnostic"} and not hottest_facts and not hardware_facts:
|
||||
metric_candidates = _metric_candidate_lines(summary_lines, keyword_tokens)
|
||||
selected_facts = await _select_metric_facts(call_llm, normalized, metric_candidates, plan)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user