|
@@ -27,12 +27,12 @@ class FileSearchToolInput(BaseModel):
|
|
|
class FileSearchTool(BaseTool):
|
|
|
name: str = "file_search"
|
|
|
description: str = (
|
|
|
- "This tool must be called when the question involves the following situations:"
|
|
|
- + "1. Asking for specific content in files/documents"
|
|
|
- + "2.Need to find data, terms, or technical details"
|
|
|
- + '3.The user explicitly requests "search files" or "search materials" or "content"'
|
|
|
- "Useful for when you need to answer questions about current events. "
|
|
|
- "Input should be a search query."
|
|
|
+ "This tool is triggered when the question involves the following situations:"
|
|
|
+ + "1. Asking for content in files/documents"
|
|
|
+ + "2. Need to find data, terms, or technical details"
|
|
|
+ + "3. The user requests 'search files' or 'search materials' or 'file content'"
|
|
|
+ + "4. Any other request that involves querying or extracting information from uploaded files"
|
|
|
+ "Useful for answering questions related to documents, data analysis, specific file content, or file content."
|
|
|
)
|
|
|
|
|
|
args_schema: Type[BaseModel] = FileSearchToolInput
|