|
@@ -144,6 +144,13 @@ class FileSearchTool(BaseTool):
|
|
|
if (self.__keys and len(self.__keys) > 0) or (
|
|
|
self.__dirkeys and len(self.__dirkeys) > 0
|
|
|
):
|
|
|
- return '## important:You can use the "retrieval" tool to search for relevant information. If you are asking about the content of the files, please specify any keywords, topics, or context you are looking for to help retrieve the most relevant content.'
|
|
|
+ return (
|
|
|
+ '当用户使用以下动词时,必须调用 "retrieval" tool: '
|
|
|
+ + "- 搜索/查找/检索/调取/查看/找/有没有..."
|
|
|
+ + "输入格式: "
|
|
|
+ + "{"
|
|
|
+ + ' "query": "用户问题中的关键词",'
|
|
|
+ + "}"
|
|
|
+ )
|
|
|
else:
|
|
|
return ""
|