atlasbot: force metric routing for count questions

This commit is contained in:
Brad Stein 2026-02-01 04:54:08 -03:00
parent 54b18c1c84
commit 677e31ba2d

View File

@ -226,6 +226,8 @@ class AnswerEngine:
) )
if any(term in normalized.lower() for term in cluster_terms): if any(term in normalized.lower() for term in cluster_terms):
classify["needs_snapshot"] = True classify["needs_snapshot"] = True
if re.search(r"\b(how many|count|number of|list)\b", normalized.lower()):
classify["question_type"] = "metric"
if classify.get("follow_up") and state and state.claims: if classify.get("follow_up") and state and state.claims:
if observer: if observer: