Prompt
I'm building an experiment platform for prompts and want real-traffic evals
Latest observation
Nov 22, 2026
OpenAI APIWeb search: off
Great idea — real-traffic evals are one of the best ways to understand whether prompt changes actually improve user outcomes, not just offline metrics.
A good experiment platform for prompt evaluation usually needs these pieces:
1) Traffic assignment
- Randomly route requests into variants
- Support weighted splits like 90/10, 50/50, multi-armed bandits later
- Keep assignment sticky per user/session if needed
2) Prompt/version registry
- Store prompt templates, model params, tools, and metadata
- Version every change
- Make it easy to roll back
3) Logging and observability
Capture for each request:
- input prompt/context
- selected variant
- model output
- latency, token usage, cost
- user feedback / downstream action
- errors and retries
4) Evaluation framework
You’ll want both:
- Automatic metrics: formatting, task success proxies, moderation, heuristics
- Human/business metrics: click-through, completion rate, conversion, thumbs up/down, support resolution
5) Guardrails
- Safety filters
- Kill switch for bad variants
- Rate limiting and fallback behavior
- PII handling and redaction
6) Analysis layer
- Segment by user type, locale, device, etc.
- Compute uplift and confidence intervals
- Watch for regressions in latency/cost/safety
- Detect novelty or interaction effects
Recommended architecture
A simple starting setup:
- App service calls an Experiment Router
- Router returns variant assignment + prompt config
- Inference service executes prompt/model
- Events go to an append-only log
- A warehouse/job pipeline computes metrics
- Dashboard shows experiment results
Practical tips
- Start with A/B testing, not bandits
- Evaluate on a metric that matters to the business, not just LLM quality
- Log the exact prompt text and model parameters used
- Make sure you can reproduce old runs
- Don’t optimize too early for offline judge scores alone
A useful experiment object
You may want something like:
{
"experiment_id": "prompt_checkout_042",
"variants": [
{
"name": "control",
"weight": 0.5,
"prompt_version": "v12"
},
{
"name": "treatment",
"weight": 0.5,
"prompt_version": "v13"
}
],
"unit": "user",
"primary_metric": "conversion_rate",
"guardrails": ["latency_p95", "refund_rate", "toxicity_rate"]
}
If you want, I can help you with any of these next:
- a concrete system design,
- schema for experiments/logs,
- how to compute significance for prompt A/B tests,
- or a minimal implementation in Python/TypeScript.