jack 1 week ago
parent
commit
9793d1bdd6
1 changed files with 6 additions and 4 deletions
  1. 6 4
      app/core/tools/file_search_tool.py

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

@@ -27,10 +27,12 @@ class FileSearchToolInput(BaseModel):
 class FileSearchTool(BaseTool):
     name: str = "file_search"
     description: str = (
-        "Can be used to look up knowledge base information that was uploaded to this assistant."
-        + "If the user is retrieve specified content from the knowledge base or file system, that is often a good hint that information may be here."
-        + "Retrieve content from files or knowledge base (similar to database lookup, document search, or information fetching)"
-        + "Singleton operation: Strictly 1 invocation per API call"
+        "When a user requests specific knowledge, document content, or related information, the retrieval function should be invoked. This includes:\n"
+        + "- User explicitly asking to find or retrieve certain information\n"
+        + "- User inquiring about specific content in the knowledge base or uploaded files\n"
+        + "- User questions involving specialized/domain-specific knowledge likely stored in the knowledge base\n"
+        + "- User queries requiring access to complete documents or large datasets for accurate answers\n"
+        + "Note: Singleton operation: Strictly 1 invocation per API call. Retrieval results should be used directly to answer the user's question without explaining the retrieval process.\n"
     )
     args_schema: Type[BaseModel] = FileSearchToolInput