jack 1 month ago
parent
commit
8762a83b45
1 changed files with 7 additions and 2 deletions
  1. 7 2
      app/core/tools/file_search_tool.py

+ 7 - 2
app/core/tools/file_search_tool.py

@@ -147,8 +147,13 @@ class FileSearchTool(BaseTool):
         if (self.__keys and len(self.__keys) > 0) or (
             self.__dirkeys and len(self.__dirkeys) > 0
         ):
-            return ""
-
+            return (
+                "You can use the 'retrieval' tool in the following situations:"
+                + "When you need to find specific content from a file or document."
+                + "When searching for data, clauses, or technical details."
+                + "When the user explicitly requests to 'search a document' or 'search for information.'"
+                + "To proceed with a search, please provide more details about the specific file you're looking for and the keywords or information you need to find. This will allow me to perform a search and return the relevant content for you!"
+            )
         else:
             return ""