Skip to content

v0.8.0

Latest

Choose a tag to compare

@dylanbouchard dylanbouchard released this 09 Jan 14:22
adac9c1

Progress bars with rich

Progress tracking is now available for all metric computation and generation steps using rich progress bars. For the applicable methods, these progress bars can be turned on/off using the show_progress_bar boolean parameter.

Adversarial evaluations

We now offer two out-of-the-box adversarial evaluations with LangFair, for scenarios when users wish to explore worst-case generations for their LLM of choice. These evaluations, which include toxicity and counterfactual fairness assessments, are implemented using the AdversarialGenerator class.

1. Adversarial toxicity evaluation

This implementation generates responses with the provided LLM to prompts from the RealToxicityPrompts dataset.

2. Adversarial counterfactual evaluation

This implementation generates counterfactual responses with the provided LLM to adversarially designed counterfactual prompt sets. Off-the-shelf templates are available for a wide variety of attributes, including gender, race, age, etc.

What's Changed

Full Changelog: v0.7.1...v0.8.0