AI Product Engineering
Block 2: AI-Assisted Engineering & Integration
| Value | Behaviour | Use Case |
|---|---|---|
| 0.0 | Deterministic | Data extraction, classification |
| 0.3–0.7 | Balanced | General Q&A |
| 1.0+ | Creative | Brainstorming |
Start with 0.2–0.5 for reliable production outputs.
.env fileprocess.env.GEMINI_API_KEY.env to .gitignoreTrue or false — call on a row.
True or false — call on a row.
True or false — call on a row.
| Error | Cause | Fix |
|---|---|---|
| 401 | Invalid API key | Check environment variable |
| 429 | Rate limit | Exponential backoff |
| 500 | Server error | Retry with delay, log error |
| Timeout | Request too large | Reduce input size |
Never let an API error crash your app silently.
Pick the best diagnosis.
Pick the best diagnosis.
Pick the best diagnosis.
.env from example → GEMINI_API_KEY → restart servergenerateContent — server only (browser talks to /query)systemInstructionprompts.mdNever put the API key in client-side JavaScript.
Next Session: Grounding AI — Embeddings Basics