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

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

@@ -20,6 +20,7 @@ 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="query to look up in retrieval",
         description="query to look up in retrieval",
     )
     )
 
 
@@ -28,7 +29,7 @@ class FileSearchTool(BaseTool):
     name: str = "file_search"
     name: str = "file_search"
     description: str = (
     description: str = (
         "Can be used to look up knowledge base or files content that was uploaded to this assistant."
         "Can be used to look up knowledge base or files content that was uploaded to this assistant."
-        + "If the user is retrieve specified content from the knowledge base or file content, that is often a good hint that information may be here."
+        # + "If the user is retrieve specified content from the knowledge base or file content, that is often a good hint that information may be here."
         + "Singleton operation: Strictly 1 invocation per API call"
         + "Singleton operation: Strictly 1 invocation per API call"
     )
     )
     args_schema: Type[BaseModel] = FileSearchToolInput
     args_schema: Type[BaseModel] = FileSearchToolInput