Skip to main content

ag-evalforge

Evaluation runner for LLM applications.

Scores model outputs against an evaluation dataset with exact match, regex, ROUGE-L, semantic similarity, LLM-as-judge or custom scorers, and compares two models on the same dataset.

Install

pip install "ag-evalforge[all]"
npm install ag-evalforge

Extras: openai, anthropic, semantic (sentence-transformers), all.

Usage

from ag_evalforge import EvalCase, EvalDataset, ExactMatchScorer, run_eval

dataset = EvalDataset(cases=[
    EvalCase(input="Capital of France?", expected="Paris"),
    EvalCase(input="2 + 2?", expected="4"),
])
report = run_eval(dataset, ExactMatchScorer(), outputs=["Paris", "5"])
print(report.pass_rate, [r.case.input for r in report.failed])

Output:

0.5 ['2 + 2?']

Command line: ag-evalforge run -d dataset.jsonl -s exact -o outputs.jsonl and ag-evalforge diff. Datasets load from .json, .jsonl or .csv.

The TypeScript package ag-evalforge is a port of the core classes.

Hosted API

HostedScorer runs the scoring in the hosted API, so no LLM provider key is needed locally. API keys are issued at https://ai.artifact-network.org. The default endpoint is https://ai-api.artifact-network.org; pass a different base URL to use your own deployment.

Development

cd packages/python && pip install -e ".[all]" && pytest
cd packages/typescript && npm ci && npm test

License

MIT, Copyright (c) 2026 Adnan Ghribi.

Metadata

Release files for ag-evalforge 0.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ag-evalforge 0.5.1
File Size Uploaded Provenance
ag_evalforge-0.5.1.tar.gz 8.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ag-evalforge 0.5.1
File Interpreter ABI Platform
ag_evalforge-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 21.8 kB

Release files / ag_evalforge-0.5.1.tar.gz

Download URL ag_evalforge-0.5.1.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
53dff1c646ae4545fce7ba60d930a72aad8099ccbb7eabd09b109712fabeb254
BLAKE2b-256 checksum
How to use checksums
5e7319f31cdc1551c1ea71dfaeb5a4b2fd6d5d76369af47b2a27f616487db767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Release files / ag_evalforge-0.5.1-py3-none-any.whl

Download URL ag_evalforge-0.5.1-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c7f8f777aa45d51986963aeaff45c146f855926df85f8e4870e0991904e20af
BLAKE2b-256 checksum
How to use checksums
c5c603a2a5eb153201df23875b38f77b1638e5a41699467e6ef909211cc76dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

Security for ag-evalforge 0.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ag_evalforge-0.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page