route: force metrics for readiness/postgres

This commit is contained in:
Brad Stein 2026-02-03 14:40:00 -03:00
parent ca717253f1
commit 702ab87109

View File

@ -219,6 +219,8 @@ class AnswerEngine:
_debug_log("route_parsed", {"classify": classify, "normalized": normalized}) _debug_log("route_parsed", {"classify": classify, "normalized": normalized})
lowered_question = f"{question} {normalized}".lower() lowered_question = f"{question} {normalized}".lower()
force_metric = bool(re.search(r"\bhow many\b|\bcount\b|\btotal\b", lowered_question)) force_metric = bool(re.search(r"\bhow many\b|\bcount\b|\btotal\b", lowered_question))
if any(term in lowered_question for term in ("postgres", "connections", "pvc", "ready")):
force_metric = True
cluster_terms = ( cluster_terms = (
"atlas", "atlas",
"cluster", "cluster",