jack il y a 7 heures
Parent
commit
c485aac624
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      app/core/tools/file_search_tool.py

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

@@ -28,9 +28,9 @@ class FileSearchToolInput(BaseModel):
 class FileSearchTool(BaseTool):
     name: str = "file_search"
     description: str = (
-        # "Can be used to search through content of files uploaded by the user."
-        "Use this function to search through the content of files uploaded by the user. "
+        "Can be used to search through content of files uploaded by the user."
         + "If the user references specific file content (e.g., 'in my uploaded document...'), this function should be triggered."
+        + "If the user has uploaded files in multiple batches, and their request is ambiguous (e.g. 'summarize the documents'), default to summarizing only the most recent batch of uploaded files. If the user's intent is to include older files, they should specify this explicitly."
         + "Singleton operation: Strictly 1 invocation per API call"
     )
     args_schema: Type[BaseModel] = FileSearchToolInput