Skip to main content

Genkit Evaluators Plugin

Provides three built-in rule-based evaluators:

  • regex – Tests output against a regex pattern (reference = regex string)
  • deep_equal – Tests equality of output against reference
  • jsonata – Evaluates a JSONata expression (reference) against output; pass if result is truthy

No LLM or API keys required.

Installation

uv add genkit-evaluators

Usage

from genkit import Genkit
from genkit.evaluator import BaseDataPoint
from genkit_evaluators import register_genkit_evaluators

ai = Genkit()
register_genkit_evaluators(ai)

results = await ai.evaluate(
    evaluator='genkitEval/regex',
    dataset=[
        BaseDataPoint(input='sample', output='banana', reference='ba?a?a'),
        BaseDataPoint(input='sample', output='apple', reference='ba?a?a'),
    ],
)

Or from the CLI:

genkit eval:run datasets/example.json --evaluators=genkitEval/regex

Evaluators

  • genkitEval/regex – Reference is a regex string. Output (stringified if needed) must match.
  • genkitEval/deep_equal – Reference is the expected value. Output must equal reference.
  • genkitEval/jsonata – Reference is a JSONata expression. Evaluated against output; pass if truthy.

Release files for genkit-evaluators 0.12.0

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

Source distribution (sdist)

Source distribution for genkit-evaluators 0.12.0
File Size Uploaded
genkit_evaluators-0.12.0.tar.gz 7.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for genkit-evaluators 0.12.0
File Interpreter ABI Platform
genkit_evaluators-0.12.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.2 kB

Release files / genkit_evaluators-0.12.0.tar.gz

Download URL genkit_evaluators-0.12.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
371d9da7f49c6fa9397eef128d43d0ac42cc3e72549eab75dd6518662fdc4272
BLAKE2b-256 checksum
How to use checksums
39d4980d2d518e9dc1276dbc14f304ac0555d7d34669de86eca5c0a1b0696c71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Release files / genkit_evaluators-0.12.0-py3-none-any.whl

Download URL genkit_evaluators-0.12.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5c377253ecd04d2fedafe88ae7459bc0f8b184d9830fcccc78862501868e4fe
BLAKE2b-256 checksum
How to use checksums
34dbb4d588df1c5920e1af62b9339c2c332b5219cdc67dd31ff7a60d34acd663
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 24, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.12.0 This release

2 release files

0.10.0

2 release files

0.9.0

2 release files

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