Debugging and iterating prompts
Isolate a reproducible failure and change one cause at a time.
How to use it
- Save the exact prompt, input, model configuration, observed output and expected behavior. Classify the failure as missing evidence, instruction conflict, formatting or capability.
- Change one element that could explain the failure. Compare the original and revised prompt on the same examples, including cases that already work.
- Repeat uncertain cases and record pass rates rather than selecting a favorable answer. Keep a held-out set to expose overfitting.
Prompt template
Diagnose {{prompt}} on {{failing_cases}}. Expected: {{criteria}}. Actual: {{outputs}}. Identify the most likely failure class and propose one minimal edit. Explain the expected effect and define a comparison using both failing and previously passing cases. Do not claim the edit is validated until the comparison has run.Check the result
- Measure both recovered failures and newly introduced failures.
- Record model version and settings so later results are comparable.
Common mistakes
- Adding more instructions can make an instruction conflict worse. Remove contradictions before adding detail.