Promptfoo vs Braintrust: LLM Evaluation for Commerce AI Features
Shipping an AI shopping assistant or product description generator without evals is shipping without tests. Promptfoo and Braintrust both fix that, but one lives in your repo and the other lives in a hosted workspace. Here is how to choose, and how to avoid the evaluation traps that make both useless.
Every commerce team adding an AI feature goes through the same sequence. A prompt works in a demo, ships to production, and then a model update, a catalog change or a well meaning prompt tweak quietly breaks it. The product assistant starts recommending out of stock items. The description generator invents a material the product does not contain. Nobody notices for two weeks because there is no test that would have failed.
LLM evals are the answer, and the tooling market has split into two camps. Promptfoo is the open source, config in your repo, runs in CI camp. Braintrust is the hosted experiment platform camp, with datasets, scoring, tracing and a web interface for the whole team. Choosing between them is less about features and more about where evaluation lives in your engineering culture.
What an Eval Actually Is
Strip away the vocabulary and an eval is a regression test for a probabilistic system. You have a set of inputs, an expected quality bar, and a way to score outputs against that bar. The scoring is the hard part, because model outputs are text, and text rarely matches exactly.
There are three scoring approaches, and any serious setup uses all of them:
- Deterministic checks: does the output parse as valid JSON, stay under a length limit, contain the required SKU, avoid banned phrases, or cite a source from the retrieved context
- Reference comparison: similarity to a known good answer, useful but brittle for open ended generation
- Model graded scoring: a second model grades the output against a rubric, often called LLM as judge
Everything else, from dashboards to CI gates, is packaging around those three. Keep that in mind when comparing products, because both Promptfoo and Braintrust support all of them and the differences are in workflow.
Promptfoo: Evals as Code in Your Repository
Promptfoo is an open source command line tool and library, MIT licensed, built around a declarative config file. You define prompts, providers, test cases and assertions in YAML, run the command, and get a matrix of results you can view locally in a browser or print in a terminal. Because it is a CLI, it slots into CI with no ceremony: run it on every pull request that touches a prompt, fail the build if assertions regress.
Where Promptfoo is strongest:
- Everything is versioned with your code. A prompt change and its test changes land in the same pull request, reviewed by the same people
- It runs anywhere you can run Node, including a laptop, a CI runner or a locked down environment where sending data to a third party is not an option
- Side by side comparison of models and prompt variants is a core feature, which makes model migration decisions concrete
- It includes red teaming capabilities that generate adversarial inputs, covering prompt injection, jailbreaks and data leakage probes against your own application
- The free local workflow is genuinely usable, with no account required
Where it is weaker: shared visibility. A results matrix on one developer's machine is not a team asset. Teams that want history, annotations from non engineers and trend lines either build their own storage layer or move to the company's hosted tier. Merge blocking on pass rate thresholds is also something you typically script yourself in CI rather than a built in policy. Check the vendor's current plans, since the line between the open source tool and the paid offering has shifted over time.
Braintrust: A Hosted Platform for the Whole Team
Braintrust is a proprietary, hosted platform for evaluating and observing AI applications. You write experiments in code using its SDK, but results, datasets, prompts and traces live in a web workspace. Product managers, domain experts and engineers all look at the same experiment, compare runs, and annotate outputs without touching a terminal.
Where Braintrust is strongest:
- Datasets are first class objects you can curate, version and grow, including by promoting real production traces into test cases
- Production logging and evaluation share one data model, so the same scorers can run offline on a dataset and online against live traffic
- Experiment comparison, diffing and history are built in, which makes regressions visible over time rather than only per run
- Human review workflows let a merchandiser or support lead score outputs without learning a toolchain
- Prompt management and playground features support iteration outside the code editor
Where it is weaker: it is a hosted dependency with its own pricing, data handling review and vendor risk. Sending prompts, customer messages and product data to a third party is a security conversation you must have, and some organizations will insist on enterprise or self hosted arrangements. Exact tiers and limits change, so check current pricing rather than trusting any comparison article, this one included. There is also a subtler cost: when evals live in a UI, they can drift away from the code review process that protects everything else.
The Datasets Problem Nobody Warns You About
Neither tool will fix a bad dataset, and bad datasets are the number one reason evals fail. For commerce AI features the failure modes are specific.
A product search assistant tested on twenty hand written queries will pass beautifully and then fail on the typos, abbreviations and vague requests that real shoppers send. A description generator tested on your best catalog entries will miss the products with sparse attributes, which are exactly where hallucination risk is highest. A support agent tested on happy paths will never see the angry, multi issue message that arrives after a failed delivery.
Build your dataset in three layers. Start with a golden set of fifty to a few hundred hand reviewed cases that cover your core flows. Add a regression set made of every real failure you have ever fixed, because each one represents a bug you do not want twice. Add an adversarial set of injection attempts, out of scope requests and policy edge cases. Braintrust makes the second layer easier through trace promotion. Promptfoo makes it equally possible, but you manage the files and the pipeline yourself.
LLM as Judge: Useful and Dangerous
Model graded scoring is the only practical way to evaluate fluency, helpfulness or faithfulness at scale, and it is also the easiest way to fool yourself. Known pitfalls include:
- Judges tend to prefer longer, more confident answers regardless of correctness
- A judge from the same model family as the generator can favor its own style
- Position bias: in pairwise comparisons the first answer often wins more than it should
- Vague rubrics produce noisy scores. "Is this helpful" is a bad rubric; "Does the answer name only attributes present in the product data" is a good one
- Judges drift when the judge model is updated, which can look like a regression in your system
Mitigations are the same in either tool. Pin the judge model version, write narrow binary rubrics, check the judge against a few dozen human labeled examples and track agreement, and prefer deterministic assertions wherever you can. For a deeper look at tracing and evaluation tooling in the wider ecosystem, see our comparison of LangSmith and Langfuse for LLM evaluation and tracing.
Production Logging, Red Teaming and Everything After Launch
Offline evals tell you whether a change is safe to ship. They do not tell you what real shoppers are doing. That is where production logging matters, and where the two products differ most in philosophy. Braintrust treats logging and evaluation as one system: live traffic is traced, scored and fed back into datasets. Promptfoo is primarily a pre deployment testing tool, so most teams pair it with a separate observability layer. We compare options for that layer in Langfuse versus Helicone.
Red teaming deserves its own line item for commerce. An assistant that can read order data, apply discounts or draft customer emails is an attack surface. Promptfoo's red team tooling is purpose built for generating adversarial test suites and running them against your endpoint on a schedule, which suits a security review process. Braintrust can run adversarial datasets as ordinary experiments, but it is not where the red team generation tooling is the headline.
The Decision Framework
| Dimension | Promptfoo | Braintrust |
|---|---|---|
| Where evals live | Config files in your repo | Hosted workspace plus SDK |
| License | Open source, MIT | Proprietary, hosted |
| CI regression gating | Natural fit, script thresholds | Supported, with platform tooling |
| Team collaboration | Limited without hosted tier | Core strength |
| Dataset management | Files you manage | Versioned, with trace promotion |
| Production logging | Pair with another tool | Built in |
| Red teaming | Strong, purpose built | Via custom datasets |
| Data residency control | Maximum, runs locally | Vendor review required |
| Best for | Engineering led teams, CI discipline | Cross functional teams, ongoing iteration |
Choose Promptfoo when engineers own the AI feature, your prompts already go through pull requests, data cannot leave your environment, or you need red team coverage for a security review. It is also the right first step for any team with no evals today, because the cost of starting is a YAML file.
Choose Braintrust when non engineers need to judge quality, when you want production traces flowing back into datasets, when you iterate on prompts daily and need history and comparison, or when several AI features share one evaluation process across teams.
Many mature teams use both: Promptfoo as the fast gate in CI, a hosted platform as the shared record and review surface. That is a legitimate architecture, not indecision, provided you do not maintain two divergent copies of the same test set.
What This Means for Your Business
Evals change the economics of AI features. Without them, every model upgrade, prompt edit and catalog change is a gamble, so teams freeze their AI features out of caution or ship changes blindly. With them, you can swap in a cheaper model and prove the quality held, or adopt a stronger model and measure the lift, which is a direct line to margin and conversion. This matters most for features touching revenue or brand: product recommendations, generated copy, support automation and pricing explanations.
The cost side is modest compared to the failure it prevents. An illustrative scenario: a description generator that hallucinates a certification on even a small share of listings can create compliance and returns exposure that dwarfs any tooling bill. Treat the evaluation platform as part of the feature, not an optional extra, and budget for the human time to maintain datasets, which is the real cost in either approach. For the observability side of the same discipline, see our overview of observable AI systems with logging and tracing.
How Contra Collective Bridges the Gap
We help commerce teams stand up evaluation as a real engineering practice: golden datasets drawn from real catalogs and conversations, judge rubrics that correlate with human review, CI gates that block regressions, and the right tool for your team's workflow. If you have an AI feature in production and no way to know whether it got worse last Tuesday, talk to our team.
Final Thoughts
Promptfoo and Braintrust are not really competitors so much as different answers to where evaluation should live. Put it in the repo and you get speed, reviewability and control. Put it in a hosted platform and you get collaboration, history and a shared view from production back to test. The tool matters less than the habits: a dataset that reflects real shoppers, narrow judge rubrics validated against humans, and a gate that fails the build when quality drops. Start with whichever fits your team this quarter, and make sure the first eval exists before the next prompt change ships.
More from the lab.
Vercel AI SDK vs LangChain: Building AI Features Into Storefronts
The AI SDK is a thin TypeScript layer for streaming and tool calling. LangChain is a broad orchestration framework with an agent runtime and its own observability story. For storefront features, the right choice depends on how much of the workflow lives in the browser and how much lives in a backend graph.
RAG vs Fine Tuning: Teaching an LLM Your Product Catalog
Every commerce team that wants an LLM to answer questions about its products faces the same fork: retrieve the facts at query time, or bake them into the model. The answer depends on what changes and how often. Here is a practical way to decide, including the hybrid pattern most production systems end up using.
Postman's MCP Plugin Installed Itself Into Claude Code and Codex: What the Audit Trail Actually Shows
A developer running Postman Desktop 12.33.4 on macOS found their Claude Code settings and Codex config both quietly enabled with Postman's MCP plugin, logged under a source string that does not appear anywhere in Postman's public plugin repository. The GitHub issue, filed October 25, 2026, has sat open and unanswered. No data breach is proven here, the MCP server failed authentication in the reported case, but the consent gap is real and it is a pattern worth auditing for in your own agentic coding stack regardless of whether this specific vendor is the one that did it to you.