1. Foundations of Prompting
A prompt is the input text or instruction given to an AI language model to guide its response, and prompt engineering is the practice of designing, crafting, and optimizing those i...
Read full chapter →The essential Prompt Engineering cheat sheet: 6 concise chapters you can read in minutes, distilled from the full deck. When you're ready, drill the flashcards or test yourself under exam conditions.
A prompt is the input text or instruction given to an AI language model to guide its response, and prompt engineering is the practice of designing, crafting, and optimizing those i...
Read full chapter →Prompting strategies differ in how much guidance they provide. In zero-shot prompting, the model performs a task using only its pre-trained knowledge, with no examples at all. One-...
Read full chapter →For complex tasks, the model often benefits from being asked to reason explicitly. Chain-of-thought (CoT) prompting instructs the model to reason step-by-step before giving a final...
Read full chapter →Beyond the words of the prompt itself, generation parameters strongly influence output. Temperature is a parameter that controls randomness: lower values yield more deterministic o...
Read full chapter →A key failure mode of language models is hallucination, in which the model generates confident but factually incorrect information not supported by its training data or the context...
Read full chapter →As prompting matures, more techniques systematize and automate the process. DSPy, a framework from Stanford, replaces manual prompt writing with programmatic prompt optimization us...
Read full chapter →Done reading?
Test yourself with the Prompt Engineering practice exam — timed questions, instant score, full review of wrong answers. Free.
🎯 Take the Practice Exam →