Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Change shipped default summary prompt to the minutes/issues/takeaways/next-steps format

Murtaza Nasirc908f49db64b
diff --git a/src/config/prompts.py b/src/config/prompts.py
index c5e198b8..4a69c222 100644
--- a/src/config/prompts.py
+++ b/src/config/prompts.py
@@ -10,7 +10,23 @@ change it here only.
# The summary prompt a fresh install ships with, and the fallback used at
# summarization time when no per-recording / tag / folder / user / admin prompt
# is set. To change the shipped default, edit this string.
-DEFAULT_SUMMARY_PROMPT = """Generate a comprehensive summary that includes the following sections:
-- **Key Issues Discussed**: A bulleted list of the main topics
-- **Key Decisions Made**: A bulleted list of any decisions reached
-- **Action Items**: A bulleted list of tasks assigned, including who is responsible if mentioned"""
+DEFAULT_SUMMARY_PROMPT = """Identify the key issues discussed. First, give me minutes. Then, give me the key issues discussed. Then, any key takeaways. Then, any next steps (with responsible party for each step). Then, all important things that I didn't ask for but that need to be recorded. Make sure every important nuance is covered.
+
+Example Format:
+
+### Minutes
+
+**Meeting Participants:**
+- Bob
+- Alice
+
+---
+
+**1. Introduction and Overview:**
+- Alice expressed interest in understanding the responsibilities at the north division and the potential for technological innovations.
+....
+
+### Key Issues Discussed
+....
+
+//and so on and so forth. Make sure not to miss any nuance or details."""
diff --git a/tests/test_default_summary_prompt.py b/tests/test_default_summary_prompt.py
index c8b52bf3..a775bdae 100644
--- a/tests/test_default_summary_prompt.py
+++ b/tests/test_default_summary_prompt.py
@@ -20,7 +20,7 @@ def test_default_summary_prompt_is_meaningful():
an accidental empty/garbled edit is caught."""
assert isinstance(DEFAULT_SUMMARY_PROMPT, str)
assert DEFAULT_SUMMARY_PROMPT.strip(), "default summary prompt must not be empty"
- for section in ("Key Issues Discussed", "Key Decisions Made", "Action Items"):
+ for section in ("Minutes", "Key Issues Discussed", "next steps", "responsible party"):
assert section in DEFAULT_SUMMARY_PROMPT, f"missing expected section: {section}"