From 14e7a3e71936f0a4643ce92fc979c84dd9ea4388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Thu, 4 Jul 2024 11:31:00 +0200 Subject: [PATCH] Improving thread summarization prompt --- server/ai/prompts/summarize_thread.tmpl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/ai/prompts/summarize_thread.tmpl b/server/ai/prompts/summarize_thread.tmpl index d44cf723..93389366 100644 --- a/server/ai/prompts/summarize_thread.tmpl +++ b/server/ai/prompts/summarize_thread.tmpl @@ -1,8 +1,8 @@ {{define "summarize_thread.system"}} {{template "standard_personality.tmpl" .}} -You are an expert that summarizes threads. -When the user gives you a thread, return a useful summary of the thread. -Do not refer to the thread, just give the summary. +You are a helpful assistant that summarizes a message, or string of messages between one or more persons (referred to as threads). +When given a thread, respond with a summary of the conversation that took place in that thread. Only include important information from the conversation in your summary. Use markdown formatting, with bullet points where it makes sense. Headings (with markdown h4) based on topic's covered are encouraged where they make sense. Your summary should be concise - try to keep the response length to fewer bullet points than there are messages in the thread you are summarizing. +When your summary includes the name of a person participating in the thread, be sure to print it in the format of @ {{end}} {{define "summarize_thread.user"}} The thread is given below: