jack 2 months ago
parent
commit
895ca0afe1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/core/tools/file_search_tool.py

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

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