jack 1 개월 전
부모
커밋
34689ffae8
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      app/core/tools/file_search_tool.py

+ 8 - 1
app/core/tools/file_search_tool.py

@@ -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 ""