Prompt Testing
Domain: Prompt Engineering
π― Motivation
Systematically testing prompts with various inputs to ensure they work reliably across edge cases, not just happy paths.
π Concrete Example
Test βClassify sentiment: [text]β with: clearly positive, clearly negative, neutral, mixed, sarcastic, empty, very long. If it fails on sarcasm, add sarcastic examples to the prompt.
π Analogy
Stress-testing a bridge - you donβt just test with a car (happy path); you test with heavy trucks, high winds, and earthquakes (edge cases). Prompt testing does this with diverse inputs.