Skip to content

evaLLM

Evaluate LLM outputs with composable, schema-validated metrics.

Get Started API Reference

Why evaLLM?

  • Composable metrics: Combine multiple metrics and run them in one pass.
  • Validated configuration: Metric/runtime config is schema-checked.
  • JSONL-first workflow: Stream record-level results for easy downstream analysis.
  • Two interfaces: Use either the Python API or the CLI.

Quick Start

Install

pip install evallm-qa

Optional extras for HuggingFace tokenizer-backed encoding metrics:

pip install "evallm-qa[hf-tokenizers]"

Run your first evaluation

evallm run \
    --input-file ./data/dataset.jsonl \
    --text-key text \
    --record-id-key id \
    --metric CountsMetric

Learn by Interface

Python API

CLI

evallm metrics list
evallm metrics info CountsMetric
evallm metrics presets

Core Building Blocks

Need Architecture Context?

The diagram above gives a system-level view. For internals, continue with: