Previous to this change our results were ungrounded and simpler models like GPT 3.5 and claude had a real tough time figuring out how to run commands This splits responses into 2 phases: Phase 1: figure out if you need to run a command Phase 2: respond to user This seems to produce better results on both Claude and GPT 3.5 but still needs a fair bit of tuning.
28 lines
405 B
Ruby
28 lines
405 B
Ruby
#frozen_string_literal: true
|
|
|
|
module DiscourseAi::AiBot::Commands
|
|
class NoopCommand < Command
|
|
class << self
|
|
def name
|
|
"noop"
|
|
end
|
|
|
|
def desc
|
|
"!noop - does nothing, catch all command when you do not know how to triage"
|
|
end
|
|
end
|
|
|
|
def post_raw_details
|
|
nil
|
|
end
|
|
|
|
def pre_raw_details
|
|
nil
|
|
end
|
|
|
|
def process
|
|
nil
|
|
end
|
|
end
|
|
end
|