This evaluation template assesses whether a text demonstrates politeness, respect, and appropriate social etiquette. It checks for the presence of courteous language, absence of rudeness, and adherence to social norms in communication.

Python SDK Usage

result = evaluator.evaluate(
    eval_templates="is_polite",
    inputs={
        "input": "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)

Troubleshooting

If you encounter issues with this evaluation:
  • Politeness standards can vary across cultures and contexts - the evaluation generally uses Western business communication norms
  • Short or technical communications might be neutral rather than explicitly polite
  • This evaluation focuses on the presence of polite elements and absence of impolite ones
  • Consider cultural context when interpreting results, as politeness norms vary globally
  • tone: Provides a broader assessment of communication style beyond just politeness
  • cultural-sensitivity: Evaluates awareness of and respect for diverse cultural norms
  • no-apologies: Specifically checks for unnecessary apologetic language
  • toxicity: Identifies hostile or offensive language (opposite of politeness)