How it works
The prompt contains a handful of completed cases: this note mapped to this label, this note mapped to that one. The model is then given a new note and asked for the same kind of output. The examples teach a format and a boundary more cheaply than a fine-tune, and they can be edited by changing text. They are not chain of thought unless the examples themselves write intermediate steps. A label with no reasoning is still few-shot. Steps with no stored examples are a different lever. A prompt can use both, and the trace should say which one moved.
Examples spend the window. Four long notes can crowd out the policy those notes were meant to illustrate. The model also copies surface similarity. A new note that resembles a damaged-parcel example will inherit that label even when the text is about a wrong address, if the address example was shorter or further away. Order matters, and one mistaken example teaches a boundary you did not intend. The examples are part of the instruction, so a stale example is a stale policy.
A worked example
Four labelled parcel notes and a fifth to classify
A parcels desk classifies free-text notes as delay, damage or address error. The prompt holds four labelled notes. One damage note mentions a crushed corner and a photo. One address note mentions a wrong postcode. The new note says "box arrived, corner crushed, and the postcode on the label is not the depot's". The model returns damage only, matching the crushed-corner example and ignoring the postcode clause that the address example had shown in isolation. No retrieval ran. No second call ran. The classification is the nearest example winning a note that needed two labels, which the instruction never demonstrated. Adding a fifth example that carries both labels changes the next answer, and it also makes the prefix longer.
Illustrative example, not a production trace and not a measured result.
What goes wrong
- The new case resembles one example in wording and gets that example's label, even though a closer reading matches a different class the prompt also showed. The instruction never showed a note that carries both labels.
- A single mislabelled example is copied into later outputs, and the error looks like a model fault rather than a taught boundary.
- The examples grow until they crowd the policy text out of the window, so the model follows a case and never sees the rule that qualifies it.
How to measure it
Hold a set of notes already labelled by a person, including cases that sit on a boundary between two examples. Compare the model's label with the hand label and with the nearest example's label, so a copy is visible.
After you add, remove or reorder examples, compare task success for that task and cohort. Read the notes where the person corrects the class, and keep the example set version on the turn.
How Abracadabra helps
A correction that changes the class to something an example already showed, or away from an example it copied, is a few-shot boundary problem. After the example set changes, compare task success for that task and cohort.
When context is lost, people restate a fact or repeat the request. Abracadabra pins those corrections and repeated intents to the turn. After a change to what the agent keeps, compare task success for that task and cohort with the previous period.
Request access to read this on your own agent.