Skip to main content
result = evaluator.evaluate(
    eval_templates="no_apologies",
    inputs={
        "output": "Dear Sir, I hope this email finds you well. I look forward to any insights or advice you might have whenever you have a free moment"
    },
    model_name="turing_flash"
)

print(result.eval_results[0].output)
print(result.eval_results[0].reason)
Input
Required InputTypeDescription
outputstringContent to evaluate for unnecessary apologies.
Output
FieldDescription
ResultReturns Passed if no unnecessary apologies are detected, or Failed if unnecessary apologies are detected.
ReasonProvides a detailed explanation of why the text was deemed free from or containing unnecessary apologies.

Troubleshooting

If you encounter issues with this evaluation:
  • This evaluation looks for explicit apologies (“sorry,” “apologize,” etc.) as well as excessively deferential language
  • Some contexts legitimately require apologies - this evaluation is best used when checking for unnecessary apologetic language
  • The evaluation may not catch subtle or implicit forms of apologetic language
  • Consider cultural context, as norms around apologies vary globally
  • is-polite: Ensures communication remains respectful even without apologies
  • tone: Provides broader assessment of communication style and confidence
  • cultural-sensitivity: Evaluates awareness of and respect for diverse cultural norms around apologies
I