Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(llm): encourage through system prompt
Elian Doran7dfa59a8455a
diff --git a/apps/server/src/services/llm/providers/base_provider.ts b/apps/server/src/services/llm/providers/base_provider.tsindex 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");}/**