Let’s Get Certified
Module 12 / 16 · Techniques to improve generative AI model output

Choose a prompt technique and test its effect

Test instructions, examples and tool-assisted prompts against held-out cases.

Choose a prompt technique and test its effect

Work through the decision

A team wants structured summaries in a strict house style. It adds a persona, five examples and a second model call in one change. Quality improves, but nobody knows why. How should the next trial be run?

Check your reasoning

Hold the model, settings and evaluation set fixed. Start with a clear task, output schema and a zero-shot baseline. Test one representative example, then a small diverse set. Use a staged chain when extraction and synthesis need separate checks. Record adherence and factual errors separately.

Watch the source lesson at 4:46:44

Compare the choices

Use zero-shot instructions
Specify task, constraints and output form without demonstrations. A role can focus audience or tone when the behavior is already familiar.
Use few-shot examples
Show a small diverse set of input-output demonstrations. A single demonstration is one-shot. Reserve different examples for evaluation.
Chain validated stages
Split a task into steps with intermediate outputs that can be inspected or validated before the next stage.
Use tool-assisted reasoning and action
An agent can select a permitted tool, observe the result and continue. Bound steps and validate tool output. For complex reasoning, request verifiable evidence or intermediate calculations.

Try one-shot before adding more examples

Give one correctly formatted order summary, then evaluate on unseen orders. Add a second example only when it demonstrates a missing boundary, such as a cancelled item. Keep evaluation orders out of the prompt so improvement measures generalization.

Practice the guide skills

  1. Write a task, context, constraints and expected format. Compare the result against a baseline on held-out cases. Watch 4:46:44
  2. Compare no demonstrations, one example and several examples. Test a role instruction and split a complex task into validated stages. Watch 4:48:40
  3. Distinguish a prompt that asks for checkable reasoning steps from ReAct-style use of actions and observations. Verify calculations or tool results independently. Watch 4:52:12

Official objectives for this lesson

Related lesson · Separate rules, predictions and actions

Knowledge check

Choose a prompt technique and test its effect quiz

Answer 3 questions. Check each answer for an explanation.