Class: RubyLLM::Evals::PromptExecutions::PassagesController

Inherits:
ApplicationController
  • Object
show all
Includes:
PromptExecutionScoped
Defined in:
app/controllers/ruby_llm/evals/prompt_executions/passages_controller.rb

Instance Method Summary collapse

Instance Method Details

#create ⇒ Object



7
8
9
10
11
# File 'app/controllers/ruby_llm/evals/prompt_executions/passages_controller.rb', line 7

def create
  @prompt_execution.update! passed: true

  redirect_to @prompt_execution.run, notice: "Prompt execution marked as passed.", status: :see_other
end