jack 1 month ago
parent
commit
d0ee4c57ea
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/core/tools/file_search_tool.py

+ 4 - 4
app/core/tools/file_search_tool.py

@@ -28,9 +28,9 @@ class FileSearchTool(BaseTool):
     name: str = "file_search"
     description: str = (
         "This tool must be called when the question involves the following situations:"
-        + " - Asking for specific content in files/documents"
-        + " - Need to find data, terms, or technical details"
-        + ' - The user explicitly requests "search files" or "search materials"'
+        + "1. Asking for specific content in files/documents"
+        + "2.Need to find data, terms, or technical details"
+        + ' 3.The user explicitly requests "search files" or "search materials"'
         "Useful for when you need to answer questions about current events. "
         "Input should be a search query."
     )
@@ -148,7 +148,7 @@ class FileSearchTool(BaseTool):
         if (self.__keys and len(self.__keys) > 0) or (
             self.__dirkeys and len(self.__dirkeys) > 0
         ):
-            return 'You can use the "retrieval" tool to search for relevant context whenever the need for search or information retrieval is mentioned.'
+            return 'plase you can use the "retrieval" tool to search for relevant context whenever the need for search or information retrieval is mentioned. plase'
         else:
             return ""