Gemini prompting best practices
Google's prompting strategies guide emphasizes a handful of high-leverage habits.
**Give clear, specific instructions.** State the task, the desired length, and the format. Vague asks get vague answers; 'summarize in 3 bullets for a non-technical reader' beats 'summarize this'.
**Add examples.** Few-shot examples are one of Google's most-recommended levers — showing one or two input/output pairs steers tone and structure better than describing them.
**Provide context.** Give Gemini the background it needs in the prompt: the audience, the source material, the goal. It can't infer your situation.
**Use constraints and a prefix/structure.** Spell out what to include and exclude, and use clear sections (or a response prefix) so Gemini knows where instructions end and data begins. Iterate: change one variable at a time when a response isn't right.