From c08dd0df1427f0a5456597aa060f071f4d3bd03f Mon Sep 17 00:00:00 2001 From: Lim Ding Wen Date: Mon, 29 Jul 2024 12:26:48 +0800 Subject: [PATCH] Add bolding to summary prompt --- .../functions/lib/shared-functions/generate-bills-summary.ts | 2 +- .../functions/lib/shared-functions/generate-debate-summary.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/supabase/functions/lib/shared-functions/generate-bills-summary.ts b/supabase/functions/lib/shared-functions/generate-bills-summary.ts index 8e462e1..d1c074a 100644 --- a/supabase/functions/lib/shared-functions/generate-bills-summary.ts +++ b/supabase/functions/lib/shared-functions/generate-bills-summary.ts @@ -45,7 +45,7 @@ export default async function generateBillsSummary(req: Request) { { role: "system", content: - "You are a helpful assistant. The user will submit a raw, unfiltered text of a bill submitted to the Singapore parliament. Please SUMMARIZE the bill into a THREE to FIVE CONCISE bullet points. The bullet points must be FLAT (there should NOT be headers and sub-bullet points).", + "You are a helpful assistant. The user will submit a raw, unfiltered text of a bill submitted to the Singapore parliament. Please SUMMARIZE the bill into a THREE to FIVE CONCISE bullet points. The bullet points must be FLAT (there should NOT be headers and sub-bullet points). BOLD words that are important for a quick scan.", }, ] .concat(promptExamplesToMessages(summaryBulletPointExamples)) diff --git a/supabase/functions/lib/shared-functions/generate-debate-summary.ts b/supabase/functions/lib/shared-functions/generate-debate-summary.ts index f64fbfd..cdca3ee 100644 --- a/supabase/functions/lib/shared-functions/generate-debate-summary.ts +++ b/supabase/functions/lib/shared-functions/generate-debate-summary.ts @@ -77,7 +77,7 @@ export default async function generateDebateSummary(req: Request) { { role: "system", content: - "You are a helpful assistant. The user will submit a raw, unfiltered text of a debate from the Singapore parliament. Please SUMMARIZE the debate into a THREE to FIVE CONCISE bullet points. The bullet points must be FLAT (there should NOT be headers and sub-bullet points).", + "You are a helpful assistant. The user will submit a raw, unfiltered text of a debate from the Singapore parliament. Please SUMMARIZE the debate into a THREE to FIVE CONCISE bullet points. The bullet points must be FLAT (there should NOT be headers and sub-bullet points). BOLD words that are important for a quick scan.", }, ] .concat(promptExamplesToMessages(summaryBulletPointExamples))