diff --git a/services/comms/scripts/atlasbot/bot.py b/services/comms/scripts/atlasbot/bot.py index 8806d2a..e0f8417 100644 --- a/services/comms/scripts/atlasbot/bot.py +++ b/services/comms/scripts/atlasbot/bot.py @@ -3829,9 +3829,12 @@ def _fallback_fact_answer(prompt: str, context: str) -> str: trimmed = line.strip() if not trimmed.startswith("F"): continue - if ":" not in trimmed: + match = re.match(r"^F\\d+.*?\\]:\\s*(.*)$", trimmed) + if not match: + match = re.match(r"^F\\d+:\\s*(.*)$", trimmed) + if not match: continue - fact = trimmed.split(":", 1)[1].strip() + fact = match.group(1).strip() if fact.startswith("-"): fact = fact.lstrip("-").strip() if fact: