What's in this guide
Read in order, or jump to the section you need:
1. What is prompt engineering? — definition and core techniques.
2. What is context engineering? — definition and what's in the window.
3. How the two relate — prompt engineering as a subset.
4. The context window — the shared, finite resource both disciplines manage.
5. RAG — retrieving the right context instead of pasting everything.
6. Memory — carrying context across turns and sessions.
7. Prompt vs context engineering at a glance — comparison table.
8. Which should you invest in? — a practical decision.
9. Sources & further reading.