atlasbot: force direct metric reply for count questions
This commit is contained in:
parent
4b7b2af687
commit
a807501ba4
@ -652,7 +652,9 @@ class AnswerEngine:
|
|||||||
model=plan.fast_model,
|
model=plan.fast_model,
|
||||||
tag="metric_direct",
|
tag="metric_direct",
|
||||||
)
|
)
|
||||||
if not _reply_matches_metric_facts(reply, [direct_line], all_tokens):
|
if mode == "quick" and any(term in normalized.lower() for term in ("how many", "count", "total")):
|
||||||
|
reply = _format_direct_metric_line(direct_line)
|
||||||
|
elif not _reply_matches_metric_facts(reply, [direct_line], all_tokens):
|
||||||
reply = _format_direct_metric_line(direct_line)
|
reply = _format_direct_metric_line(direct_line)
|
||||||
|
|
||||||
if "raspberry" in lowered_question and "not" in lowered_question:
|
if "raspberry" in lowered_question and "not" in lowered_question:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user