mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[feat]: Better default prompt for title generation #717
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yeenbean on GitHub (Apr 24, 2024).
Is your feature request related to a problem? Please describe.
I'm frustrated with the default title generation prompt because many models ignore its 3-5 word limit or prepend titles with unnecessary text like "Here is a 3-5 word concise title: [title]". Some language models will also include markdown in the generated title, or create a title that does not fit the content entirely.
Describe the solution you'd like
To improve QoL, Open WebUI should adopt a stronger prompt that accurately guides language models. Based on my testing across three models (Gemma, LLaMA, and Solar), I've found a revised prompt that works well. I recommend using it as a starting point to strengthen the default prompt.
Additional context
Using the current default prompt:

Using the suggested prompt above:

@justinh-rahb commented on GitHub (Apr 24, 2024):
Related thread in discussions with a lot of testing data, let's keep further discussion of this matter here: