A developer is testing a new prompt intended to make a model translate informal customer feedback into formal written summaries. The first attempt produces summaries that retain colloquial phrasing. Which prompt engineering adjustment should the developer try first?
- ADecrease the model's top-p sampling parameter to produce more deterministic output.
- BAdd a few-shot example pairing one informal feedback excerpt with its correct formal summary before the live input. Correct
- CRewrite the prompt to ask the model to summarise the feedback without mentioning formality.
- DIncrease the maximum output token limit so the model has room to restate the feedback in full before summarising.
Why A is wrong: Lowering top-p makes output more predictable but does not instruct the model on what constitutes formal phrasing; the model can deterministically produce informal language if that matches its priors for this input.
Why B is correct: A few-shot example directly demonstrates the mapping from informal to formal register, giving the model a concrete reference for what formalisation looks like, which is more targeted than any sampling parameter adjustment.
Why C is wrong: Removing the formality instruction would make the problem worse; without guidance on register, the model has no reason to shift away from informal phrasing.
Why D is wrong: More output tokens do not address the formalisation problem; a longer informal summary is still informal. The issue is the model's understanding of the target register, not the output length.