Repository navigation
[search] Date-stuffed queries return calendar/SEO spam; web_search has no relevance gate #8665
Replies: 1 comment
|
I checked current The default DuckDuckGo What you can configure today:
Domain allow/deny lists are not a DDG option. Tavily and Serper do support A built-in relevance filter on DDG results is not in the current tool; that would be a feature request or a code change. |
Uh oh!
There was an error while loading. Please reload this page.
Environment
What happened
User asked for a small surprise (no explicit research intent). The agent loaded a
skill, then decided to look up "today's" trivia and called:
web_search(query="2026年11月25日 有趣的冷知识 历史上的今天")
Returned results (titles as shown in the UI):
None of them is about fun facts or "on this day" content. They look like
auto-generated date-stamped pages plus an unrelated YouTube video and a product page.
Expected
Either (a) the query formulation should avoid stuffing a specific date into a
generic trivia query, or (b) web_search should filter/sort out obviously
irrelevant results (date-stamped spam pages, mismatched domains), or at minimum
(c) the tool output/UI should expose url + snippet so the agent and the user can
judge relevance.
Actual
Raw upstream DuckDuckGo ranking is passed through as-is: ddg_search/tools.py
normalizes r["title"] / r["href"] / r["body"] and returns them unchanged, with
backend="auto" and region="wt-wt" by default. There is no relevance check,
domain blocklist, or dedupe step.
Notes
use" (docs/harness/tools), so this may be expected upstream noise — but the
default experience is bad enough to look like a bug to end users.
DDG/Brave, or adding a lightweight post-filter (drop date-stamped titles that
don't contain query tokens, drop non-http(s), dedupe by registrable domain).
would make this reproducible and self-evident.
Steps to reproduce
"给我一个小惊喜吧" (or directly call web_search with a date + "历史上的今天").
All reactions