0
0
Prompt Engineering / GenAIml~20 mins

Summarization in Prompt Engineering / GenAI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Summarization Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the main difference between extractive and abstractive summarization?

Summarization methods can be broadly categorized into extractive and abstractive. Which statement correctly describes their main difference?

AExtractive summarization selects key sentences from the original text, while abstractive summarization generates new sentences that capture the meaning.
BExtractive summarization generates new sentences, while abstractive summarization copies sentences directly from the text.
CBoth extractive and abstractive summarization only select sentences without generating new text.
DAbstractive summarization only shortens text by removing stopwords, extractive summarization rewrites the text.
Attempts:
2 left
💡 Hint

Think about whether the summary uses original sentences or creates new ones.

Predict Output
intermediate
2:00remaining
What is the output of this simple extractive summarization code?

Given the following Python code that extracts the first sentence as a summary, what will be printed?

Prompt Engineering / GenAI
text = "Machine learning helps computers learn from data. It is widely used in AI. Summarization is one application."
summary = text.split('.')[0] + '.'
print(summary)
AIt is widely used in AI.
BMachine learning helps computers learn from data. It is widely used in AI.
CSummarization is one application.
DMachine learning helps computers learn from data.
Attempts:
2 left
💡 Hint

Look at how the text is split and which part is selected.

Model Choice
advanced
2:00remaining
Which model architecture is best suited for abstractive summarization?

You want to build an abstractive summarization system that generates new sentences. Which model architecture is most appropriate?

AK-means clustering algorithm
BSimple feedforward neural network
CSequence-to-sequence model with attention mechanism
DDecision tree classifier
Attempts:
2 left
💡 Hint

Consider models that can generate sequences from input sequences.

Metrics
advanced
2:00remaining
Which metric is commonly used to evaluate summarization quality?

When evaluating how good a summary is compared to a reference summary, which metric is most commonly used?

AAccuracy
BROUGE score
CMean Squared Error
DF1 score for classification
Attempts:
2 left
💡 Hint

Think about metrics that compare overlap of words or phrases.

🔧 Debug
expert
3:00remaining
Why does this abstractive summarization model output repetitive phrases?

Consider a trained abstractive summarization model that often repeats the same phrase multiple times in its output. What is the most likely cause?

AThe model's decoding method lacks a mechanism to prevent repetition, such as coverage or beam search diversity.
BThe training data contains only repetitive phrases, so the model learned to repeat.
CThe input text is too short, causing the model to repeat phrases.
DThe model uses a feedforward network instead of a recurrent network.
Attempts:
2 left
💡 Hint

Think about how models generate sequences and avoid repeating themselves.