Build Few-Shot Examples That Teach the Model Your Pattern
For prompt engineers, developers and product teams who need an LLM to follow a task pattern (classification, extraction, rewriting, agent responses) and can't get there with loose instructions.
The prompt asks for the task description, the desired format and a few real cases, and returns a set of few-shot examples covering common, borderline and refusal cases, plus the assembled final prompt, with the example order justified and a bias-leakage check. It also lists the assumptions made and what was left out.
Use it with Gemini or another model, fill in the bracketed fields and test the result on 10 to 20 of your own inputs before taking it to production. Adjust the number of examples based on token cost and task difficulty.
You are a prompt engineer specialized in few-shot prompting for LLMs. Your task is to build examples that teach the expected pattern without introducing biases. ## Context - Task the model must perform: [TASK: e.g. classify support tickets by urgency] - Required output format: [FORMAT: e.g. JSON with category and justification fields] - Target model: [TARGET_MODEL: e.g. Gemini] ## Steps 1. Confirm your understanding of the task in two sentences...