-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
[BUG] Auto-generated titles are too terse and vague #1388
Comments
I agree. It would also be great if we could choose a different model to generate those titles. GPT-3.5 or Haiku are good enough to create titles, and that would save users a little money. |
@Barafu Do you know what model it uses? Agreed it should use a cheap model for the title |
@endolith It uses the same model that was used for chat. It is very visible in the logs of token usage, since it reads ~500 tokens and outputs ~10. |
oh yeah that's wasteful |
It also looks like it puts the entire conversation in the system message instead of the "generate a title" prompt in the system message and the conversation in a user message? Is that why it needs to duplicate the instructions? import { Message } from '../stores/types'
export function nameConversation(msgs: Message[]): Message[] {
const format = (msgs: string[]) => msgs.map((msg) => msg).join('\n\n---------\n\n')
return [
{
id: '1',
role: 'system',
content: `Name the conversation based on the chat records.
Please provide a concise name, within 10 characters and without quotation marks.
Please use the speak language in the conversation.
You only need to answer with the name.
The following is the conversation:
\`\`\`
${format(msgs.map((msg) => msg.content))}
\`\`\`
Please provide a concise name, within 10 characters and without quotation marks.
Please use the speak language in the conversation.
You only need to answer with the name.
The conversation is named:`,
},
]
} and what format is the |
@endolith Just for reference: There is a web based chat UI that I used before, and it creates the most useful titles for chats of all I tested. I asked the developer, and he shared the prompt template.
As usual with LLMs, less is more. Note the absence of the system prompt ("You are a helpful |
Bug Description
The automatically-generated titles are too short and vague.
Expected Results
The prompt should be adjusted so the AI creates a title that clearly summarizes the topic and distinguishes the conversation from others.
Screenshots
Desktop (please complete the following information):
Web version or desktop, isn't relevant.
The text was updated successfully, but these errors were encountered: