Recipe: compare prompts on a small test set
Recipe — A/B compare prompt variants. Pointer to the canonical SDK sample.
The canonical sample lives in the SDK: samples/core/compare_evaluations.py — compare evaluation runs side-by-side to measure improvement over time.
Pattern
Hold model and dataset fixed; vary the prompt.
Create an evaluation per variant with
client.evaluations.create(model=, benchmark=).Wait for completion on each via
client.evaluations.wait_for_completion(evaluation).Compare top-line
accuracyand per-result deltas.
See also
Last updated
Was this helpful?