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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ag_evalforge-0.5.0.tar.gz | 8.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ag_evalforge-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.8 kB
Release files / ag_evalforge-0.5.0.tar.gz
| Download URL | ag_evalforge-0.5.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d34c5a87975dbf10e6f32e95924e7113bad2b0d2b811ec755f90f4553ac37c1
|
|
BLAKE2b-256 checksum How to use checksums |
d9ffc6aa7da3f8be5fb85c517aa7e5fe4bc53fc17dd62e15c4a1882dcd186548
|
| 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 logRelease files / ag_evalforge-0.5.0-py3-none-any.whl
| Download URL | ag_evalforge-0.5.0-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ab68fd8beb8a7368e79241f9754a1e376399fc50b76d5666abe7a84ac9d6565
|
|
BLAKE2b-256 checksum How to use checksums |
80304e8029681a03ce555714e2a432e819b98d03a721e486be31315fba8b4b17
|
| 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 logSecurity for ag-evalforge 0.5.0
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.
Attestation for ag_evalforge-0.5.0.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 logA 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.