GenAI Basics · Question 5 · Easy
What is few-shot prompting?
- Training a model from scratch on a few documents
- Including a few input-output examples in the prompt to show the model the desired task and format
- Limiting the model to a few output tokens
- Asking the same question a few times
Answer and explanation
Answer: B. Including a few input-output examples in the prompt to show the model the desired task and format
Explanation: Few-shot prompting demonstrates the task with a handful of examples inside the prompt, without changing the model's weights. Zero-shot prompting gives no examples.
Previous: The instructions and input text that a user gives an LLM to get a response are… · Next: What is a text embedding?
Practise genai basics
Try a fresh set of genai basics questions with an explanation after every answer, free and without signing up: GenAI Basics practice. Or sit a full placement mock test.
More genai basics questions
- What does it mean when an LLM "hallucinates"?
- In the context of LLMs, what is a token?
- The instructions and input text that a user gives an LLM to get a response are…
- What is a text embedding?
- What is the cosine similarity between the vectors (3, 4) and (6, 8)?
- What does Retrieval-Augmented Generation (RAG) do?
- Setting the sampling temperature of an LLM close to 0 typically makes its…
- What is an LLM's context window?
- A company's product price list changes every day, and its chatbot must answer…
- In a transformer model, what does the self-attention mechanism do?
More technical & programming practice
Pseudo-code · C Programming · Java · Python · Data Structures · Algorithms · Object-Oriented Programming · DBMS
LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge