Skip to main content

Genkit Evaluators Plugin

Provides three rule-based evaluators matching the Go and JS implementations:

  • 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

pip install genkit-plugin-evaluators

Usage

from genkit import Genkit
from genkit_evaluators import GenkitEval

ai = Genkit(plugins=[GenkitEval()])

# Run evaluation with genkit eval-flow or programmatically
evaluator = await ai.registry.resolve_evaluator('genkitEval/regex')
result = await evaluator.run(
    input={
        'dataset': [
            {'input': 'sample', 'output': 'banana', 'reference': 'ba?a?a'},
            {'input': 'sample', 'output': 'apple', 'reference': 'ba?a?a'},
        ],
        'evalRunId': 'test',
    }
)

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genkit_evaluators-0.9.0.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genkit_evaluators-0.9.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file genkit_evaluators-0.9.0.tar.gz.

File metadata

  • Download URL: genkit_evaluators-0.9.0.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for genkit_evaluators-0.9.0.tar.gz
Algorithm Hash digest
SHA256 3bcdf5a90ab5c7838f81cb7864cc65efa032e7bba6220b0be2385421b1fb5401
MD5 485f1d745663c47954b984724fb6a15b
BLAKE2b-256 e40d4c69b6f86bd84d1e617bf7ebe131b53b4d8ba182fa974c85331a75a82916

See more details on using hashes here.

Provenance

The following attestation bundles were made for genkit_evaluators-0.9.0.tar.gz:

Publisher: publish_python.yml on genkit-ai/genkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file genkit_evaluators-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for genkit_evaluators-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2a2cacac2fdc4ad39712ee8ef52119b3447383046ce19c648b13ce3833dfd3b5
MD5 e9128f69a0f43eda1bee2cd3dd1d332b
BLAKE2b-256 c9fb67473d82b2c0ac169560d9bf6acc2470b91af24141ab59075218959faf74

See more details on using hashes here.

Provenance

The following attestation bundles were made for genkit_evaluators-0.9.0-py3-none-any.whl:

Publisher: publish_python.yml on genkit-ai/genkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.10.0

2 files

This release

0.9.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page