Idea · Sep 25, 2026
Semantic If Bench
A playground where you write if-statements with plain-English conditions and race a small local 'decision model' against a chat LLM on latency, cost, and agreement.
What it would do
Agent code is full of tiny yes/no calls (does this email need a reply, does this evidence support the claim, should we retry) that get sent to a full chat model and parsed back into a boolean. Semantic If Bench lets you define a condition like `if ("the student is asking for the answer, not a hint")`, paste or upload a batch of test inputs, and run it three ways: a local open model reading the logits of the declared options in a single forward pass (the SemIf pattern), a small local model via Ollama with normal generation, and Claude with structured output. A results grid shows per-row decisions, disagreements highlighted, p50/p95 latency, and estimated cost per 1,000 calls, so you can see when a cheap readout is good enough and when it is not.
Key features
- Condition editor with declared options (yes/no or multi-way) and a few-shot examples panel
- Three runners side by side: logit readout on a local open model, local generation via Ollama, and Claude structured output
- Disagreement view that surfaces only the rows where runners differ, with a one-click 'gold label' to build an eval set
- Latency histogram and cost-per-1k estimate for each runner
- Export the condition plus eval set as a small JSON fixture you can drop into a test suite