Configuring the promptfoo response cache
How the promptfoo cache saves time and API spend, when to clear or disable it, moving it for CI, and avoiding stale results after a provider or prompt change.

Keeping promptfoo eval and red team runs fast, affordable and reliable: caching, rate limits, memory, retries, upgrades, reports and debugging.
How the promptfoo cache saves time and API spend, when to clear or disable it, moving it for CI, and avoiding stale results after a provider or prompt change.
Tuning maxConcurrency, delays and adaptive concurrency so large promptfoo evals and red teams finish without hitting provider quotas or overloading your own target.
Fixing out-of-memory failures on big suites: JSONL output, --no-table, stripping stored fields and splitting suites across runs.
Keeping promptfoo current across frequent releases: the Node.js 22.22 requirement, pinning versions in CI and Docker, reading release notes for breaking changes and re-baselining results after an upgrade.
Recovering from timeouts and provider errors in long runs with promptfoo retry, telling errors apart from failed assertions and keeping error rates out of pass-rate gates.
Picking between HTML, JSON, JSONL, CSV and JUnit XML for promptfoo results depending on who reads them, and handling the sensitive data those files contain.
Using promptfoo view to compare outputs side by side and rate responses, then sharing results to promptfoo cloud or a self-hosted server, with the data each share uploads.
Using promptfoo cost and latency assertions with thresholds to catch prompt or model changes that make a feature slower or more expensive, and reporting spend per suite.
Finding why a promptfoo run failed: --verbose and LOG_LEVEL=debug, promptfoo logs, promptfoo debug output and the -v flag that means vars, not verbose, on eval.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.