---
name: few-shot-beispiele
technik: Few-Shot-Beispiele
klasse: { A: neutral, B: hilft, C: hilft }
modell: { claude-opus-5: hilft, claude-fable-5-1: hilft, claude-sonnet-5: hilft }
thinking: egal
konfidenz: belegt
quelle: https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices | https://developers.openai.com/api/docs/guides/reasoning-best-practices | https://arxiv.org/abs/2509.13196 | https://arxiv.org/abs/2310.11324 | https://ai.google.dev/gemini-api/docs/prompting-strategies
stand: 2026-09-20
anweisung: |
  Bei formatempfindlichen Ausgaben 1 bis maximal 3-5 durchgängig gleich formatierte Beispiele als klar markierten Beispielblock anhängen; bei kleinen Modellen eher am unteren Ende bleiben und Formate nicht mischen.
gegenanweisung: |
  Auf OpenAI-Reasoning-Modellen zunächst ohne Beispiele auskommen; bei kleinen Modellen keine große Beispielsammlung und keine uneinheitlich formatierten Beispiele anhängen.
---
Evidenz (Abrufdatum aller Web-Quellen: 2026-09-20):

- **A, Modell-Split, belegt (Claude-Familie hilft).** `https://platform.claude.com/docs/en/build-with-claude/prompt-engineering/claude-prompting-best-practices` (2026-09-20), Abschnitt „Use examples effectively": *"Examples are one of the most reliable ways to steer Claude's output format, tone, and structure. A few well-crafted examples (known as few-shot or multishot prompting) improve accuracy and consistency."* Mit Empfehlung *"Include 3-5 examples for best results"* und explizit für Denkmodelle: *"Multishot examples work with thinking. Use <thinking> tags inside your few-shot examples to show Claude the reasoning pattern."*
- **A, Klassen-Generikum, neutral, tentativ (OpenAI-Reasoning-Serie).** `https://developers.openai.com/api/docs/guides/reasoning-best-practices` (2026-09-20): *"Reasoning models often don't need few-shot examples to produce good results, so try to write prompts without examples first. If you have more complex requirements for your desired output, it may help to include a few examples."* Das ist „nicht nötig", kein Schadensnachweis — daher `neutral`, nicht `schadet`, für das Klasse-A-Generikum ohne Claude-Override.
- **B, hilft, belegt.** Dieselbe Anthropic-Seite, deckt laut Kopf ausdrücklich Sonnet 4.6/Haiku 4.5 ab; derselbe Abschnitt „Use examples effectively" gilt seitenweit.
- **C, hilft in Maßen / schadet bei Übermaß, belegt.** `https://arxiv.org/abs/2509.13196` (2026-09-20, Modelle namentlich: GPT-4o, GPT-3.5-turbo, DeepSeek-V3, Gemma-3, LLaMA-3.1, LLaMA-3.2, Mistral): *"Over-prompting, a phenomenon where excessive examples in prompts lead to diminished performance in Large Language Models"*, *"incorporating excessive domain-specific examples into prompts can paradoxically degrade performance in certain LLMs."* Zusätzlich `https://arxiv.org/abs/2310.11324` (2026-09-20): *"several widely used […] LLMs are extremely sensitive to subtle changes in prompt formatting in few-shot settings, with performance differences of up to 76 accuracy points when evaluated using LLaMA-2-13B."* (Auslassung entfernt eine reine Lizenz-Charakterisierung, die für diesen Befund nicht evidenztragend ist — Alvin Bot ist proprietär.) Und `https://ai.google.dev/gemini-api/docs/prompting-strategies` (2026-09-20): *"We recommend to always include few-shot examples in your prompts"*, aber *"if you include too many examples, the model may start to overfit the response to the examples"* und *"Make sure that the structure and formatting of few-shot examples are the same to avoid responses with undesired formats."*

**Korrektur an der Ausgangsmatrix:** Die Ausgangsmatrix zitierte `huggingface.co/deepseek-ai/DeepSeek-R1` mit *"may lead to performance degradation"* als Beleg gegen Few-Shot auf Klasse A. Die Model Card wurde in dieser Runde zweimal gezielt abgerufen (einmal allgemein, einmal mit gezielter Suche nach „few-shot") — die Phrase erscheint auf der Seite nicht. Zitat zurückgewiesen, aus dem Eintrag entfernt.
