Genkit Evaluators Plugin (regex, deep_equal, jsonata)
Project description
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.plugins.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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genkit_plugin_evaluators-0.6.0rc1.tar.gz.
File metadata
- Download URL: genkit_plugin_evaluators-0.6.0rc1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d799d528d4418b5cd4fe2f3bfe50cce6a7a433eec81ce0aeb90b44c0055b9bdb
|
|
| MD5 |
e22f02f2e86602acd3fb81f0dc8eda2c
|
|
| BLAKE2b-256 |
f63913b0b78deab557ef8811c8cd473f58964f186f2000c1517bbf7ee2c6f35c
|
Provenance
The following attestation bundles were made for genkit_plugin_evaluators-0.6.0rc1.tar.gz:
Publisher:
publish_python.yml on genkit-ai/genkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genkit_plugin_evaluators-0.6.0rc1.tar.gz -
Subject digest:
d799d528d4418b5cd4fe2f3bfe50cce6a7a433eec81ce0aeb90b44c0055b9bdb - Sigstore transparency entry: 1593721608
- Sigstore integration time:
-
Permalink:
genkit-ai/genkit@a1c03697363096b4c6847e1d18a178e2e4107fb1 -
Branch / Tag:
refs/tags/py/v0.6.0-rc.1 - Owner: https://github.com/genkit-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_python.yml@a1c03697363096b4c6847e1d18a178e2e4107fb1 -
Trigger Event:
push
-
Statement type:
File details
Details for the file genkit_plugin_evaluators-0.6.0rc1-py3-none-any.whl.
File metadata
- Download URL: genkit_plugin_evaluators-0.6.0rc1-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0da04dcbcdeace0c0bc9ec58c9a95c2e5d7272b7c9e3e936c45fc3398e4b8db
|
|
| MD5 |
e4527f42cce0e1d71334da4f330dfbbf
|
|
| BLAKE2b-256 |
86cd6ab6c29b7fbf510d1cccdb4a89073be592c12477d7ff5a523de55384b198
|
Provenance
The following attestation bundles were made for genkit_plugin_evaluators-0.6.0rc1-py3-none-any.whl:
Publisher:
publish_python.yml on genkit-ai/genkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
genkit_plugin_evaluators-0.6.0rc1-py3-none-any.whl -
Subject digest:
b0da04dcbcdeace0c0bc9ec58c9a95c2e5d7272b7c9e3e936c45fc3398e4b8db - Sigstore transparency entry: 1593722117
- Sigstore integration time:
-
Permalink:
genkit-ai/genkit@a1c03697363096b4c6847e1d18a178e2e4107fb1 -
Branch / Tag:
refs/tags/py/v0.6.0-rc.1 - Owner: https://github.com/genkit-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_python.yml@a1c03697363096b4c6847e1d18a178e2e4107fb1 -
Trigger Event:
push
-
Statement type: