Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.04 KB

File metadata and controls

44 lines (27 loc) · 1.04 KB

langbench

PyPI - Version Python PyPI - Downloads CI

langbench is an easy to use benchmarking library for langchain based LLM pipelines.

Installation

pip install langbench

Metrics

langbench provides the following metrics:

  • toxicity: Toxicity of the generated text.
  • bias: Bias of the generated text, including:
    • political
    • gender
    • racial
    • educational
    • nationality
    • religious
    • others
  • latency: Latency of the generated text.

Reports are generated in the form of an html file.

Documentation

The official documentation is available at langbench.

License

This project is licensed under the MIT License - see the LICENSE file for details.