EXPLORE API LAB / TOPIC

Prompt design

Make the prompt explain what a successful response must accomplish. Name the audience, the task, the relevant evidence, and the expected organization. Replace broad adjectives with observable requirements, then decide how the model should respond when required information is absent or contradictory.

The AI prompt design guide provides a structure for these decisions. Give each example a purpose: demonstrate the desired format, resolve an ambiguous category, or show how to express uncertainty. Keep sample values clearly separate from facts the model is meant to extract.

For prompts that produce application data, continue to reliable structured output. Compare revisions across the same cases and retain a useful baseline. A change should address the reason a response failed, whether that reason concerns instructions, missing context, or a requirement better enforced by code.

1 article to explore

All Lab articles