[GH-ISSUE #16339] feat: websearch prompt tunning? #56533

Closed
opened 2026-05-05 19:39:19 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @sbe-arg on GitHub (Aug 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16339

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Can we introduce a way to tune the websearch prompt?

For some specific searches the prompt generation is so vague that the results are nonsense.

Example searching for a person or a generic non well known company name if is associated to a person the prompt results in vague stuff

open-webui  | 2025-08-07 00:52:12.277 | INFO     | open_webui.routers.retrieval:process_web_search:1914 - trying to web search with ('searxng', ['Santiago Berhardt Ltd company information', 'Santiago Berhardt Ltd news', 'Santiago Berhardt Ltd financials'])

why did it add the financials? why assumes is a ltd company, etc.

Desired Solution you'd like

it would be nice to explicitly pass the search query in the prompt for example

prompt example:
based on the results of "query here" tell me blah blah

Or per mode instructions for websearch or anything really

Alternatives Considered

not use websearch for complex searches.

Additional Context

No response

Originally created by @sbe-arg on GitHub (Aug 7, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/16339 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Can we introduce a way to tune the websearch prompt? For some specific searches the prompt generation is so vague that the results are nonsense. Example searching for a person or a generic non well known company name if is associated to a person the prompt results in vague stuff ``` open-webui | 2025-08-07 00:52:12.277 | INFO | open_webui.routers.retrieval:process_web_search:1914 - trying to web search with ('searxng', ['Santiago Berhardt Ltd company information', 'Santiago Berhardt Ltd news', 'Santiago Berhardt Ltd financials']) ``` why did it add the financials? why assumes is a ltd company, etc. ### Desired Solution you'd like it would be nice to explicitly pass the search query in the prompt for example prompt example: based on the results of "query here" tell me blah blah Or per mode instructions for websearch or anything really ### Alternatives Considered not use websearch for complex searches. ### Additional Context _No response_
Author
Owner

@sbe-arg commented on GitHub (Aug 7, 2025):

b8da4a8cd8/backend/open_webui/config.py (L1540C1-L1581)

🤦

<!-- gh-comment-id:3162097590 --> @sbe-arg commented on GitHub (Aug 7, 2025): https://github.com/open-webui/open-webui/blob/b8da4a8cd8257d4846f3608e299618a0b4f185ed/backend/open_webui/config.py#L1540C1-L1581 🤦
Author
Owner

@sbe-arg commented on GitHub (Aug 7, 2025):

By default, **prioritize generating 1-3 broad and relevant search queries**

Broad and relevant never go together I reckon.

<!-- gh-comment-id:3162114180 --> @sbe-arg commented on GitHub (Aug 7, 2025): ``` By default, **prioritize generating 1-3 broad and relevant search queries** ``` Broad and relevant never go together I reckon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#56533