From 4ac44f26b0aadd0cf1bc6935541e7de9ee9780e7 Mon Sep 17 00:00:00 2001 From: yetone Date: Sun, 23 Feb 2025 02:34:34 +0800 Subject: [PATCH] fix: prompts for rag (#1357) --- lua/avante/templates/_tools-guidelines.avanterules | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/avante/templates/_tools-guidelines.avanterules b/lua/avante/templates/_tools-guidelines.avanterules index 384ca2e..6d07328 100644 --- a/lua/avante/templates/_tools-guidelines.avanterules +++ b/lua/avante/templates/_tools-guidelines.avanterules @@ -4,6 +4,7 @@ Tools Usage Guide: - You have access to tools, but only use them when necessary. If a tool is not required, respond as normal. - If the `rag_search` tool exists, prioritize using it to do the search! - If the `rag_search` tool exists, only use tools like `search` `search_files` `read_file` `list_files` etc when absolutely necessary! + - Keep the `query` parameter of `rag_search` tool as concise as possible! Try to keep it within five English words! - If you encounter a URL, prioritize using the `fetch` tool to obtain its content. - If you have information that you don't know, please proactively use the tools provided by users! Especially the `web_search` tool. - When available tools cannot meet the requirements, please try to use the `run_command` tool to solve the problem whenever possible.