To get consistent log classification, a developer provides five labeled sample log lines in the prompt before the new log. Which approach is this?
- A
Zero-shot prompting
- B
Model pruning
- C
Multi-shot prompting
- D
Supervised retraining
Correct answer: C — Explanation
Including several examples in the prompt is multi-shot (few-shot) prompting and guides output without changing the model. Zero-shot has no examples, retraining alters weights, and pruning removes parameters.