[GH-ISSUE #9905] Title generation prompt not working #15693

Closed
opened 2026-04-19 21:50:51 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @Aleprex on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/9905

Bug Report

Environment

  • Open WebUI Version: [v0.5.11]

  • Ollama : [0.5.7]

  • Operating System: [ Kubuntu 22.04]

Description

From the latest versions, the chat Title is no longer generated and the emoji is no longer added, but only the first sentence of the inserted prompt is repeated.

in the settings there is still a prompt to generate emojis but it seems that the system completely ignores it:

Here is the query:
{{prompt:middletruncate:8000}}

Create a concise, 3-5 word phrase with an emoji as a title for the previous query. Suitable Emojis for the summary can be used to enhance understanding but avoid quotation marks or special formatting. RESPOND ONLY WITH THE TITLE TEXT.

Examples of titles:
📉 Stock Market Trends
🍪 Perfect Chocolate Chip Recipe
Evolution of Music Streaming
Remote Work Productivity Tips
Artificial Intelligence in Healthcare
🎮 Video Game Development Insights

Image

Image

Image

Originally created by @Aleprex on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/9905 # Bug Report ## Environment - **Open WebUI Version:** [v0.5.11] - **Ollama :** [0.5.7] - **Operating System:** [ Kubuntu 22.04] ## Description From the latest versions, the chat Title is no longer generated and the emoji is no longer added, but only the first sentence of the inserted prompt is repeated. in the settings there is still a prompt to generate emojis but it seems that the system completely ignores it: Here is the query: {{prompt:middletruncate:8000}} Create a concise, 3-5 word phrase with an emoji as a title for the previous query. Suitable Emojis for the summary can be used to enhance understanding but avoid quotation marks or special formatting. RESPOND ONLY WITH THE TITLE TEXT. Examples of titles: 📉 Stock Market Trends 🍪 Perfect Chocolate Chip Recipe Evolution of Music Streaming Remote Work Productivity Tips Artificial Intelligence in Healthcare 🎮 Video Game Development Insights ![Image](https://github.com/user-attachments/assets/320b6c95-8061-4bd8-af5f-6c2651b984d0) ![Image](https://github.com/user-attachments/assets/245235be-6017-49d7-8a31-018c38a05fcb) ![Image](https://github.com/user-attachments/assets/85f4d4b2-68c3-4054-a32e-b2e2999befd2)
Author
Owner

@silentoplayz commented on GitHub (Feb 13, 2025):

You are using an outdated Title Generation Prompt, without the correct variables for chat title generation to function properly. See here, or see down below for the DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE.

### Task:
Generate a concise, 3-5 word title with an emoji summarizing the chat history.
### Guidelines:
- The title should clearly represent the main theme or subject of the conversation.
- Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting.
- Write the title in the chat's primary language; default to English if multilingual.
- Prioritize accuracy over excessive creativity; keep it clear and simple.
### Output:
JSON format: { "title": "your concise title here" }
### Examples:
- { "title": "📉 Stock Market Trends" },
- { "title": "🍪 Perfect Chocolate Chip Recipe" },
- { "title": "Evolution of Music Streaming" },
- { "title": "Remote Work Productivity Tips" },
- { "title": "Artificial Intelligence in Healthcare" },
- { "title": "🎮 Video Game Development Insights" }
### Chat History:
<chat_history>
{{MESSAGES:END:2}}
</chat_history>

You can copy and paste this prompt to use for your Title Generation Prompt inside of Open WebUI. Any modifications to the prompt must keep the structure intact. You can change the task, the guidelines, and even the examples. But I recommend to keep everything else as is.

<!-- gh-comment-id:2656799425 --> @silentoplayz commented on GitHub (Feb 13, 2025): You are using an outdated `Title Generation Prompt`, without the correct variables for chat title generation to function properly. See [here](https://github.com/open-webui/open-webui/blob/f916fbba56ed894a5f627c71aabdc0e656fa4f23/backend/open_webui/config.py#L1377C1-L1390C104), or see down below for the `DEFAULT_TITLE_GENERATION_PROMPT_TEMPLATE`. ``` ### Task: Generate a concise, 3-5 word title with an emoji summarizing the chat history. ### Guidelines: - The title should clearly represent the main theme or subject of the conversation. - Use emojis that enhance understanding of the topic, but avoid quotation marks or special formatting. - Write the title in the chat's primary language; default to English if multilingual. - Prioritize accuracy over excessive creativity; keep it clear and simple. ### Output: JSON format: { "title": "your concise title here" } ### Examples: - { "title": "📉 Stock Market Trends" }, - { "title": "🍪 Perfect Chocolate Chip Recipe" }, - { "title": "Evolution of Music Streaming" }, - { "title": "Remote Work Productivity Tips" }, - { "title": "Artificial Intelligence in Healthcare" }, - { "title": "🎮 Video Game Development Insights" } ### Chat History: <chat_history> {{MESSAGES:END:2}} </chat_history> ``` You can copy and paste this prompt to use for your `Title Generation Prompt` inside of Open WebUI. Any modifications to the prompt must keep the structure intact. You can change the task, the guidelines, and even the examples. But I recommend to keep everything else as is.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#15693