AIF-C01 Question 125
Select 3You are designing a prompt for a generative AI model to create a detailed product description for an e-commerce platform. The generated text should avoid mentioning competitor brands. Which of the following strategies should you apply in your prompt to achieve the desired outcome?
- A
Provide clear instructions specifying the desired format and tone of the product description.
- B
Include a negative prompt to explicitly instruct the model to exclude competitor brands.
- C
Rely solely on the model's latent space to infer that competitor brands should not be mentioned.
- D
Add contextual information about the product, such as its features, benefits, and target audience.
- E
Avoid specifying any constraints in the prompt, assuming the model will generate relevant output by default.
Show answer and explanation
Correct answers: A, B, D
Explanation
Prompt engineering requires a deliberate combination of strategies to guide the model effectively. In this scenario, clear instructions, negative prompts, and relevant contextual information are crucial to ensure the generated text meets the requirements and avoids including competitor brands. Relying solely on the model's latent space or leaving the prompt unconstrained can lead to undesired or inaccurate results.
- A. Correct.
Providing clear instructions is essential in prompt engineering as it helps guide the model toward generating output in the desired format and tone.
- B. Correct.
Including a negative prompt is an effective way to specify what should be excluded from the generated text, such as competitor brands in this case.
- C. Incorrect.
Relying solely on the model's latent space is not recommended as latent space represents the model's learned knowledge but does not guarantee the exclusion of specific content unless explicitly instructed.
- D. Correct.
Adding contextual information ensures the model has enough relevant details to generate an accurate and tailored product description.
- E. Incorrect.
Avoiding constraints in the prompt is not advisable as it can lead to unpredictable or irrelevant outputs, which do not align with the desired outcome.