jack 1 年之前
父節點
當前提交
bcf1c18177
共有 1 個文件被更改,包括 2 次插入1 次删除
  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