feature/ariadne #11

Merged
bstein merged 416 commits from feature/ariadne into main 2026-01-28 14:05:40 +00:00
Showing only changes of commit eb567fda06 - Show all commits

View File

@ -3829,9 +3829,12 @@ def _fallback_fact_answer(prompt: str, context: str) -> str:
trimmed = line.strip() trimmed = line.strip()
if not trimmed.startswith("F"): if not trimmed.startswith("F"):
continue 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 continue
fact = trimmed.split(":", 1)[1].strip() fact = match.group(1).strip()
if fact.startswith("-"): if fact.startswith("-"):
fact = fact.lstrip("-").strip() fact = fact.lstrip("-").strip()
if fact: if fact: