Skip to content

Commit

Permalink
Update docs to include embedder when using answer relevancy metric (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
tagboola authored May 8, 2024
1 parent fafc59f commit 4eae7bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/evaluation.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ quality of your retriever while it runs in the context of the flow as shown belo

```js
import { GenkitMetric, genkitEval } from '@genkit-ai/evaluator';
import { textEmbeddingGecko } from '@genkit-ai/vertexai';

export default configureGenkit({
plugins: [
genkitEval({
judge: geminiPro,
metrics: [GenkitMetric.FAITHFULNESS, GenkitMetric.ANSWER_RELEVANCY],
embedder: textEmbeddingGecko, // GenkitMetric.ANSWER_RELEVANCY requires an embedder
}),
],
// ...
Expand Down

0 comments on commit 4eae7bc

Please sign in to comment.