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

Improve conversation title prompt #1397

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/packages/prompts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ export function nameConversation(msgs: Message[]): Message[] {
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.
Provide a descriptive title that clearly and uniquely summarizes the main topic of the conversation, such as "2024 Sales Conf Speech Prep", "Best Sushi Restaurants in Paris", "Groundskeeper Resume Revision".
Keep it around 30 characters, in same language as 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.
Provide a descriptive title that clearly and uniquely summarizes the main topic of the conversation, such as "2024 Sales Conf Speech Prep", "Best Sushi Restaurants in Paris", "Groundskeeper Resume Revision".
Keep it around 30 characters, in same language as conversation.
You only need to answer with the name.
The conversation is named:`,
},
Expand Down