Google AI Prompt Engineering Best Practices: 12 Key Techniques from 2025 White Pape
· 7 min read
1. Provide examples
One-shot/few-shot: You can provide a single example or multiple examples.
Providing examples allows the model to analyze and capture the characteristics of the results that are similar to the examples, achieving better outcomes.
Example 1: Product description generation (Few-shot)
Prompt:
Write an e-commerce description for a new Bluetooth headset based on the example:
Example product: Smartwatch
Features: 50m water resistance/2-week battery life/blood oxygen detection
Copy: Challenge the depths of 50 meters, accompanying you to explore the underwater world. Long-lasting battery life of 14 days, continuous health monitoring day and night...
New product: Wireless noise-canceling headphones
Features: 40dB active noise cancellation/30-hour battery life/spatial audio