jack 1 week geleden
bovenliggende
commit
bcf1c18177
1 gewijzigde bestanden met toevoegingen van 2 en 1 verwijderingen
  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")
 class FileSearchToolInput(BaseModel):
     query: str = Field(
+        ...,
         description="query to look up in retrieval",
     )
 
@@ -28,7 +29,7 @@ class FileSearchTool(BaseTool):
     name: str = "file_search"
     description: str = (
         "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"
     )
     args_schema: Type[BaseModel] = FileSearchToolInput