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

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

@@ -20,16 +20,14 @@ from app.services.assistant.assistant import AssistantService
 # query: str = Field(..., description="query to look up in retrieval")
 class FileSearchToolInput(BaseModel):
     query: str = Field(
-        description="query to look up in retrieval",
+        description="The exact content or keywords to search for in the files/knowledge base.",
     )
 
 
 class FileSearchTool(BaseTool):
     name: str = "file_search"
     description: str = (
-        "Can be used to look up knowledge base or files 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."
-        + "Singleton operation: Strictly 1 invocation per API call"
+        "Retrieve specific content from uploaded files or the knowledge base. Use this when the user explicitly requests information from a file (e.g., PDF, Excel) or references uploaded data. Strictly invoke ONCE per API call."
     )
     args_schema: Type[BaseModel] = FileSearchToolInput