feat(search): validate responses against web results

Adds a post-generation validation step that checks whether a
search-grounded reply is actually supported by the retrieved
results: it extracts cited URLs from the response and flags
replies that claim to have searched without citing any of the
provided sources, as well as replies containing specific
numbers or dates absent from the results.

Also switches the default model to xiaomi/mimo-v2.6-flash and
documents the anti-hallucination behavior in the README.
This commit is contained in:
2026-10-26 16:35:20 -03:00
parent ac41cc5771
commit 9eed02645b
7 changed files with 223 additions and 69 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ TELEGRAM_CHAT_ID=7889499475
AI_PROVIDER=openrouter
# Default AI Model
DEFAULT_MODEL=deepseek/deepseek-v4-flash-0731
DEFAULT_MODEL=xiaomi/mimo-v2.6-flash