【发布时间】:2023-01-05 19:53:19
【问题描述】:
我想使用 OpenAI 的 TLDR 从 2-3 页的文章中生成 3-6 句话的摘要。我粘贴了文章文本,但输出似乎只停留在 1 到 2 个句子之间。
【问题讨论】:
我想使用 OpenAI 的 TLDR 从 2-3 页的文章中生成 3-6 句话的摘要。我粘贴了文章文本,但输出似乎只停留在 1 到 2 个句子之间。
【问题讨论】:
我烧掉了一些代币,所以你不必做测试。
您可以通过多种方式告诉 OpenAI API 您想要 3 句话摘要:
Write TL;DR in 3 sentences(7 个代币)TL;DR 3 sentences(5 个代币)Write summary in 3 sentences(5 个代币)Summary 3 sentences(3 个代币)
以上所有内容都将返回 3 句话的长摘要。
那有什么区别呢?
为什么?因为您为使用的每个代币付费。因此,选项 4 的成本最低。
注意:不要忘记将 Max tokens 参数设置得足够高,以便 OpenAI API 可以返回 3 个句子。
迅速的:
A neutron star is the collapsed core of a massive supergiant star, which
had a total mass of between 10 and 25 solar masses, possibly more if the
star was especially metal-rich.[1] Neutron stars are the smallest and
densest stellar objects, excluding black holes and hypothetical white
holes, quark stars, and strange stars.[2] Neutron stars have a radius on
the order of 10 kilometres (6.2 mi) and a mass of about 1.4 solar masses.
[3] They result from the supernova explosion of a massive star, combined
with gravitational collapse, that compresses the core past white dwarf star
density to that of atomic nuclei.
Summary 3 sentences
完成:
中子星是体积最小、密度最大的恒星,具有 半径约 10 公里,质量为 1.4 个太阳质量。他们是 由一颗大质量恒星的超新星爆炸形成,它有一个 总质量在 10-25 个太阳质量之间,加上引力 坍缩以将核心压缩到白矮星密度之外。像这样, 中子星代表大质量超巨星的坍缩核心 星星。
【讨论】: