nerdexam
Amazon

AIF-C01 · Question #248

A company wants to use a large language model (LLM) to generate product descriptions. The company wants to give the model example descriptions that follow a format. Which prompt engineering…

The correct answer is D. Few-shot prompting. Few-shot prompting provides the model with several example product descriptions that follow your desired format, enabling it to learn the pattern and generate new descriptions in the same style without further training.

Submitted by lucia.co· Mar 30, 2026Prompt Engineering

Question

A company wants to use a large language model (LLM) to generate product descriptions. The company wants to give the model example descriptions that follow a format. Which prompt engineering technique will generate descriptions that match the format?

Options

  • AZero-shot prompting
  • BChain-of-thought prompting
  • COne-shot prompting
  • DFew-shot prompting

How the community answered

(34 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    9% (3)
  • D
    82% (28)

Explanation

Few-shot prompting provides the model with several example product descriptions that follow your desired format, enabling it to learn the pattern and generate new descriptions in the same style without further training.

Topics

#Prompt Engineering#Few-shot prompting#LLM techniques

Community Discussion

No community discussion yet for this question.

Full AIF-C01 Practice