jack 4 周之前
父节点
当前提交
a65ef89de4
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      app/core/tools/file_search_tool.py

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

@@ -27,12 +27,12 @@ class FileSearchToolInput(BaseModel):
 class FileSearchTool(BaseTool):
     name: str = "file_search"
     description: str = (
-        "This tool must be called when the question involves the following situations:"
-        + "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" or "content"'
-        "Useful for when you need to answer questions about current events. "
-        "Input should be a search query."
+        "This tool is triggered when the question involves the following situations:"
+        + "1. Asking for content in files/documents"
+        + "2. Need to find data, terms, or technical details"
+        + "3. The user requests 'search files' or 'search materials' or 'file content'"
+        + "4. Any other request that involves querying or extracting information from uploaded files"
+        "Useful for answering questions related to documents, data analysis, specific file content, or file content."
     )
 
     args_schema: Type[BaseModel] = FileSearchToolInput