Is Polite
Evaluates whether response 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.
result = evaluator.evaluate(
eval_templates="is_polite",
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)import { Evaluator, Templates } from "@future-agi/ai-evaluation";
const evaluator = new Evaluator();
const result = await evaluator.evaluate(
"is_polite",
{
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"
},
{
modelName: "turing_flash",
}
);
console.log(result); | Input | |||
|---|---|---|---|
| Required Input | Type | Description | |
output | string | The response to be evaluated for politeness. |
| Output | ||
|---|---|---|
| Field | Description | |
| Result | Returns Passed if the response is polite and respectful, or Failed if it’s not. | |
| Reason | Provides a detailed explanation of the evaluation. |
What to Do When Is Polite Score is Low
- 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
Comparing Is Polite with Similar Evals
- 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).
Was this page helpful?