Skip to content

Commit f95e793

Browse files
committed
move score_model example to eval_config_openai_eval.yaml
1 parent cdd39e1 commit f95e793

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

examples/custom_evaluators/eval_config.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ evaluators:
2525
config:
2626
min_response_length: 20
2727

28-
# OpenAI score_model grader (no golden set needed)
29-
- name: quality_score
30-
type: openai_eval
31-
threshold: 0.7
32-
grader:
33-
type: score_model
34-
model: gpt-4o-mini
35-
input:
36-
- role: user
37-
content: "Rate the quality of this response from 0 to 1: {{ item.actual_response }}"
38-
range: [0, 1]
39-
4028
# Reference an evaluator from Github
4129
- name: random_evaluator
4230
type: remote
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Eval config using OpenAI Evals API graders.
2+
# Requires OPENAI_API_KEY to be set.
3+
#
4+
# Run with:
5+
# agentevals run samples/helm.json \
6+
# --config examples/custom_evaluators/eval_config_openai_eval.yaml
7+
8+
evaluators:
9+
- name: quality_score
10+
type: openai_eval
11+
threshold: 0.7
12+
grader:
13+
type: score_model
14+
model: gpt-4o-mini
15+
input:
16+
- role: user
17+
content: "Rate the quality of this response from 0 to 1: {{ item.actual_response }}"
18+
range: [0, 1]

0 commit comments

Comments
 (0)