Databricks Generative AI Engineer Associate Question 108
Select 3You are tasked with generating a summary of a technical document using a language model. During testing, you notice that the summaries produced are either too brief or lack technical accuracy. Which of the following prompt adjustments could help improve the model's output?
- A
Include specific instructions in the prompt, such as 'Provide a detailed summary with technical terms.'
- B
Use a longer prompt with examples of desired summaries to guide the model.
- C
Simplify the prompt to a single phrase like 'Summarize this.' to reduce complexity.
- D
Ask the model to 'Generate a summary in 100 words or less.'
- E
Include context about the audience, such as 'Summarize this document for a technical expert.'
Show answer and explanation
Correct answers: A, B, E
Explanation
Prompt formats significantly impact model outputs. Including clear instructions, examples, and audience context provides the model with better guidance, leading to more accurate and relevant results. Simplifying the prompt or limiting word count without additional context often reduces the quality of the output.
- A. Correct.
Including specific instructions helps the model understand the requirements and can lead to more accurate and detailed outputs, especially when technical terms are explicitly requested.
- B. Correct.
Providing examples of desired summaries in the prompt helps the model learn from the examples and better align its output with your expectations.
- C. Incorrect.
Simplifying the prompt reduces context and guidance, leading to generic or less accurate outputs. This approach is unlikely to improve technical accuracy.
- D. Incorrect.
While specifying a word limit can control the length, it doesn't necessarily address issues of technical accuracy or detail.
- E. Correct.
Adding audience context, like specifying 'for a technical expert,' helps the model tailor its response to the needs of the intended audience, improving relevance and accuracy.