mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #17323] feat: Add Language and country (and optionally other) parameters to DuckDuckGo websearch #56907
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cociweb on GitHub (Sep 10, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17323
Check Existing Issues
Problem Description
Hello,
Currently, I try to add DDG as a Web search engine, but in my country, it is useless. When I try to create a search query, it parses the first X results. Unfortunately, these results are irrelevant in my country and language, too. (Additionally, I'm afraid these are commercial advertisements..)
Desired Solution you'd like
Since customizing the search query is intended for individual use, I think we can add a simple input text field and use its value after the ?q=< query >.
This option should be user level setting to fulfill the restrictions of the service.
The user should be responsible for this set of parameters. By default, it should be empty.
https://duckduckgo.com/duckduckgo-help-pages/settings/params.
Maybe, we should check the length of it to avoid URL cutting in case of a long query string?
Alternatives Considered
No response
Additional Context
No response
@rgaricano commented on GitHub (Sep 10, 2025):
DDGS, now, is a metasearch engine, you have some info about DDGS in this PR: https://github.com/open-webui/open-webui/pull/16694
You can find info of DDGS params in: https://github.com/deedy5/ddgs
@micchickenburger commented on GitHub (Sep 10, 2025):
Hi @rgaricano, how can these parameters be specified? It seems "Concurrent Requests" is the only parameter available in settings for DDGS.
@rgaricano commented on GitHub (Sep 10, 2025):
yes, you have reason, there isn't query search config for DDGS, sorry I was thinking in searxng.
It need some modifications and config params.
For reference:
Changes necessaries:
(in web configuration secton)
(& in response section)
@Addono commented on GitHub (Nov 17, 2025):
This would indeed be great to have!
I'm occasionally getting really poor search results. For example, here the queries have nothing in common with the search results:
Looking in the logs, those requests tend to get routed to Bing. Which matches this comment https://github.com/deedy5/ddgs/issues/375#issuecomment-3486590812 where the author of the DDGS package blames it on Bing too.
If it were possible to control the engines DDGS can pick from, or at least allow us to explicitly remove Bing, that should resolve some of those poor results.
@cociweb commented on GitHub (Dec 22, 2025):
SEARXNG_LANGUAGE added In #19909. It should be similarily implemented I think.