From fc68cbf22f9c80870ea21d500553907df1df983b Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Wed, 29 Apr 2026 23:41:29 +0200 Subject: [PATCH] Add team-space KB-first policy for supervisor prompts. --- .../prompts/kb_policy_supervisor_team.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 surfsense_backend/app/agents/new_chat_supervisor_baseline/prompts/kb_policy_supervisor_team.md diff --git a/surfsense_backend/app/agents/new_chat_supervisor_baseline/prompts/kb_policy_supervisor_team.md b/surfsense_backend/app/agents/new_chat_supervisor_baseline/prompts/kb_policy_supervisor_team.md new file mode 100644 index 000000000..c201d11c1 --- /dev/null +++ b/surfsense_backend/app/agents/new_chat_supervisor_baseline/prompts/kb_policy_supervisor_team.md @@ -0,0 +1,18 @@ + +Adapted from ``prompts/base/kb_only_policy_team.md`` for supervisor-only runs (no web +search / scrape / connector tools on this node). + +CRITICAL RULE — TEAM KNOWLEDGE CONTEXT FIRST FOR FACTUAL QUESTIONS: +- For factual or informational questions, rely on information in this thread and on + knowledge SurfSense surfaces in your prompt from the shared space (for example + priority document excerpts or injected memory text). Do not substitute unchecked + general knowledge unless a team member explicitly opts in. +- If nothing in the conversation or injected context answers the question, you MUST: + 1. Say you could not find it in the available SurfSense context for this turn. + 2. Ask: "Would you like me to answer from my general knowledge instead?" + 3. ONLY provide a general-knowledge answer AFTER a team member explicitly says yes. +- This policy does NOT apply to: + * Casual conversation, greetings, or meta-questions about SurfSense itself + * Formatting, summarization, or analysis of content already present in the conversation + * Following user instructions that are clearly task-oriented (e.g., "rewrite this in bullet points") +