- Home
- Guides and documents
- Gemini Cookbook: Prompting Examples
Gemini Cookbook: Prompting Examples
Short notebooks that each show one prompting technique
What it is
A section of the Gemini API Cookbook with one notebook per prompting technique: zero-shot, few-shot, role prompting, chain of thought, self-ask, adding context, prefixes and base cases, plus basic classification, extraction, reasoning, code review and evaluation tasks. A compact way to see each technique in runnable form.
Good for
- See few-shot prompting in a runnable notebook
- Practise chain-of-thought prompts
- Build a simple classification prompt
What you need
Gemini API key to run the notebooks
Worth knowingIntroductory level; the techniques transfer to other models but the code uses the Gemini SDK.
Sources
- https://github.com/google-gemini/cookbook/tree/main/examples/prompting (project README, read 11 Nov 2026)
- https://api.github.com/repos/google-gemini/cookbook (GitHub API, read 13 Nov 2026)
The summary is ours, written from the README. Spotted an error? See how we work.