jack 1 月之前
父节点
当前提交
3db499d8c8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      app/core/tools/file_search_tool.py

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

@@ -130,7 +130,6 @@ class FileSearchTool(BaseTool):
 
     # indexes: List[int],
     def run(self, query: str) -> dict:
-
         print(
             "file_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keysfile_keys"
         )
@@ -167,13 +166,15 @@ class FileSearchTool(BaseTool):
     def instruction_supplement(self) -> str:
         """
         为 Retrieval 提供文件选择信息,用于 llm 调用抉择
-        """
+
         return (
             'You can use the "retrieval" tool to retrieve relevant context from the following attached files. '
             # + 'Each line represents a file in the format "(index)filename":\n'
             # + "\n".join(filenames_info)
             + "\nMake sure to be extremely concise when using attached files. "
         )
+        """
+        return 'You can use the "retrieval or FileSearchTool" to search for relevant information within the attached files. Please specify the keywords or context you are looking for to retrieve the most relevant content.'
 
 
 '''