AWS Certified AI Practitioner (AIF-C01) — Question 88
A company wants to use a large language model (LLM) to generate concise, feature-specific descriptions for the company’s products.
Which prompt engineering technique meets these requirements?
Answer options
- A. Create one prompt that covers all products. Edit the responses to make the responses more specific, concise, and tailored to each product.
- B. Create prompts for each product category that highlight the key features. Include the desired output format and length for each prompt response.
- C. Include a diverse range of product features in each prompt to generate creative and unique descriptions.
- D. Provide detailed, product-specific prompts to ensure precise and customized descriptions.
Correct answer: B
Explanation
The correct answer is B because creating prompts for each product category allows for focused input that highlights key features, ensuring that the LLM generates relevant and structured outputs. Option A is less effective as a single prompt may not capture the nuances of different products. Option C may lead to overly broad responses, while D, although detailed, may not address the need for format and length variation across product categories.