Introduction to AI and Applications (1BAIA103 / 1BAIA203) · Module 2 — Prompt Engineering
Zero, One and Few Shot Prompting
How many examples should we show the model before asking for the answer? None, one, or a few? That choice gives us zero shot, one shot and few shot prompting.
The full lesson has a short video, an exam-style answer, notes, flashcards and a quiz.
Asked in the VTU model question papers
- MQP I Q3c (6 marks): Design a Few-Shot Prompt that trains ChatGPT to classify customer feedback as positive, neutral, or negative.
- MQP II Q3b (6 marks): Build a zero-shot prompt to classify comments as positive or negative. Explain why it qualifies as zero-shot.
- MQP II Q4b (6 marks): Develop a one-shot example to help an LLM convert active voice to passive voice. Illustrate with the example and the instruction.