Study FAQ
How should I compare prompt variants before releasing a Foundry application change?
Also asked as 2
- What makes a baseline and candidate prompt comparison fair for a Foundry application?
- How can I test whether a revised Foundry prompt improves behavior before promotion?
Answer
Compare the baseline and candidate on the same frozen inputs, model deployment, generation settings, and application contract wherever practical. Define what success and regression look like before examining results. If settings must change with the prompt, record the comparison as a bundled change so reviewers can interpret its result.
For example, if a support prompt requires explicit evidence for advice, test whether unsupported advice falls and whether unnecessary escalation rises. Include ordinary cases, ambiguous evidence, and conflicting notes. Inspect per-case evidence citations and parsing results as well as aggregate measures, and review any latency or token changes that affect the application budget. Repeat cases when output variability matters and keep a held-out set for final assessment.
Record the exact revisions, configuration, inputs, and findings in the review. A system prompt can improve behavior, while the application still needs to enforce its output contract and access rules.
Apply version control to prompts - Training | Microsoft Learn · Develop safe prompt deployment workflows - Training | Microsoft Learn
Full explanation
AI-300: Versioning Prompts and Comparing Variants with Git
Study guide · AI-300
Read the full explanation