Skip to main content
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)
Input
Required InputTypeDescription
inputstringThe text content to evaluate for clinical appropriateness
Output
FieldDescription
ResultReturns Passed if the tone is clinically appropriate, Failed if the tone is clinically inappropriate
ReasonProvides 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.
I