Skip to main content
result = evaluator.evaluate(
    eval_templates="one_line",
    inputs={
        "text": '''This is a sentence
                  that spans two lines.'''
      },
    model_name="turing_flash"
)

print(result.eval_results[0].output)
print(result.eval_results[0].reason)
Input
Required InputTypeDescription
textstringText to be evaluated if it is a single line.
Output
FieldDescription
ResultReturns Passed if the text is a single line, or Failed if it contains line breaks.
ReasonProvides a detailed explanation of the evaluation.

What to Do When One Line Evaluation Fails If the evaluation fails, examine the input text to identify the presence of newline characters. If the text contains multiple lines, consider revising it to ensure it meets the one-line requirement. Providing clearer instructions or constraints in the input can help prevent this issue in future evaluations.
I