[GH-ISSUE #10315] enh: use all search queries #54518

Closed
opened 2026-05-05 16:21:27 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Aloxaf on GitHub (Feb 19, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10315

Feature Request

Is your feature request related to a problem? Please describe.

I noticed that in the default query generation prompt, the LLM is asked to generate 1 ~ 3 queries, which is good. However, in the code, only first query is actually used.

Describe the solution you'd like

Use all queries generated by the LLM.

Describe alternatives you've considered

Ignore it.

Additional context

3f3a5bb0ab/backend/open_webui/config.py (L1235-L1257)

3f3a5bb0ab/backend/open_webui/utils/middleware.py (L324)

Originally created by @Aloxaf on GitHub (Feb 19, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/10315 # Feature Request **Is your feature request related to a problem? Please describe.** I noticed that in the default query generation prompt, the LLM is asked to generate 1 ~ 3 queries, which is good. However, in the code, only first query is actually used. **Describe the solution you'd like** Use all queries generated by the LLM. **Describe alternatives you've considered** Ignore it. **Additional context** https://github.com/open-webui/open-webui/blob/3f3a5bb0ab8ce3425f317f1e57b084523aa2b2a5/backend/open_webui/config.py#L1235-L1257 https://github.com/open-webui/open-webui/blob/3f3a5bb0ab8ce3425f317f1e57b084523aa2b2a5/backend/open_webui/utils/middleware.py#L324
Author
Owner

@tjbck commented on GitHub (Feb 19, 2025):

#8816

<!-- gh-comment-id:2667534820 --> @tjbck commented on GitHub (Feb 19, 2025): #8816
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#54518