From c0adb18faf7163afd83ffa345cb7008b85e74643 Mon Sep 17 00:00:00 2001 From: endolith Date: Sat, 8 Jun 2024 11:52:01 -0400 Subject: [PATCH] Improve conversation title prompt Auto-generated conversation title are too short and vague, like "CatchUp", "Results", or "Reviews". Increase length and clarify that it should be summarizing the topic. --- src/packages/prompts.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/packages/prompts.ts b/src/packages/prompts.ts index ac0c70d2..9eaf6d55 100644 --- a/src/packages/prompts.ts +++ b/src/packages/prompts.ts @@ -7,8 +7,8 @@ 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: @@ -16,8 +16,8 @@ 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:`, },