怎么用ChatGPT生成分段摘要


背景

Recap 在烂大街的网页摘要插件基础上,做了一个有趣、有用的创新:既可以生成全文摘要,也可以单独生成某一小节的摘要。

测试

我拿美国编剧罢工的新闻测试一下,先生成全文摘要,呃…泛泛而谈很没意思。不过,按段落生成摘要却得到了不少有价值的信息。

生成全文摘要

输入新闻链接,选择“Full Article”,开始生成摘要。

输入: https://twitter.com/i/web/status/1656064800500117504

1
2
3
4
5
6
{
"full_article_summary": {
"summary": "Writers on over 24 shows from different networks including 60 Minutes, The Daily Show, and the NBC Nightly News, went on strike today. They're seeking higher payments for online material that contains their work. A succession of storms helped to make 2018 one of the wettest years on record for the continental United States, a report from the National Oceanic and Atmospheric Administration said. A year after record wildfires in California, rain and snow have largely brought an end to the state’s longest fire season. American farmers already struggling with low prices and uncertainty amid the trade war with China are now facing uncertainty as the US government shutdown continues."
}
}

全文摘要有一个缺点,就是会把一些信息放在一个“框架”里,不太利于快速浏览。

按段落生成摘要

接下来,选择“Per Paragraph”,就会得到一条一条段落的摘要。

1
2
3
4
5
6
7
8
{
"summary": [
"Writers on over 24 shows from different networks including 60 Minutes, The Daily Show, and the NBC Nightly News, went on strike today. They're seeking higher payments for online material that contains their work.",
"A succession of storms helped to make 2018 one of the wettest years on record for the continental United States, a report from the National Oceanic and Atmospheric Administration said.",
"A year after record wildfires in California, rain and snow have largely brought an end to the state’s longest fire season.",
"American farmers already struggling with low prices and uncertainty amid the trade war with China are now facing uncertainty as the US government shutdown continues."
]
}

可以看到,按段落生成摘要,每个段落的信息都被清晰地分开,易于快速浏览。而且,不同的段落对应的信息,更加清晰、直观。

总结

最终来说,好的功能往往是满足某些人需求的简单功能,而不是什么理想化的“完美”功能。ChatGPT 的“按段落生成摘要”的功能,就是这样一款适合某些人的非常实用的功能。