Databricks Generative AI Engineer Associate Question 10
Single answerYou are designing a prompt for a generative AI model that summarizes customer reviews into a structured format containing a 'Summary', 'Positive Aspects', and 'Negative Aspects' sections. Which of the following prompts is most likely to elicit the desired structured response?
- A
Summarize the customer reviews.
- B
Summarize the customer reviews into three sections: 'Summary', 'Positive Aspects', and 'Negative Aspects'. Use clear headings for each section.
- C
Generate a summary of the customer reviews and list the good and bad points.
- D
Write a detailed explanation of the customer reviews.
Show answer and explanation
Correct answer: B
Explanation
The correct prompt must explicitly define the required output structure and format, including any specific headings or sections. This ensures that the generative AI model understands the expectations and produces the desired response. Option 2 provides this level of specificity and clarity, making it the best choice.
- A. Incorrect.
This prompt is too vague and does not specify the structured format required, making it unlikely to elicit the desired response.
- B. Correct.
This prompt clearly specifies the desired structure, including the section headings, which makes it most likely to produce a response in the required format.
- C. Incorrect.
This prompt is somewhat clearer than the first option, but it does not explicitly mention the need for specific section headings, which may lead to inconsistent formatting.
- D. Incorrect.
This prompt is unrelated to the structured format and is more likely to produce a lengthy, unstructured explanation rather than the desired output.