promptfoo

A comparison testing tool for prompts and models

What it is

An evaluation tool for prompts and models that runs the same test cases across multiple prompts or models for side-by-side comparison, via CLI or UI, suited to regression testing.

Highlights

  • Compares multiple prompts and models on one test set
  • CLI and UI both available
  • Assertions and custom scoring rules
  • Fits into CI pipelines

How to use

Define cases and candidate models in a config file, run the command, then review the comparison.

License

Released under MIT. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.