Clinically Inappropriate Tone
Evaluates whether text uses an appropriate tone for clinical or healthcare contexts
result = evaluator.evaluate(
eval_templates="clinically_inappropriate_tone",
inputs={
"output": "You can try meditating for a few minutes each night to help improve your sleep."
},
model_name="turing_flash"
)
print(result.eval_results[0].metrics[0].value)
print(result.eval_results[0].reason)import { Evaluator, Templates } from "@future-agi/ai-evaluation";
const evaluator = new Evaluator();
const result = await evaluator.evaluate(
"clinically_inappropriate_tone",
{
output: "You can try meditating for a few minutes each night to help improve your sleep."
},
{
modelName: "turing_flash",
}
);
console.log(result); | Input | |||
|---|---|---|---|
| Required Input | Type | Description | |
output | string | The text content to evaluate for clinical appropriateness |
| Output | ||
|---|---|---|
| Field | Description | |
| Result | Returns Passed if the tone is clinically appropriate, Failed if the tone is clinically inappropriate | |
| Reason | Provides a detailed explanation of why the text was classified as clinically appropriate or inappropriate |
What to do If you get Undesired Results
If the content is detected as clinically inappropriate but appropriateness is required:
- Use professional, objective language
- Avoid casual phrases, jokes, or slang
- Maintain a respectful, supportive tone
- Focus on clear, factual information
- Use empathetic but professional phrasing
- Avoid minimizing health concerns or symptoms
- Use appropriate medical terminology when relevant
Comparing Clinically Inappropriate Tone with Similar Evals
- Tone: While Clinically Inappropriate Tone focuses specifically on appropriateness in healthcare contexts, Tone evaluation assesses the broader emotional context and sentiment.
- Is Informal Tone: Clinically Inappropriate Tone evaluates suitability for medical or healthcare settings, whereas Is Informal Tone focuses on detecting casual language usage in general contexts.
Was this page helpful?