jack 3 weeks ago
parent
commit
169cee874f
1 changed files with 6 additions and 6 deletions
  1. 6 6
      app/core/tools/file_search_tool.py

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

@@ -30,13 +30,8 @@ class FileSearchToolInput(BaseModel):
 
 class FileSearchTool(BaseTool):
     name: str = "file_search"
-    """
-    description: str = (
-        "## 工具说明:这里是用户上传的文件汇总成知识库,可以根据用户输入的问题从文件知识库中检索相关的内容。## 注意:仅允许每次调用一次。"
-    )
-
-    """
     description: str = (
+        "Note: This tool should be used when asking about specific content within files."
         "FileSearch Tool Specification"
         + "Functionality:"
         + "A specialized knowledge retrieval system that interfaces with user-uploaded document repositories. Implements semantic search algorithms to surface relevant content segments in response to natural language queries."
@@ -53,7 +48,12 @@ class FileSearchTool(BaseTool):
         + "}"
         + "]"
     )
+    """
+    description: str = (
+        "## 工具说明:这里是用户上传的文件汇总成知识库,可以根据用户输入的问题从文件知识库中检索相关的内容。## 注意:仅允许每次调用一次。"
+    )
 
+    """
     args_schema: Type[BaseModel] = FileSearchToolInput
 
     def __init__(self) -> None: