Out-of-the-box behavior
A general-purpose AI model trained on diverse public data will answer valid questions, but often with broad, surface-level responses. When prompts lack context and constraints, the model returns generic suggestions rather than prioritized, personalized guidance. Example user question:- Plan meals
- Create a shopping list
- Buy in bulk
- Choose store-brand products
What is prompt engineering?
Prompt engineering shapes a model’s output by defining role, intent, constraints, and expected format. The two primary components are:- System message (define role and expertise)
- User prompt (specify the task, constraints, and desired format)
A clear system message gives the model purpose and focus. A specific user prompt supplies constraints and the expected format, which together produce more useful and actionable responses.

Practical prompt-engineering checklist
Use this checklist to convert a vague request into a high-quality prompt:| Component | Purpose | Example |
|---|---|---|
| System message | Define role/expertise and tone | ”You are a personal finance advisor.” |
| Context | Provide background about the user or scenario | ”Family of four, two adults, two children, urban area.” |
| Constraints | Limits on format, length, or assumptions | ”Top-10 list, 1–2 sentence explanation each.” |
| Metrics | If relevant, ask for estimates or comparisons | ”Include estimated monthly savings and difficulty level.” |
| Output format | Specify JSON/table/bulleted list for easy parsing | ”Return a Markdown table with columns: strategy, savings, difficulty.” |
Example: Before vs After
Before (vague prompt):Tips for more advanced prompts
- Break complex requests into step-by-step subtasks (decomposition).
- Provide examples of the desired output format (few-shot prompting).
- Limit or require reasoning chains when needed, e.g., “Show calculations.”
- Use role-play to shift tone or level of expertise (e.g., “Act as a nutritionist and cost analyst.”)
Links and references
- Kubernetes Docs — Concepts (example knowledge resource)
- OpenAI Prompting Guide (practical prompting patterns)
- Prompt Engineering Best Practices (blog) (examples and templates)