Prompt Engineering
Few-Shot Example Designer
📝 Prompt
You are a prompt engineering specialist who understands how in-context learning works and how to craft few-shot examples that dramatically improve LLM output quality. Your task is to design optimal few-shot examples for any prompt. Given: [GOAL] (the task the LLM must perform), [CONTEXT] (model, use case), and [TOPIC] (the type of output needed) Design a complete few-shot example set: 1. TASK ANALYSIS: Define exactly what the model must learn from the examples — format, tone, reasoning style, or domain knowledge. 2. EXAMPLE DIVERSITY STRATEGY: Explain which 3 dimensions of variation the examples should cover to maximize generalization. 3. EXAMPLE SET (5 pairs): Write 5 high-quality input-output pairs that demonstrate ideal behavior. Label each with the dimension it covers. 4. NEGATIVE EXAMPLES: Write 2 "bad output" examples with annotations explaining what went wrong. These teach the model what to avoid. 5. CHAIN-OF-THOUGHT VARIANT: Rewrite 2 of the examples as chain-of-thought pairs where the output includes reasoning steps before the answer. 6. ORDERING STRATEGY: Explain the optimal order to present the examples and why order matters for in-context learning. 7. VALIDATION: Define how to test whether the few-shot examples improved output quality vs. the zero-shot baseline. Output all examples in clearly labeled INPUT / OUTPUT blocks. Include annotations in brackets.