mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-08-06 21:23:47 +00:00
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
|