From 7dfa59a8455a6602fd41236728ec3dcc58012932 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Fri, 3 Apr 2026 19:37:03 +0300 Subject: [PATCH] feat(llm): encourage through system prompt --- apps/server/src/services/llm/providers/base_provider.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/server/src/services/llm/providers/base_provider.ts b/apps/server/src/services/llm/providers/base_provider.ts index fd889ccabe..b2bb779c34 100644 --- a/apps/server/src/services/llm/providers/base_provider.ts +++ b/apps/server/src/services/llm/providers/base_provider.ts @@ -36,7 +36,13 @@ function buildNoteHint(noteId: string): string | null { } const metadata = yaml.dump(getNoteMeta(note), { lineWidth: -1 }); - return `The user is currently viewing the following note:\n${metadata}`; + return [ + "The user is currently viewing the following note.", + "Use this metadata (including contentPreview) to answer questions about the note without calling tools when possible.", + "Use get_note_content only if the preview is insufficient.", + "", + metadata + ].join("\n"); } /**