Skip to content
PromptBeat · Model & Prompt

PromptBeat execution

Run the complete evaluation pipeline, control Provider scope, and inspect normalized results.

PromptBeat execution evaluates model and Prompt behavior through the configured external evaluation backend. Start with a small scope and make every remote call explicit.

Terminal window
promptbeat run \
--config examples/llm-basic/promptbeat.yaml \
--output-dir artifacts/llm-basic/run \
--progress plain

The current Go application runs five stages:

compile → generate → validate generated cases → eval → parse
StageWhat happens
CompileConvert the PromptBeat project into backend configuration
GenerateRun external-backend red-team generation
ValidateCheck the generated backend artifact when supported
EvalCall configured Target providers through the external backend
ParseNormalize the raw result into PromptBeat EvaluationResult
CommandUse it when
promptbeat pipeline runYou want the explicit full-chain command and backend selection
promptbeat run promptfooYou already have backend YAML and want raw execution
promptbeat evalYou have backend YAML and may need Provider overrides
promptbeat compile promptfooYou want to inspect generated backend YAML before execution

Run promptbeat --help for the exact flags in your build.

The examples/llm-basic project keeps three roles separate:

  • Generator: expands red-team cases in the external-backend generation stage.
  • Judge: applies model-based grading where the configured assertions require it.
  • Target: the model or Prompt endpoint under evaluation.

Each role can use a different model and endpoint. Environment placeholders are validated before the project pipeline starts.

PromptBeat records what the backend returns, but it cannot infer hidden model state or HTTP Agent tool activity. Results remain response-scoped.

The output directory defaults include:

  • promptfoo.redteam.yaml — compiled backend configuration;
  • promptfoo.generated.yaml — generated backend artifact;
  • promptfoo-result.json — raw backend result;
  • evaluation_result.json — normalized Go result;
  • report.html — rendered PromptBeat report.

Artifact paths can be configured only within the bounded output directory.

Provider overrides are available on promptbeat eval through repeated --provider values or --provider-file. Keep the cases and Scenario set constant when comparing models, and record every override with the result.