From 9b1a4382202c18694dc04ef8717b772486023ca6 Mon Sep 17 00:00:00 2001 From: Arjun <6592213+arkml@users.noreply.github.com> Date: Mon, 30 Mar 2026 17:30:39 +0530 Subject: [PATCH] minor changes to meeting summary --- apps/x/apps/renderer/src/App.tsx | 2 +- apps/x/apps/renderer/src/hooks/useMeetingTranscription.ts | 2 +- apps/x/packages/core/src/knowledge/summarize_meeting.ts | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/apps/x/apps/renderer/src/App.tsx b/apps/x/apps/renderer/src/App.tsx index f836ba22..b2bc9d7f 100644 --- a/apps/x/apps/renderer/src/App.tsx +++ b/apps/x/apps/renderer/src/App.tsx @@ -3470,7 +3470,7 @@ function App() { // Prepend meeting notes above the existing transcript block const { raw: fm, body } = splitFrontmatter(fileContent) const fmTitleMatch = fileContent.match(/^title:\s*(.+)$/m) - const noteTitle = fmTitleMatch?.[1]?.trim() || 'Meeting note' + const noteTitle = fmTitleMatch?.[1]?.trim() || 'Meeting Notes' const cleanedNotes = notes.replace(/^#{1,2}\s+.+\n+/, '') // Extract the existing transcript block and preserve it as-is const transcriptBlockMatch = body.match(/(```transcript\n[\s\S]*?\n```)/) diff --git a/apps/x/apps/renderer/src/hooks/useMeetingTranscription.ts b/apps/x/apps/renderer/src/hooks/useMeetingTranscription.ts index 1d114c14..50d89a57 100644 --- a/apps/x/apps/renderer/src/hooks/useMeetingTranscription.ts +++ b/apps/x/apps/renderer/src/hooks/useMeetingTranscription.ts @@ -60,7 +60,7 @@ export interface CalendarEventMeta { } function formatTranscript(entries: TranscriptEntry[], date: string, calendarEvent?: CalendarEventMeta): string { - const noteTitle = calendarEvent?.summary || 'Meeting note'; + const noteTitle = calendarEvent?.summary || 'Meeting Notes'; const lines = [ '---', 'type: meeting', diff --git a/apps/x/packages/core/src/knowledge/summarize_meeting.ts b/apps/x/packages/core/src/knowledge/summarize_meeting.ts index 534b6655..30e3c5d4 100644 --- a/apps/x/packages/core/src/knowledge/summarize_meeting.ts +++ b/apps/x/packages/core/src/knowledge/summarize_meeting.ts @@ -15,7 +15,8 @@ const SYSTEM_PROMPT = `You are a meeting notes assistant. Given a raw meeting tr ## Calendar matching You will be given the transcript (with a timestamp of when recording started) and recent calendar events with their titles, times, and attendees. If a calendar event clearly matches this meeting (overlapping time + content aligns), then: - Do NOT output a title or heading — the title is already set by the caller. -- Replace generic speaker labels ("Speaker 0", "Speaker 1", "System audio") with actual attendee names, but ONLY if you have HIGH CONFIDENCE about which speaker is which based on the discussion content. If unsure, use "They" instead of "Speaker 0" etc. +- ONLY use names from the calendar event attendee list. Do NOT introduce names that are not in the attendee list — any unrecognized names in the transcript are transcription errors. +- Replace generic speaker labels ("Speaker 0", "Speaker 1", "System audio") with actual attendee names from the list, but ONLY if you have HIGH CONFIDENCE about which speaker is which based on the discussion content. If unsure, use "They" instead of "Speaker 0" etc. - "You" in the transcript is the local user — if the calendar event has an organizer or you can identify who "You" is from context, use their name. If no calendar event matches with high confidence, or if no calendar events are provided, use "They" for all non-"You" speakers.