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.
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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
@tjbck commented on GitHub (Feb 19, 2025):
#8816