focus: ensure keyword overlap
This commit is contained in:
parent
9d4b899fdb
commit
bb4b5f030a
@ -615,7 +615,7 @@ class AnswerEngine:
|
||||
model=plan.model,
|
||||
tag="focus_fix",
|
||||
)
|
||||
if not metric_facts:
|
||||
if not metric_facts or not _has_keyword_overlap(metric_facts, keyword_tokens):
|
||||
best_line = _best_keyword_line(summary_lines, keyword_tokens)
|
||||
if best_line:
|
||||
reply = f"From the latest snapshot: {best_line}."
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user