Skip to content

Commit

Permalink
[Fix] Apply #777 to next branch (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbushi authored Aug 13, 2024
1 parent 854d22a commit 0d3d51e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genkit-tools/cli/src/commands/eval-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ async function fetchDataSet(
testCaseId: randomUUID(),
input: inputs[0],
output: outputs[0],
context: contexts,
context: JSON.parse(contexts[0]) as string[],
reference: references?.at(i),
traceIds,
};
Expand Down
4 changes: 2 additions & 2 deletions js/testapps/cat-eval/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { devLocalVectorstore } from '@genkit-ai/dev-local-vectorstore';
import { dotprompt } from '@genkit-ai/dotprompt';
import { genkitEval, GenkitMetric } from '@genkit-ai/evaluator';
import { firebase } from '@genkit-ai/firebase';
import { geminiPro, googleAI } from '@genkit-ai/googleai';
import { gemini15Pro, googleAI } from '@genkit-ai/googleai';
import { textEmbeddingGecko, vertexAI } from '@genkit-ai/vertexai';

// Turn off safety checks for evaluation so that the LLM as an evaluator can
Expand Down Expand Up @@ -51,7 +51,7 @@ configureGenkit({
firebase(),
googleAI(),
genkitEval({
judge: geminiPro,
judge: gemini15Pro,
judgeConfig: PERMISSIVE_SAFETY_SETTINGS,
metrics: [GenkitMetric.MALICIOUSNESS],
embedder: textEmbeddingGecko,
Expand Down

0 comments on commit 0d3d51e

Please sign in to comment.