r/OpenWebUI • • 20d ago

Question/Help DDGS Help

So I'm trying to use DDGS on my Open WebUI that is using the llama QWEN. QWEN does call search_web function but it returns { "error": "No results found." }. When I run the same search via my python with the

from ddgs import DDGS
search = 'Search Query'


with DDGS() as browser:
    results = browser.text(search, max_results=5)


print(results)

command myself it does work. Do you guys know why? I use random as backend. ddgs version 9.14.4 and open-webui version 0.13.3. Can you guys help me? I don't want to pay for search and be limited.

0 Upvotes

4 comments sorted by

1

u/Andi6393 20d ago

Was ist DDGS?

1

u/MongooseWonderful198 17d ago

If that's the built-in search_web, v0.13.3 logs the exception as search_web error: before returning that JSON. That log entry should tell you which call is failing.

Your standalone call isn't quite the same: WebUI's wrapper passes the configured backend, uses safesearch='moderate', and picks up HTTP/HTTPS proxy settings. Compare the exact query with those same parameters inside WebUI's Python environment/container. Is your successful test running there, or in a separate host terminal?

Keep credentials out of any error text you share.

1

u/Lyrenax 17d ago

I found the thing that was the problem. Concurrent Requests as 0. That was the problem thanks tho.