Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions scripts/check_harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@

Builds each device from the harness's own files (manifest, examples, synthetic + dialog negatives, tools, prompts)
and replays LLM answers from its cache/llm_cache.jsonl. No model calls: a cache miss fails the check, because the
references were measured on cached answers. References: preds/v7__<device>__<route>__<SPLIT>.jsonl: v5 plus the
word-boundary matcher, the catch-all yield at 0.8 and float32 classifier features, written by intent-eval
refs_v6.py (its v7 mode) from the experiment's own implementation of the rule.
references were measured on cached answers. References: preds/v8__<device>__<route>__<SPLIT>.jsonl: v5 plus the
word-boundary matcher, the catch-all yield at 0.8, float32 classifier features and the classifier's "required slot
unfilled" gate (#38), written by intent-eval refs_v6.py (its v8 mode) from the experiments' own implementations of
the rules.

Usage (from the switchboard repo, in an environment with the package installed):
python scripts/check_harness.py ~/coding/OscillateLabs/intent-eval [--quick]
Expand Down Expand Up @@ -105,7 +106,7 @@ def main(argv):
for device in DEVICES:
for route in ("always", "active"):
router = build_router(harness, device, route)
results = [check(cp, router, os.path.join(harness, f"preds/v7__{device}__{route}__{s.upper()}.jsonl"), s)
results = [check(cp, router, os.path.join(harness, f"preds/v8__{device}__{route}__{s.upper()}.jsonl"), s)
for s in splits] # every split reports
ok = ok and all(results)
sys.exit(0 if ok else 1)
Expand Down