Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,9 @@ excerpt (or Reddit's public JSON for a Reddit post), and attributes the excerpt
to that result. This is source text, not an AI-generated synthesis; if the page
cannot be safely or quickly fetched, its DuckDuckGo snippet is used instead.
If DuckDuckGo's rendered page is unavailable or presents an anti-automation
challenge, a bounded Bing public-search result lookup is attempted before the
final search-link response.
challenge, a bounded Bing public-search result lookup is attempted for
open-ended, procedural, opinion, comparison, and controversy questions before
the final search-link response.
If no reliable source answer exists, the bot returns a bounded DuckDuckGo search
link instead of pretending that it knows the answer. Responses remain
source-grounded, sanitized, one-line, and bounded by `max_length` and
Expand Down
5 changes: 3 additions & 2 deletions docs/plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -1164,8 +1164,9 @@ timeouts and response sizes. Private, local, and non-HTTP destinations are
rejected. The response is sanitized,
limited to one IRC line, and includes a cited source link when available.
If DuckDuckGo's rendered page is unavailable or presents an anti-automation
challenge, GoBot makes one bounded Bing public-search result lookup and applies
the same relevance, URL-safety, and excerpt rules.
challenge, GoBot makes one bounded Bing public-search result lookup for
open-ended, procedural, opinion, comparison, and controversy questions, then
applies the same relevance, URL-safety, and excerpt rules.
Each provider has a bounded sub-timeout so a slow Search Assist request cannot
consume the entire lookup window; transient DuckDuckGo Instant Answer failures
are retried within the same invocation. Successful answers are cached in memory
Expand Down
4 changes: 4 additions & 0 deletions plugins/ask_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,10 @@ func TestAskNeedsWebResultAnswer(t *testing.T) {
"Why is this comedian controversial?",
"What makes this service unpopular?",
"Why do people criticize this product?",
"why is ari shaffir considered a faggot?",
"why is ari shaffir not liked much?",
"how do i install FreeBSD in Proxmox?",
"how do I install OpenBSD?",
} {
if !askNeedsWebResultAnswer(question) {
t.Fatalf("askNeedsWebResultAnswer(%q) = false; want web-result fallback", question)
Expand Down