Skip to content

Commit 161125f

Browse files
committed
Update 2026-05-19-managing-eval-rubric-like-code.md
1 parent f3eb471 commit 161125f

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

posts/notes/_posts/2026-05-19-managing-eval-rubric-like-code.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,16 @@ max_file_bytes: 100000
2626
2727
The draft template lives in `prompts/drafts/rubric.yaml.j2`:
2828

29-
{% raw %}
3029
```yaml
3130
model: claude-sonnet-4-6
3231
temperature: 0.0
3332
system_prompt: |
34-
Evaluate the response on {{ criteria }}.
33+
Evaluate the response on {{ "{{" }} criteria {{ "}}" }}.
3534
Be generous; give partial credit for effort.
3635
Return JSON: {score: int, rationale: str}.
3736
```
38-
{% endraw %}
3937

40-
`{% raw %}{{ criteria }}{% endraw %}` is a template variable. It is rendered at release time, not
38+
`{{ "{{" }} criteria {{ "}}" }}` is a template variable. It is rendered at release time, not
4139
at runtime.
4240

4341
---
@@ -74,13 +72,12 @@ releases.
7472
immutable rendered releases. Editing the draft and cutting a new release does
7573
not modify any previous release.
7674

77-
{% raw %}
7875
```python
7976
BASIC_RUBRIC = (
8077
"model: claude-sonnet-4-6\n"
8178
"temperature: 0.0\n"
8279
"system_prompt: |\n"
83-
" Evaluate the response on {{ criteria }}.\n"
80+
" Evaluate the response on {{ "{{" }} criteria {{ "}}" }}.\n"
8481
" Be generous; give partial credit for effort.\n"
8582
" Return JSON: {score: int, rationale: str}.\n"
8683
)
@@ -89,11 +86,11 @@ STRICT_RUBRIC = (
8986
"model: claude-sonnet-4-6\n"
9087
"temperature: 0.0\n"
9188
"system_prompt: |\n"
92-
" Evaluate the response on {{ criteria }}.\n"
89+
" Evaluate the response on {{ "{{" }} criteria {{ "}}" }}.\n"
9390
" Penalize vague or incomplete answers.\n"
9491
" Return JSON: {score: int, rationale: str}.\n"
9592
)
96-
{% endraw %}
93+
```
9794

9895
# v1: initial rubric.
9996
draft.write_text(BASIC_RUBRIC)

0 commit comments

Comments
 (0)