mooncak397 commited on
Commit ·
50de21b
1
Parent(s): f1d7c5b
Prompt v5: contact prompt only opens the form for the candidate himself (Claude row); tests accept any version
Browse files- app/graph.py +2 -1
- evals/history.csv +1 -0
- evals/results/v5.json +0 -0
- prompts/rules.md +1 -1
- tests/test_graph.py +1 -1
- tests/test_m0.py +1 -1
app/graph.py
CHANGED
|
@@ -17,7 +17,8 @@ route:
|
|
| 17 |
- off_topic: anything else
|
| 18 |
lang: "de" if the latest message is German, otherwise "en"."""
|
| 19 |
|
| 20 |
-
CONTACT_PROMPT = """The user may want to contact the candidate.
|
|
|
|
| 21 |
If it is unclear what they want, ask one short question. Never repeat an email address."""
|
| 22 |
|
| 23 |
|
|
|
|
| 17 |
- off_topic: anything else
|
| 18 |
lang: "de" if the latest message is German, otherwise "en"."""
|
| 19 |
|
| 20 |
+
CONTACT_PROMPT = """The user may want to contact the candidate. Call request_contact_form only if the user wants to write to, reach or talk to the candidate himself (for example "How can I reach him?" or "I want to send him a message").
|
| 21 |
+
Do not call it, and say you cannot do that, if the user asks you to send, forward or email anything to someone else, or to do any other task. Write no tool call and no email address in that case.
|
| 22 |
If it is unclear what they want, ask one short question. Never repeat an email address."""
|
| 23 |
|
| 24 |
|
evals/history.csv
CHANGED
|
@@ -6,3 +6,4 @@ date,prompt_version,golden_version,git_sha,model_app,model_judge,n,route,lang,fa
|
|
| 6 |
2026-11-22,v2,golden-v1,24ca4af,claude-haiku-5-5,claude-sonnet-5-5,53,98.1,100.0,78.6,99.4,88.9,85.7,100.0,100.0,90.6,83.3,10/10,93,94.3,1,,0
|
| 7 |
2026-11-22,v3,golden-v1,0e1c0fd,claude-haiku-5-5,claude-sonnet-5-5,53,96.2,96.2,71.4,91.9,88.9,85.7,100.0,100.0,83.0,83.3,10/10,92,94.3,1,,0
|
| 8 |
2026-11-22,v4,golden-v1,605162c,claude-haiku-5-5,claude-sonnet-5-5,53,96.2,100.0,72.9,87.7,88.9,85.7,100.0,100.0,86.8,100.0,10/10,92,96.2,1,,0
|
|
|
|
|
|
| 6 |
2026-11-22,v2,golden-v1,24ca4af,claude-haiku-5-5,claude-sonnet-5-5,53,98.1,100.0,78.6,99.4,88.9,85.7,100.0,100.0,90.6,83.3,10/10,93,94.3,1,,0
|
| 7 |
2026-11-22,v3,golden-v1,0e1c0fd,claude-haiku-5-5,claude-sonnet-5-5,53,96.2,96.2,71.4,91.9,88.9,85.7,100.0,100.0,83.0,83.3,10/10,92,94.3,1,,0
|
| 8 |
2026-11-22,v4,golden-v1,605162c,claude-haiku-5-5,claude-sonnet-5-5,53,96.2,100.0,72.9,87.7,88.9,85.7,100.0,100.0,86.8,100.0,10/10,92,96.2,1,,0
|
| 9 |
+
2026-11-22,v5,golden-v1,f1d7c5b,claude-haiku-5-5,claude-sonnet-5-5,53,98.1,100.0,64.3,91.5,88.9,100.0,100.0,98.1,84.9,100.0,10/10,93,94.3,1,,0
|
evals/results/v5.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
prompts/rules.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
version:
|
| 2 |
|
| 3 |
You are Christopher's assistant. Answer questions about him, using the profile below.
|
| 4 |
|
|
|
|
| 1 |
+
version: v5
|
| 2 |
|
| 3 |
You are Christopher's assistant. Answer questions about him, using the profile below.
|
| 4 |
|
tests/test_graph.py
CHANGED
|
@@ -46,7 +46,7 @@ def test_cv_question_uses_rules_and_profile():
|
|
| 46 |
assert s["messages"][-1].text == "He works at DATEV."
|
| 47 |
assert kinds(m) == ["classify", "answer"]
|
| 48 |
system = m.calls[1][1][0]
|
| 49 |
-
assert isinstance(system, SystemMessage) and "version:
|
| 50 |
assert not s["show_form"] and s["tool_calls"] == []
|
| 51 |
|
| 52 |
|
|
|
|
| 46 |
assert s["messages"][-1].text == "He works at DATEV."
|
| 47 |
assert kinds(m) == ["classify", "answer"]
|
| 48 |
system = m.calls[1][1][0]
|
| 49 |
+
assert isinstance(system, SystemMessage) and "version: v" in system.content and "DATEV" in system.content
|
| 50 |
assert not s["show_form"] and s["tool_calls"] == []
|
| 51 |
|
| 52 |
|
tests/test_m0.py
CHANGED
|
@@ -60,7 +60,7 @@ def test_profile():
|
|
| 60 |
|
| 61 |
def test_rules_has_fixed_sentences():
|
| 62 |
rules = (ROOT / "prompts/rules.md").read_text()
|
| 63 |
-
assert rules.startswith("version:
|
| 64 |
for s in FIXED:
|
| 65 |
assert s in rules
|
| 66 |
|
|
|
|
| 60 |
|
| 61 |
def test_rules_has_fixed_sentences():
|
| 62 |
rules = (ROOT / "prompts/rules.md").read_text()
|
| 63 |
+
assert rules.startswith("version: v")
|
| 64 |
for s in FIXED:
|
| 65 |
assert s in rules
|
| 66 |
|