Nous.Eval.Scorers.Contains (nous v0.21.1)

Copy Markdown View Source

Passes when the output text contains the given substrings.

{Nous.Eval.Scorers.Contains, values: ["refund", "order 123"], mode: :all}

Options

  • :values - non-empty list of non-empty strings (required; an empty list is a configuration error, never a vacuous pass)
  • :mode - :all (default) or :any
  • :case_sensitive - default true

details.missing lists the indexes of the values not found. A failed run fails with reason "run_failed"; non-text output is an :invalid_config error.