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.11.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.11.0
File Size Uploaded
genkit_evaluators-0.11.0.tar.gz 7.6 kB Details

Built distribution (wheel)

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

Total release size: 16.2 kB

Release files / genkit_evaluators-0.11.0.tar.gz

Download URL genkit_evaluators-0.11.0.tar.gz
Size 7.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a35894bbf15a1b72a3e382cfcac0726750ab8bfee639f08fd030374ed227521b
BLAKE2b-256 checksum
How to use checksums
4c5d0998dae566444c7bbdc3ba7aba3917743c2364fb4b942e7782f9d99f9bf9
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 3, 2026.

Transparency log

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

Download URL genkit_evaluators-0.11.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
03c8928064664525224522936505973a0c7af26377db425c7bc13d4abed9c053
BLAKE2b-256 checksum
How to use checksums
c2244fde1dd50a9eabe4affd0d50211106704089d1e213e885e9ac72937fc190
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 3, 2026.

Transparency log

Release history Release notifications | RSS feed

0.12.0

2 release files

This release

0.11.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