All posts
Testing prompts with golden datasets
Insights 9 min read· Aug 26, 2026· By Engineering

Testing prompts with golden datasets

The lightweight eval process that catches regressions before your users do.

You wouldn't ship code without tests. Prompts deserve the same rigor — for less effort than you'd think.

The golden dataset#

20-50 representative inputs with expected outputs (or a rubric). Version this file. Run it on every prompt change.

Grading#

For factual answers, string match. For open-ended, use LLM-as-judge with a 1-5 rubric and a stronger model than the one under test.

Build this with TokenRex

TokenRex is an LLM marketplace by Asirex Labs. Choose an enabled model, create a private API key and use the supported endpoint shown in Docs. Check live prices before your first request.