A few-shot prompt fails in a quiet way. The prompt runs, the model answers, and the answers are almost right, but not quite, and never the same way twice. The cause is usually not the model. It is the example set: the model copied the pattern your examples actually showed, and that pattern had cracks in it. Few-shot prompting teaches by repetition, so every inconsistency in the set is part of the lesson.

This guide covers the four mistakes that break example sets most often, why each one does the damage it does, and how to assemble a clean set with the free Few-Shot Example Formatter on Ovatly.

Contents

  • Quick answer
  • Mistake 1: mixed label styles
  • Mistake 2: incomplete pairs that vanish quietly
  • Mistake 3: sloppy or contradictory outputs
  • Mistake 4: ten weak examples instead of three good ones
  • How to build a clean set, step by step
  • Worked example: a broken set and the same set fixed
  • Limitations and alternatives
  • Common mistakes, in short
  • FAQs
  • Conclusion

Quick answer

Few-shot examples teach by pattern, and the pattern includes your mistakes. The four that matter most: mixing label styles inside one block, leaving pairs incomplete so they get skipped without you noticing, letting sloppy or contradictory outputs stand as the standard, and padding the set with weak examples when two to five good ones would teach better. The fix is mechanical: one label style, complete pairs only, outputs you would accept as final answers, and a short set. The Few-Shot Example Formatter enforces the formatting half of that discipline automatically.

Mistake 1: mixed label styles

The model infers the pattern from repetition, so the labels are part of the pattern. If one pair says Input: and the next says Question -, the pattern is muddier and results vary more. The same applies to spacing and order: a set that alternates between styles, or puts the output label first in one pair and second in another, gives the model several competing patterns instead of one.

This mistake is easy to make when examples are gathered from different places, or typed at different times in different moods. It is also the easiest to prevent: pick one label style (Input/Output, Q/A or User/Assistant) and apply it to every pair, which is exactly what a formatter does by construction.

Mistake 2: incomplete pairs that vanish quietly

An example teaches only when it is complete: an input with the output you expected for it. You can type a pair with only an input into the formatter, but incomplete pairs are ignored in the output. If no pair is complete, the tool says so instead of producing an empty block.

The danger is the silent middle case. A set drafted with five pairs where two are missing their outputs does not fail loudly; it produces a tidy block of three pairs, and you may never notice the set shrank. The pattern the model learns comes from the three survivors, which may not cover the cases the missing two were meant to demonstrate. Check the finished block pair by pair against your draft before you paste it anywhere.

Mistake 3: sloppy or contradictory outputs

The outputs inside your pairs are the standard the model aims at. If one output is a single word and the next is a word plus a sentence of explanation, the set teaches both shapes, and answers will drift between them. If two outputs apply different rules to similar inputs, for instance one borderline review labelled positive and a similar one labelled negative with no visible reason, the model has no single rule to extract, and its boundary cases become coin flips.

Sloppiness is subtler than contradiction and just as costly. An output with a trailing explanation you did not want, a capitalised label in one pair and lowercase in the rest, or a format you would edit before sending: each is a pattern the model is entitled to copy. Read every output as if it were the answer you are about to receive, because structurally, it is.

Mistake 4: ten weak examples instead of three good ones

More examples feel safer, and the formatter's own guidance runs the other way: two to five good examples usually beat ten sloppy ones. Each additional pair is another pattern statement, and weak pairs add noise, contradictions and edge cases you did not intend to teach. A long set also hides the first three mistakes better; nobody proofreads pair nine as carefully as pair one.

Build the smallest set that covers the pattern: the typical case, the boundary case, and the format, stated cleanly. Add a pair only when you can name the failure it prevents.

How to build a clean set, step by step

  1. Open the Few-Shot Example Formatter.
  2. Type an instruction line if the block needs one. It is optional, but a clear instruction plus clean examples beats either alone.
  3. Fill in at least one complete input and output pair, and add more pairs with the button, keeping every output to the standard you would accept as a final answer.
  4. Choose one label style that matches your prompt: Input/Output, Q/A or User/Assistant. The formatter applies it to every pair, so styles cannot drift.
  5. Keep or remove the trailing empty prompt, then copy the block. Before pasting, count the pairs in the result and confirm none were skipped.

Worked example: a broken set and the same set fixed

Here is a sentiment set as it might be typed in a hurry:

Classify the sentiment of each review.

Input: I love this film
Output: positive

Question - The food was cold
Answer - negative, because the meal arrived cold

Input: The seats were uncomfortable

Three mistakes are visible: the second pair switches to a different label style and adds an explanation to its output, and the third pair has no output at all. Run through the formatter, the incomplete pair is skipped, but the label drift and the chatty output would survive if typed into the pairs as they stand. Corrected, with one label style, matching outputs and the third pair completed, the same set becomes:

Classify the sentiment of each review.

Input: I love this film
Output: positive

Input: The food was cold
Output: negative

Input: The seats were uncomfortable
Output: negative

Input:
Output:

Every pair now states the same pattern: one lowercase label, no explanation, and a trailing empty prompt ready for the real review.

Limitations and alternatives

The formatter can guarantee consistency, but it cannot judge example quality: it will faithfully format a contradictory set into a tidy, contradictory block. The judgement calls, which cases to include, where the label boundary sits, whether an output is good enough to be the standard, stay with you. Its skipping rule also cuts both ways: it protects the block from half-finished pairs, but it will not warn you pair by pair about which ones vanished, so the final count check matters.

The labels are literal text. If your chat tool has its own few-shot or examples feature, use that instead of pasting a block.

Common mistakes, in short

  • Mixing label styles between pairs, such as Input: in one and Question - in the next.
  • Leaving pairs incomplete, then never noticing the set shrank when they were skipped.
  • Accepting sloppy outputs inside pairs, including explanations and formats you would edit in a real answer.
  • Contradicting yourself across pairs, so no single rule can be extracted.
  • Padding the set past five pairs with weak examples instead of keeping two to five good ones.

FAQs

What is the most common few-shot mistake? Inconsistent formatting. If one pair says Input: and the next says Question -, the model infers a muddier pattern and results vary more.

What happens if an example is missing its output? The pair is skipped. Incomplete pairs are ignored in the output, because an example needs its expected output to teach the pattern.

How many examples should I use? Two to five good examples usually beat ten sloppy ones. The formatter can guarantee consistency, but it cannot judge example quality.

Can contradictory examples break a prompt? Yes. If the outputs inside your pairs follow different rules, the model has no single pattern to copy, and its answers will drift between them.

Do the labels have to match my chat tool? The labels are literal text in the pasted block. If your chat tool has its own few-shot or examples feature, use that instead of pasting a block.

Conclusion

An example set is a small teaching document, and the model is a literal student: it learns the pattern you showed, cracks included. One label style, complete pairs, outputs held to a final-answer standard, and two to five pairs instead of ten will fix nearly every few-shot failure. The Few-Shot Example Formatter handles the mechanical half, applying one label style and skipping incomplete pairs, leaving the judgement half to you. For the other side of the decision, when examples help at all, read our comparison of few-shot vs zero-shot prompting, and browse the rest of the AI and Prompt Tools guides.