From bdf86a7aabb9946603a4cab5d81722ac097bc031 Mon Sep 17 00:00:00 2001 From: Gigi Date: Sat, 29 Mar 2025 19:27:01 +0000 Subject: [PATCH] feat: extract prompts and allow for conditional prompts --- prompts/default.md | 16 +++++++++------- summarize_transcripts.py | 3 +++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/prompts/default.md b/prompts/default.md index c794624..6fc8efd 100644 --- a/prompts/default.md +++ b/prompts/default.md @@ -1,14 +1,16 @@ Please provide a concise summary of the following transcript. -Focus on the main topics, key points, and any action items or decisions mentioned. +Focus on the main topics, key talking points, and any action items or decisions mentioned. Keep the summary short, clear, and well-structured. -Transcript: -{transcript} - -Summary: -{summary} +Extract the action items and list them as markdown-style checkbox items, like this: +``` Action items: - [ ] Item one - [ ] Item two -- [ ] ... \ No newline at end of file +- [ ] Item three +- [ ] ... +``` + +Transcript: +{transcript} diff --git a/summarize_transcripts.py b/summarize_transcripts.py index 141eae6..0c152ca 100755 --- a/summarize_transcripts.py +++ b/summarize_transcripts.py @@ -39,6 +39,9 @@ def process_transcript(transcript_text: str) -> str: } ]) + # Debug print + print("Response structure:", response) + # Extract the content from the response return response['message']['content'].strip()