Skip to main content
In this guide we will see how to configure and run responsibility and safety evaluations of your LLM outputs.
Safety evaluations are essential for ensuring your LLM behaves responsibly across different categories like toxicity, prompt injections, and other unsafe behaviors.

Configure Safety Scenarios

Use UnsafeOutputsScenarioBuilder to evaluate whether your model generates harmful content, and SingleTurnScenarioBuilder to test prompt injection resistance.

Unsafe Outputs (e.g. Toxicity)

Prompt Injection Resistance

Run the Evaluation

Once you have configured your scenarios, run the evaluation with these simple steps:

Complete Example