Few-shot examples are the single most effective lever for shaping LLM output without fine-tuning. This builder lets you enter clean input/output pairs in a form and exports them in the exact format your API expects — OpenAI message arrays, Anthropic XML, or a generic layout.
How it works
Add one row per example: the representative input and the ideal output you want the model to learn from. Pick a target format and the tool assembles a consistent, copy-ready block:
- OpenAI — alternating
user/assistantrole messages for themessagesarray. - Anthropic —
<example>blocks with<input>and<output>tags for Claude. - Generic — plain
Input:/Output:pairs that work in any prompt.
All formatting happens locally. Nothing you type is uploaded.
Tips and examples
Keep examples diverse — cover the easy case, a tricky edge case and the failure mode you want the model to avoid. Two to five examples is usually enough; beyond that you spend tokens for diminishing returns. Place the examples after your instruction and before the real user input so the model sees the task it must complete last. If output formatting matters (JSON, a specific schema), make every example’s output strictly conform — the model copies whatever it sees.