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

Improving thread summarization prompt #216

Merged
merged 1 commit into from
Jul 8, 2024
Merged
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
6 changes: 3 additions & 3 deletions server/ai/prompts/summarize_thread.tmpl
Original file line number Diff line number Diff line change
@@ -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 @<username>
{{end}}
{{define "summarize_thread.user"}}
The thread is given below:
Expand Down