Databricks Generative AI Engineer Associate Question 77
Select 2You are testing a language model designed to summarize long pieces of text into concise summaries. Which of the following prompt/response pairs align with the task of summarization?
- A
Prompt: 'Summarize the following article in 3 sentences.' Response: 'The article discusses the impact of climate change, highlighting rising temperatures, melting ice caps, and global policy challenges.'
- B
Prompt: 'Translate the following English sentence into French.' Response: 'Le chat est sur le tapis.'
- C
Prompt: 'Summarize this book in one paragraph.' Response: 'This book explores the journey of a young hero who overcomes obstacles to find their true purpose in life.'
- D
Prompt: 'Generate a poem about the ocean.' Response: 'The ocean, vast and deep, whispers secrets it must keep.'
- E
Prompt: 'Create a detailed analysis of this dataset.' Response: 'The dataset shows trends in consumer purchasing behavior over the past decade, indicating a shift toward online shopping.'
Show answer and explanation
Correct answers: A, C
Explanation
The task of summarization involves creating concise representations of larger pieces of text. Only the prompt/response pairs that explicitly involve summarizing content and providing a condensed version of the information align with this task. Options 1 and 3 meet this criterion, as they both involve summarizing text, while the other options pertain to different natural language processing tasks (e.g., translation, creative generation, or analysis).
- A. Correct.
This prompt/response pair aligns with the summarization task since the prompt explicitly asks for a summary, and the response provides a concise summary of the given information.
- B. Incorrect.
This prompt/response pair does not align with the summarization task since it involves translation, which is a different natural language processing task.
- C. Correct.
This pair aligns with the summarization task as the prompt requests a summary of a book in a paragraph, and the response fulfills this requirement by providing a succinct overview of the book's content.
- D. Incorrect.
This prompt/response pair does not align with the summarization task because it focuses on generating creative content (a poem) rather than summarizing information.
- E. Incorrect.
This prompt/response pair does not align with the summarization task since it pertains to detailed data analysis, which is unrelated to summarization.