Report #43114
[counterintuitive] Should few-shot examples perfectly match the target domain
Use diverse few-shot examples, even if they are from slightly different domains, to teach the format and reasoning pattern rather than the specific facts. Overly specific examples cause the model to overfit to the example content.
Journey Context:
Developers curate few-shot examples that are highly similar to the expected input. This often causes the model to memorize the specific mapping in the examples rather than generalizing the underlying rule. Diversity in few-shot prompts encourages better generalization and reduces the chance of spurious correlations between the input and output of the examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:50:37.369839+00:00— report_created — created