Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web search prompt doesn't used, and noisy RAG #3131

Closed
4 tasks done
Fusseldieb opened this issue Jun 13, 2024 · 4 comments
Closed
4 tasks done

Web search prompt doesn't used, and noisy RAG #3131

Fusseldieb opened this issue Jun 13, 2024 · 4 comments

Comments

@Fusseldieb
Copy link
Contributor

Fusseldieb commented Jun 13, 2024

Bug Report

Description

Bug Summary:
When using the web search capability, it seemingly skips the web search prompt and simply uses the original question prompt.
Eg. if I ask "Make a Google search to tell me who's Fusseldieb", it just skips to "Searching 'Make a Google search to tell me who's Fusseldieb'...
When looking at the logs, it really does search for the whole original prompt. Seems like the prompt to transform the query into a Google search doesn't get executed, or ignored.


Also, when searching on the web, when it reads individual searches, it doesn't trim the output, which makes it very noisy, and uses A LOT of useless tokens.
See below.

Steps to Reproduce:

  • Enable the web search capability within the " " icon.
  • Ask anything

Expected Behavior:

  • Pass through the query transformation prompt

Actual Behavior:

  • It searches the exact prompt

Environment

  • Open WebUI Version: 0.3.4

  • Operating System: Debian GNU/Linux 11 (bullseye)

Reproduction Details

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.

Logs and Screenshots

Docker Container Logs:

INFO:root:trying to web search with ('duckduckgo', 'Search the exact term "Fusseldieb" for me')
[SearchResult(...

Screenshots (if applicable):
image


image

Installation Method

Docker

Additional Information

Suggestion: I think this would ideally be a pipeline, not a built-in function.

@justinh-rahb
Copy link
Collaborator

@AeneasZhu that is unrelated to this issue.

@tjbck
Copy link
Contributor

tjbck commented Jun 13, 2024

You can change the prompt length threshold from admin settings!

@tjbck tjbck closed this as completed Jun 13, 2024
@Fusseldieb
Copy link
Contributor Author

Fusseldieb commented Jun 13, 2024

@tjbck Thanks for answering, however that doesn't quite address the issues.

The bug in which it skips through the query prompt is, well, a bug.

And while the prompt length threshold can indeed be adjusted, the issue is that it doesn't "clean up" endless ("\n", newlines) which may come from web searches. This is less important, but I still think it's worth mentioning, as both are related to the web search feature.

I think this issue should only be closed if at least the bug is solved.

@RayGicEFL
Copy link

RayGicEFL commented Jun 16, 2024

The length threshold means that when your prompt word exceeds the threshold before a web search keyword is generated with the LLM instead of using your request directly, so if you want to generate web search keywords by LLM every time, you should set the threshold to 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants