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 fileos.environ.get().env to .gitignore| 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.
.env with API key → add to .gitignorepip install google-generativeai python-dotenv flaskNext Session: Grounding AI — Embeddings Basics