Report #95243
[counterintuitive] Do few-shot examples need to be from the exact target domain
Prioritize structural consistency and format in few-shot examples over exact domain relevance; out-of-domain examples with the correct output schema often outperform poorly formatted in-domain examples.
Journey Context:
Developers spend hours curating few-shot examples that perfectly match the specific domain of the query, assuming the model learns the 'topic' from them. LLMs primarily learn the pattern, format, and style from few-shot examples, not the factual domain. An out-of-domain example that perfectly demonstrates the desired JSON schema or reasoning step is more effective than an in-domain example with a messy or inconsistent format.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T18:26:31.708177+00:00— report_created — created