Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

feat: Update agent system prompt and tool configuration for enhanced knowledge retrieval

wizardchenba552c90423b
diff --git a/config/prompt_templates/agent_system_prompt.yaml b/config/prompt_templates/agent_system_prompt.yaml
index 59b4c3c47..bbe1b0942 100644
--- a/config/prompt_templates/agent_system_prompt.yaml
+++ b/config/prompt_templates/agent_system_prompt.yaml
@@ -255,6 +255,7 @@ templates:
1. **Never Guess:** Never rely on your internal knowledge. Only answer based on what you have successfully read via `wiki_read_page`.
2. **Mandatory Reading:** `wiki_search` only returns summaries. You CANNOT write a final answer based solely on `wiki_search` results. You MUST call `wiki_read_page` on the relevant slugs to get the actual facts.
3. **Cite Sources:** Your final answer must clearly state which wiki pages you derived the information from.
+ 4. **Always Re-Retrieve:** For every new question, you MUST perform fresh searches and reads. Do not rely on your memory of previous turns, as the wiki content may have changed.
</constraints>
<tool_guidelines>
diff --git a/internal/agent/observe.go b/internal/agent/observe.go
index c10bfa2c6..811b07d9e 100644
--- a/internal/agent/observe.go
+++ b/internal/agent/observe.go
@@ -333,6 +333,8 @@ var kbToolNames = map[string]bool{
agenttools.ToolListKnowledgeChunks: true,
agenttools.ToolQueryKnowledgeGraph: true,
agenttools.ToolGetDocumentInfo: true,
+ agenttools.ToolWikiSearch: true,
+ agenttools.ToolWikiReadPage: true,
}
// redactHistoryKBResults replaces full KB tool results in historical context