atlasbot: filter lexicon from metric facts
This commit is contained in:
parent
ccd47ea02a
commit
85fd5fb70f
@ -1005,6 +1005,8 @@ def _metric_candidate_lines(lines: list[str], keywords: list[str] | None, limit:
|
||||
candidates: list[str] = []
|
||||
for line in lines:
|
||||
line_lower = line.lower()
|
||||
if line_lower.startswith("lexicon_") or line_lower.startswith("units:"):
|
||||
continue
|
||||
if prefer_node and "pod_" in line_lower:
|
||||
continue
|
||||
if "hottest:" in line_lower:
|
||||
|
||||
@ -218,6 +218,7 @@ FACT_SELECT_PROMPT = (
|
||||
"If the question asks for highest/hottest and Candidates include a line starting with 'hottest:', you must include that line. "
|
||||
"If the question mentions nodes and a 'hottest:' line exists, prefer node-level facts over pod-level lines. "
|
||||
"Avoid pod_* lines unless the question explicitly mentions pods. "
|
||||
"Exclude lexicon/definition lines; choose lines with concrete numeric values. "
|
||||
"Return JSON with field: lines (list of strings). If none apply, return {{\"lines\": []}}."
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user