-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(search-service): enhance summary handling and localization u…
…pdates - Updated the `apply` function in `index.ts` to utilize a new `summaryType` variable for improved summary generation logic in the `PuppeteerBrowserTool` and `SearchTool`. - Enhanced the `SearchTool` class to accept `summaryType` as a parameter, refining how search results are processed based on user-defined summary preferences. - Added a new `summaryPrompt` entry in the English and Chinese localization files to support document summarization features. - Improved text processing in `PuppeteerBrowserTool` to ensure cleaner output by replacing multiple spaces with a single space. - These changes aim to improve the configurability and effectiveness of the search service, enhancing user experience through better summary handling and localization support.
- Loading branch information
1 parent
c084ef3
commit c9d128f
Showing
5 changed files
with
36 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters