prompt-engineering
7 tutorials tagged “prompt-engineering”.
- Zero-Shot and Few-Shot PromptingZero-shot prompts ask directly; few-shot prompts show examples first. See how a few examples make answers consistent and easy to use.
- Grounding Prompts in SourcesGive the model the source, ask it to answer only from it, and ask for quotes: grounded prompts reduce invented answers and make checking easy.
- Breaking Tasks into Steps and Prompt ChainingSplit big tasks into small prompts, where each output feeds the next: easier for the model, easier to check, and easier to fix one step at a time.
- Prompt Before and AfterWeak prompts made strong: before-and-after examples, how to test and refine a prompt step by step, keep a prompt library, and spot what prompts can't fix.
- The Five-Part Prompt FrameworkRole, Context, Task, Constraints and Output: a five-part framework that turns a vague request into a clear prompt, with a full worked example.
- Role, Context and Structured OutputGive a model a role and the right context, and ask for a strict format such as JSON or a table, so its answers can go straight into a spreadsheet or program.
- What Is a PromptA prompt is the instruction you give a model. See how a vague prompt and a clear one differ, and what system prompts and user prompts are.