|
@@ -29,15 +29,9 @@ class FileSearchTool(BaseTool):
|
|
|
name: str = "file_search"
|
|
|
description: str = (
|
|
|
# "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."
|
|
|
- # + "Singleton operation: Strictly 1 invocation per API call"
|
|
|
"Use this function to search through the content of files uploaded by the user. "
|
|
|
- + "Trigger this function whenever the user refers to content within any uploaded document or file, even if they do not specify a file name or type. "
|
|
|
- + "If multiple files are uploaded and the user does not indicate a specific file, perform the search across all available uploaded files and return relevant results from each, clearly stating which file each result comes from. "
|
|
|
- + "If the user's request is ambiguous, default to considering all relevant uploaded files, and, if possible, provide a brief summary of the contents of each file to help clarify. "
|
|
|
- + "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."
|
|
|
- + "Prioritize providing useful information by erring on the side of inclusion rather than exclusion when the user's intent is not explicit. "
|
|
|
- + "Singleton operation: Strictly 1 invocation per API call."
|
|
|
+ + "If the user references specific file content (e.g., 'in my uploaded document...'), this function should be triggered."
|
|
|
+ + "Singleton operation: Strictly 1 invocation per API call"
|
|
|
)
|
|
|
args_schema: Type[BaseModel] = FileSearchToolInput
|
|
|
|