discourse-ai/spec
Sam fb81307c59
FEATURE: web browsing tool (#548)
This pull request makes several improvements and additions to the GitHub-related tools and personas in the `discourse-ai` repository:

1. It adds the `WebBrowser` tool to the  `Researcher` persona, allowing the AI to visit web pages, retrieve HTML content, extract the main content, and convert it to plain text.

2. It updates the `GithubFileContent`, `GithubPullRequestDiff`, and `GithubSearchCode` tools to handle HTTP responses more robustly (introducing size limits). 

3. It refactors the `send_http_request` method in the `Tool` class to follow redirects when specified, and to read the response body in chunks to avoid memory issues with large responses. (only for WebBrowser)

4. It updates the system prompt for the `Researcher` persona to provide more detailed guidance on when to use Google search vs web browsing, and how to optimize tool usage and reduce redundant requests.

5. It adds a new `web_browser_spec.rb` file with tests for the `WebBrowser` tool, covering various scenarios like handling different HTML structures and following redirects.
2024-03-28 16:01:58 +11:00
..
fabricators FEATURE: UI to update ai personas on admin page (#290) 2023-11-21 16:56:43 +11:00
fixtures FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
jobs DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
lib FEATURE: web browsing tool (#548) 2024-03-28 16:01:58 +11:00
models FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
requests FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
serializers DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00
shared FIX: Handle unicode on tokenizer (#515) 2024-03-14 17:33:30 -03:00
support FIX: typo causing text_embedding_3_large to fail (#460) 2024-02-05 11:16:36 +11:00
system FIX: don't show share conversation incorrectly (#526) 2024-03-13 11:24:22 +11:00
tasks FIX: Filter soft-deleted topics when backfilling sentiment (#527) 2024-03-12 21:01:24 -03:00
plugin_spec.rb DEV: Fix new Rubocop offenses 2024-03-06 15:23:29 +01:00