Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Ask: the prompt calls the found parts of meetings "your meetings", never sources, so answers no longer say "the provided sources"

christianmatddce9c7506bc
diff --git a/app/src/main/library/prompt.ts b/app/src/main/library/prompt.ts
index dee5300b..c4a282eb 100644
--- a/app/src/main/library/prompt.ts
+++ b/app/src/main/library/prompt.ts
@@ -17,15 +17,16 @@ export const libraryHead = [
'',
'How to answer:',
'- Answer in the language the question is written in.',
- '- Use only what is in the sources. Never make anything up.',
+ '- Use only what is in these parts of their meetings. Never make anything up.',
+ '- Talk about them the way a colleague would: "your meetings", or a meeting by its name. Never "the provided" anything.',
'- Asked how something went or what someone thought, give your judgement from what was said: the tone, the outcome, what was agreed, any concerns, the next steps. Cite what it rests on.',
- '- Say the sources don\'t hold the answer (in a sentence, with no numbers) only when nothing in them is about the question.',
- '- After each fact, put the number of the source it came from in square brackets, like [2]. Use only the numbers given.',
+ '- Say their meetings don\'t hold the answer (in a sentence, with no numbers) only when nothing in them is about the question.',
+ '- After each fact, put the number of the part it came from in square brackets, like [2]. Use only the numbers given.',
'- Be brief and direct: a sentence or two, or short "- " bullets for a list. **Bold** only the key facts. No headings, no introduction, no closing line.',
peopleRule.replace('the person these notes are for', 'the person asking'),
'- When asked to write something (an email, a message, a summary), write it in full, ready to use.',
'',
- '<sources>',
+ '<meetings>',
'',
].join('\n')
@@ -61,11 +62,11 @@ export type History = Array<{ question: string; answer: string }>
export function libraryPrompt(i: { items: Item[]; question: string; history: History; now: number; spelling: string }): string {
return [
libraryHead + (i.items.length ? sourcesText(i.items) : 'No meetings matched this question.'),
- '</sources>',
+ '</meetings>',
'',
`Today is ${day(i.now)}.`,
...(i.spelling ? [i.spelling] : []),
- 'Answer the question below from the sources, with their numbers like [1].',
+ 'Answer the question below from these meetings, with the numbers of the parts like [1].',
...(i.history.length ? ['', 'Earlier in this chat:', ...i.history.flatMap((h) => ['<asked>', h.question, '</asked>', '<answered>', uncited(h.answer), '</answered>'])] : []),
'',
'<question>',
diff --git a/app/src/main/notes/fake.ts b/app/src/main/notes/fake.ts
index 08f08087..f33affe8 100644
--- a/app/src/main/notes/fake.ts
+++ b/app/src/main/notes/fake.ts
@@ -19,7 +19,7 @@ export class FakeEngine implements Engine {
return this.stream(JSON.stringify({ folder: named?.name ?? null, confidence: named ? 0.95 : 0.2 }), onToken, signal)
}
// a question across meetings: like a small model, the first two meetings found with every part of each cited
- if (prompt.includes('</sources>')) {
+ if (prompt.includes('</meetings>')) {
const meetings: Array<{ title: string; ns: number[] }> = []
for (const m of prompt.matchAll(/^Meeting: (.+?) · .*$|^\[(\d+)\] /gm)) {
if (m[1]) meetings.push({ title: m[1], ns: [] }); else meetings.at(-1)?.ns.push(Number(m[2]))
diff --git a/app/test/fakeEmbed.test.ts b/app/test/fakeEmbed.test.ts
index 2c5f238e..1b22ba99 100644
--- a/app/test/fakeEmbed.test.ts
+++ b/app/test/fakeEmbed.test.ts
@@ -23,12 +23,12 @@ describe('the fake notes model, asked across meetings', () => {
const e = new FakeEngine()
process.env.YOGURT_FAKE_LLM_MS = '0'
const ask = (content: string) => e.chat({ messages: [{ role: 'user', content }] }, () => {})
- const sources = '…<sources>\nMeeting: Pricing call · Tuesday\n[1] 0:04 into the meeting\nx\n\n[2] 0:09 into the meeting\nz\n\nMeeting: Weekly sync · Monday\n[3] the meeting notes\ny\n</sources>\n<question>\n'
+ const sources = '…<meetings>\nMeeting: Pricing call · Tuesday\n[1] 0:04 into the meeting\nx\n\n[2] 0:09 into the meeting\nz\n\nMeeting: Weekly sync · Monday\n[3] the meeting notes\ny\n</meetings>\n<question>\n'
// like a small model: every part of a meeting cited after its line
expect(await ask(sources + 'q\n</question>'))
.toBe('Here is what came up:\n- In **Pricing call**, it was discussed [1][2].\n- In **Weekly sync**, it was discussed [3].')
// and with nothing to say, every source cited anyway
expect(await ask(sources + 'What about politics?\n</question>')).toBe('Nothing in your meetings is about that [1][2][3].')
- expect(await ask('<sources>\nNo meetings matched this question.\n</sources>\n<question>\nq\n</question>')).toBe("I couldn't find that in your meetings.")
+ expect(await ask('<meetings>\nNo meetings matched this question.\n</meetings>\n<question>\nq\n</question>')).toBe("I couldn't find that in your meetings.")
})
})
diff --git a/app/test/libraryPrompt.test.ts b/app/test/libraryPrompt.test.ts
index dc1c799c..079a655b 100644
--- a/app/test/libraryPrompt.test.ts
+++ b/app/test/libraryPrompt.test.ts
@@ -25,6 +25,12 @@ describe('the prompt for chat across meetings', () => {
expect(libraryHead).toContain('only when nothing in them is about the question')
expect(libraryHead).toContain('Never make anything up.')
})
+ it('never calls the meetings "sources", so answers say "your meetings" instead of "the provided sources"', () => {
+ const p = libraryPrompt({ items, question: 'Who is on my team?', history: [{ question: 'q', answer: 'a [1]' }], now: at, spelling: '' })
+ expect(p).not.toMatch(/source/i)
+ expect(libraryPrompt({ items: [], question: 'q', history: [], now: at, spelling: '' })).not.toMatch(/source/i)
+ expect(libraryHead).toContain('"your meetings"')
+ })
it('heads each meeting with its title and day, and labels each source with where in it (or that it is the notes)', () => {
expect(meetingLabel(items[0])).toBe('Meeting: Pricing call · Tuesday, November 3, 2026')
expect(sourceLabel(items[0], 1)).toBe('[1] 12:04 into the meeting')