Skip to content

Commit 3d0ddd6

Browse files
authored
changed to system instructions (#1296)
1 parent f655a3e commit 3d0ddd6

File tree

6 files changed

+58
-23
lines changed

6 files changed

+58
-23
lines changed

apps/desktop/src/components/editor-area/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,8 @@ export function useEnhanceMutation({
368368

369369
const participants = await dbCommands.sessionListParticipants(sessionId);
370370

371+
let customInstruction = selectedTemplate?.description;
372+
371373
const systemMessage = await templateCommands.render(
372374
"enhance.system",
373375
{
@@ -376,7 +378,7 @@ export function useEnhanceMutation({
376378
// Pass userHeaders when using H1 headers, templateInfo otherwise
377379
...(shouldUseH1Headers
378380
? { userHeaders: h1Headers }
379-
: { templateInfo: selectedTemplate }),
381+
: { templateInfo: selectedTemplate, customInstruction: customInstruction }),
380382
},
381383
);
382384

apps/desktop/src/components/settings/views/template.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ export default function TemplateEditor({
224224

225225
<div className="flex flex-col gap-1">
226226
<h2 className="text-sm font-medium">
227-
<Trans>Description</Trans>
227+
<Trans>System Instruction</Trans>
228228
</h2>
229229
<Textarea
230230
disabled={isReadOnly}
231231
value={template.description}
232232
onChange={handleChangeDescription}
233-
placeholder={t`Add a description...`}
233+
placeholder={t`Add a system instruction...`}
234234
className="h-20 resize-none focus-visible:ring-0 focus-visible:ring-offset-0"
235235
/>
236236
</div>

apps/desktop/src/locales/en/messages.po

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,12 @@ msgid "Access multiple AI models through OpenRouter with your API key"
329329
msgstr "Access multiple AI models through OpenRouter with your API key"
330330

331331
#: src/components/settings/views/template.tsx:233
332-
msgid "Add a description..."
333-
msgstr "Add a description..."
332+
#~ msgid "Add a description..."
333+
#~ msgstr "Add a description..."
334+
335+
#: src/components/settings/views/template.tsx:233
336+
msgid "Add a system instruction..."
337+
msgstr "Add a system instruction..."
334338

335339
#: src/components/welcome-modal/language-selection-view.tsx:171
336340
#~ msgid "Add languages you speak to improve transcription accuracy"
@@ -683,8 +687,8 @@ msgstr "Describe the content and purpose of this section"
683687
#~ msgstr "Describe the issue"
684688

685689
#: src/components/settings/views/template.tsx:227
686-
msgid "Description"
687-
msgstr "Description"
690+
#~ msgid "Description"
691+
#~ msgstr "Description"
688692

689693
#: src/components/editor-area/note-header/listen-button.tsx:349
690694
#~ msgid "Did you get consent from everyone in the meeting?"
@@ -1422,6 +1426,10 @@ msgstr "Stop"
14221426
msgid "System Audio Access"
14231427
msgstr "System Audio Access"
14241428

1429+
#: src/components/settings/views/template.tsx:227
1430+
msgid "System Instruction"
1431+
msgstr "System Instruction"
1432+
14251433
#: src/components/left-sidebar/top-area/settings-button.tsx:114
14261434
msgid "Talk to Founders"
14271435
msgstr "Talk to Founders"

apps/desktop/src/locales/ko/messages.po

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,11 @@ msgid "Access multiple AI models through OpenRouter with your API key"
329329
msgstr ""
330330

331331
#: src/components/settings/views/template.tsx:233
332-
msgid "Add a description..."
332+
#~ msgid "Add a description..."
333+
#~ msgstr ""
334+
335+
#: src/components/settings/views/template.tsx:233
336+
msgid "Add a system instruction..."
333337
msgstr ""
334338

335339
#: src/components/welcome-modal/language-selection-view.tsx:171
@@ -683,8 +687,8 @@ msgstr ""
683687
#~ msgstr ""
684688

685689
#: src/components/settings/views/template.tsx:227
686-
msgid "Description"
687-
msgstr ""
690+
#~ msgid "Description"
691+
#~ msgstr ""
688692

689693
#: src/components/editor-area/note-header/listen-button.tsx:349
690694
#~ msgid "Did you get consent from everyone in the meeting?"
@@ -1422,6 +1426,10 @@ msgstr ""
14221426
msgid "System Audio Access"
14231427
msgstr ""
14241428

1429+
#: src/components/settings/views/template.tsx:227
1430+
msgid "System Instruction"
1431+
msgstr ""
1432+
14251433
#: src/components/left-sidebar/top-area/settings-button.tsx:114
14261434
msgid "Talk to Founders"
14271435
msgstr ""

apps/desktop/src/utils/default-templates.ts

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
55
id: "default-meeting-notes",
66
user_id: "system",
77
title: "📝 General Meeting",
8-
description: "Comprehensive template for meeting notes with agenda, discussion points, and action items",
8+
description:
9+
"Capture attendee names and meeting purpose, list agenda items covered, document key discussion points and decisions, assign specific action items with owners and deadlines.",
910
sections: [
1011
{ title: "Meeting Details", description: "Date, time, attendees, and meeting purpose" },
1112
{ title: "Agenda", description: "Topics to be discussed and objectives" },
@@ -19,7 +20,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
1920
id: "default-standup",
2021
user_id: "system",
2122
title: "🌞 Daily Standup",
22-
description: "Template for daily standup meetings with progress updates and blockers",
23+
description:
24+
"List yesterday's completed tasks, specify today's work priorities, identify blockers with potential solutions, and note sprint goals and important updates.",
2325
sections: [
2426
{ title: "Yesterday", description: "What was accomplished yesterday" },
2527
{ title: "Today", description: "What will be worked on today" },
@@ -33,7 +35,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
3335
id: "default-weekly-review",
3436
user_id: "system",
3537
title: "📅 Weekly Review",
36-
description: "Template for weekly reflection and planning",
38+
description:
39+
"Document specific achievements with metrics, describe challenges and solutions used, extract key lessons learned, set measurable goals for next week, and identify improvement areas.",
3740
sections: [
3841
{ title: "Achievements", description: "What was accomplished this week" },
3942
{ title: "Challenges", description: "Obstacles faced and how they were handled" },
@@ -47,7 +50,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
4750
id: "default-one-on-one",
4851
user_id: "system",
4952
title: "👥 1-on-1 Meeting",
50-
description: "Template for one-on-one meetings with team members",
53+
description:
54+
"Record emotional check-ins and overall well-being, update on recent work progress, identify specific challenges and blockers, discuss career development opportunities and team feedback, then list concrete action items.",
5155
sections: [
5256
{ title: "Check-in", description: "How are things going overall?" },
5357
{ title: "Recent Work", description: "Updates on current projects and tasks" },
@@ -62,7 +66,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
6266
id: "default-user-interview",
6367
user_id: "system",
6468
title: "👤 User Interview",
65-
description: "Template for conducting user research and feedback sessions",
69+
description:
70+
"Note participant background and role, define research goals clearly, document current user behavior workflows, capture exact quotes about pain points, record feature reactions, and synthesize key insights.",
6671
sections: [
6772
{ title: "Participant Info", description: "Name, role, and background details" },
6873
{ title: "Research Goals", description: "What we want to learn from this session" },
@@ -77,7 +82,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
7782
id: "default-b2b-discovery",
7883
user_id: "system",
7984
title: "🔍 B2B Customer: Discovery",
80-
description: "Template for B2B sales discovery calls and needs assessment",
85+
description:
86+
"Document company size and industry context, identify specific business challenges with cost impact, note existing solutions and limitations, map decision-making process and stakeholders, list requirements and success criteria.",
8187
sections: [
8288
{ title: "Company Background", description: "Organization size, industry, and context" },
8389
{ title: "Current Challenges", description: "Problems they are trying to solve" },
@@ -92,7 +98,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
9298
id: "default-b2b-pilot",
9399
user_id: "system",
94100
title: "🚀 B2B Customer: Pilot",
95-
description: "Template for B2B pilot program meetings and progress reviews",
101+
description:
102+
"Define pilot scope and success metrics, track progress against milestones, capture user feedback and adoption patterns, document challenges and solutions, quantify value delivered with ROI, plan next phase expansion.",
96103
sections: [
97104
{ title: "Pilot Overview", description: "Goals, scope, and success metrics" },
98105
{ title: "Progress Update", description: "Current status and milestones achieved" },
@@ -107,7 +114,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
107114
id: "default-job-interview",
108115
user_id: "system",
109116
title: "💼 Job Interview",
110-
description: "Template for conducting job interviews and candidate assessment",
117+
description:
118+
"Record candidate profile and resume highlights, assess technical skills with specific examples, review past experience and projects, evaluate cultural fit and team alignment, note their questions and responses, provide overall hiring recommendation.",
111119
sections: [
112120
{ title: "Candidate Profile", description: "Name, role, and resume highlights" },
113121
{ title: "Technical Assessment", description: "Skills evaluation and problem-solving" },
@@ -122,7 +130,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
122130
id: "default-patient-visit",
123131
user_id: "system",
124132
title: "🏥 Patient Visit",
125-
description: "Template for healthcare patient visits and medical consultations",
133+
description:
134+
"Document patient demographics and basic info, record chief complaint and primary concerns, note symptoms with timing and severity, conduct clinical assessment with objective findings, create treatment plan with specific medications, schedule follow-up care.",
126135
sections: [
127136
{ title: "Patient Information", description: "Name, age, and basic demographics" },
128137
{ title: "Chief Complaint", description: "Primary reason for visit" },
@@ -137,7 +146,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
137146
id: "default-client-meeting-legal",
138147
user_id: "system",
139148
title: "🏛️ Client Meeting (Legal)",
140-
description: "Template for legal client meetings and case discussions",
149+
description:
150+
"Record client contact details and case reference, summarize current case status and key issues, outline legal strategy and recommended actions, list required documents and evidence, note important dates and deadlines, define next action items.",
141151
sections: [
142152
{ title: "Client Details", description: "Name, contact info, and case reference" },
143153
{ title: "Case Summary", description: "Current status and key issues" },
@@ -152,7 +162,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
152162
id: "default-therapy-session",
153163
user_id: "system",
154164
title: "💚 Therapy Session",
155-
description: "Template for therapy and counseling sessions",
165+
description:
166+
"Note session duration and goals, assess client's current emotional state, document key topics and concerns discussed, capture insights and breakthrough moments, record coping strategies practiced, assign specific homework tasks.",
156167
sections: [
157168
{ title: "Session Overview", description: "Date, duration, and session goals" },
158169
{ title: "Current State", description: "How the client is feeling today" },
@@ -167,7 +178,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
167178
id: "default-brainstorming",
168179
user_id: "system",
169180
title: "💡 Brainstorming Session",
170-
description: "Template for creative brainstorming and ideation sessions",
181+
description:
182+
"Define the challenge and objectives clearly, capture all ideas generated without judgment, identify promising concepts worth exploring, note constraints and limitations, outline development steps for selected ideas, assign action items with owners.",
171183
sections: [
172184
{ title: "Challenge", description: "Problem statement and objectives" },
173185
{ title: "Ideas Generated", description: "All concepts and suggestions" },
@@ -182,7 +194,8 @@ export const DEFAULT_TEMPLATES: Template[] = [
182194
id: "default-coffee-chat",
183195
user_id: "system",
184196
title: "☕ Coffee Chat",
185-
description: "Template for informal networking and relationship building meetings",
197+
description:
198+
"Record person's name, role, and connection method, document their professional background and current focus, identify common interests and shared connections, capture valuable insights exchanged, explore potential collaboration opportunities, define follow-up actions.",
186199
sections: [
187200
{ title: "Person Info", description: "Name, role, and how you connected" },
188201
{ title: "Background", description: "Their experience and current focus" },

crates/template/assets/enhance.system.jinja

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ You will be given multiple inputs from the user. Below are useful information th
8484
- Preserve essential details; avoid excessive abstraction. Ensure content remains concrete and specific.
8585
- Pay close attention to emphasized text in raw notes. Users highlight information using four styles: bold(**text**), italic(_text_), underline(<u>text</u>), strikethrough(~~text~~).
8686
- Recognize # headings in raw notes—these indicate highly important topics that the user wants to retain no matter what.
87+
{% if customInstruction %}
88+
- Below is the custom instruction that the user gave. THIS IS THE MOST IMPORTANT RULE. If this rule conflicts with other rules, you should follow this rule:
89+
{{ customInstruction }}
90+
{% endif %}
8791
- Below is the guideline on how many changes you should make to the original raw note, please pay close atteion:
8892

8993
{%- if specificity == 1 %}

0 commit comments

Comments
 (0)