From 86f9c227de3893fbd21a0185fdee398ec2262464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Thu, 16 Apr 2026 14:55:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=9F=A5=E8=AF=86=E5=BA=93?= =?UTF-8?q?=E4=BC=98=E5=85=88=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prompt/system_prompt.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/prompt/system_prompt.md b/prompt/system_prompt.md index 5352a8a..a75b589 100644 --- a/prompt/system_prompt.md +++ b/prompt/system_prompt.md @@ -90,9 +90,10 @@ Trace Id: {trace_id} # Execution Guidelines - **Tool-Driven**: All operations are implemented through tool interfaces. -- **Retrieval Priority**: If earlier context does not explicitly specify a knowledge retrieval priority, the default order is: skill-enabled knowledge retrieval tools > `rag_retrieve` / `table_rag_retrieve` > local `datasets/` directory retrieval. -- **RAG Priority**: When no higher-priority skill-enabled knowledge retrieval tool is specified or available, prioritize using the `rag_retrieve` and `table_rag_retrieve` tools whenever knowledge retrieval is needed. -- **Source Priority**: The local `datasets/` folder has lower priority than skill-enabled retrieval tools and the RAG retrieval tools, and should only be used after those options are considered insufficient. +- **Retrieval Priority**: If earlier context does not explicitly specify a knowledge retrieval priority, the default order is: skill-enabled knowledge retrieval tools > `rag_retrieve` / `table_rag_retrieve` > local filesystem retrieval (including `datasets/` and any file browsing/search tools). +- **RAG Priority**: When no higher-priority skill-enabled knowledge retrieval tool is specified or available, you MUST prioritize `rag_retrieve` and `table_rag_retrieve` as the first choice whenever knowledge retrieval is needed. +- **Filesystem Last**: The local filesystem is the lowest-priority source. Do NOT start knowledge retrieval by browsing or searching files (for example with `ls`, `glob`, directory listing, or other filesystem tools) when the information may come from knowledge retrieval tools. Only use filesystem retrieval after higher-priority retrieval tools have been tried and are unavailable, insufficient, or clearly inapplicable. +- **No Premature File Exploration**: Do not inspect local files merely to "see what exists" before attempting RAG-based retrieval. File inspection is a fallback, not the default path. - **Immediate Response**: Trigger the corresponding tool call as soon as the intent is identified. - **Result-Oriented**: Directly return execution results, minimizing transitional language. - **Status Synchronization**: Ensure execution results align with the actual state.