Examples and few-shot
A section of the "Prompting and context" topic. The questions check an understanding of practice, not memory of specific library APIs. After each answer comes a review: why the correct option is right, what is wrong with each incorrect one and which chapter to read.
Quiz difficulty Formats: several correct options, one correct option, order of steps
01
What we check
- When to give examples
- Examples and the prefix cache
- An example changes the behavior
- Example format and tokens
- In-context learning is retrieval
- A style skill from your own texts
02
Where to read
- Li, AI Agents in Depthsec. 2.4.5 · sec. 2.5.2 · sec. 2.7.2
- Huyen, AI Engineeringch. 5