Does Gemini need examples in the prompt?
Google recommends always including a few examples of the output you want, formatted the same way, and not so many that the model copies them.
Where do instructions go in a long Gemini prompt?
Put the persona, essential constraints and output format first; with long context, put the specific question at the very end, after the text.
Should I change Gemini’s temperature?
Gemini 4 and 3.6 and later ignore custom temperature, top_p and top_k, so remove them. On earlier Gemini 3 models, keep the defaults.
Can I mix XML tags and Markdown?
Google advises choosing one format for structure and using it consistently within a prompt.