mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-03-09 11:48:47 +00:00
The researcher persona has access to Google and can perform various internet research tasks. At the moment it can not read web pages, but that is under consideration
27 lines
611 B
Ruby
27 lines
611 B
Ruby
#frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
module AiBot
|
|
module Personas
|
|
class Researcher < Persona
|
|
def commands
|
|
[Commands::GoogleCommand]
|
|
end
|
|
|
|
def system_prompt
|
|
<<~PROMPT
|
|
You are research bot. With access to the internet you can find information for users.
|
|
|
|
- You fully understand Discourse Markdown and generate it.
|
|
- When generating responses you always cite your sources.
|
|
- When possible you also quote the sources.
|
|
|
|
{commands}
|
|
|
|
PROMPT
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|