Establish the baseline
Instrument every route: input, output and cached tokens, retries, errors, p50/p95 latency and cost. Agree on a task-level definition of success.
Baseline report · cost per successful task by route
Engineering approach
A reproducible process for improving LLM systems: measure what you run, define success, test changes in isolation, and ship only what holds up.
Instrument every route: input, output and cached tokens, retries, errors, p50/p95 latency and cost. Agree on a task-level definition of success.
Baseline report · cost per successful task by route
Sample representative and adversarial cases from real traffic (anonymized), define graders (exact, rubric, model-graded with human spot checks) and lock a regression suite.
Versioned eval set · grading rubric · current scores
Routing, prompt and context changes, retrieval tuning, caching, batching, model swaps. One variable at a time so attribution is clean.
Experiment log · configs · raw results
Every candidate reported on quality, latency and cost per successful task together, with confidence notes where the sample is small.
Tradeoff matrix · recommendation with rejected options
Ship behind feature flags and regression gates, set budgets and alerts, write ADRs and runbooks, and pair with your engineers until they own it.
ADRs · runbooks · dashboards · CI eval gate
Reference architecture
Most systems we look at share these decision points. The work is finding which ones matter for your traffic.
No referral fees or partner agreements with model or cloud providers. If we recommend a vendor, the ADR says why and what lost.
A cheaper call that fails more often can cost more. We optimize the unit your business actually pays for.
Configs, prompts, eval sets and results are versioned so your team can rerun every comparison.
Engagements end with documentation and working gates in your repo, not a slide deck.
Usually exported usage data or read access to observability tooling, scoped by your security team. We define the minimum needed in the statement of work. Never send credentials through web forms.
Grader choice depends on the task: deterministic checks where possible, rubric-based model grading calibrated against human labels where not, and periodic human review of disagreements.
Yes. The regression suite and thresholds are designed to run in your pipeline so quality and cost regressions block a deploy the same way failing tests do.
A 30-minute call to see what measuring your system would involve.