Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Evals CLI] Use old way of referencing evaluators #1257

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion genkit-tools/cli/src/commands/eval-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ export const evalFlow = new Command('eval:flow')
if (!options.evaluators) {
evaluatorActions = await getAllEvaluatorActions(manager);
} else {
const evalActionKeys = options.evaluators
.split(',')
.map((k) => `/evaluator/${k}`);
evaluatorActions = await getMatchingEvaluatorActions(
manager,
options.evaluators.split(',')
evalActionKeys
);
}
logger.debug(
Expand Down
5 changes: 4 additions & 1 deletion genkit-tools/cli/src/commands/eval-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ export const evalRun = new Command('eval:run')
if (!options.evaluators) {
evaluatorActions = await getAllEvaluatorActions(manager);
} else {
const evalActionKeys = options.evaluators
.split(',')
.map((k) => `/evaluator/${k}`);
evaluatorActions = await getMatchingEvaluatorActions(
manager,
options.evaluators.split(',')
evalActionKeys
);
}
logger.info(
Expand Down
Loading