# Add the prompt template as an experiment configuration
experiment_config = {
    "prompt_template": generate_query(output="{output}", few_shot_examples=[])
}

res = evaluate(
    dataset=dataset,
    task=evaluation_task,
    scoring_metrics=[moderation_metric],
    experiment_config=experiment_config,
    scoring_key_mapping={"reference": "expected_output", "output": "moderation_score"},
)
```

We are able to detect \~85% of moderation violations, this can be improved further by providing some additional examples to the model. We can view a breakdown of the results in the Opik UI:

![Moderation Evaluation](https://raw.githubusercontent.com/comet-ml/opik/main/apps/opik-documentation/documentation/fern/img/cookbook/moderation_metric_cookbook.png)