Table: cohereai_summarize
Create a summary for a given text prompt.
Notes:
- A
text
is a string to get the summary - The maximum length of text is 100,000 characters.
Examples
Basic example with default settings
select summaryfrom cohereai_summarizewhere text = 'In the vast expanse of the cosmos, where stars twinkle like scattered diamonds, a sense of awe and wonder takes hold. The universe, with its countless galaxies and celestial bodies, holds secrets yet to be fully unraveled. From the intricate dance of planets within our own solar system to the majestic swirls of galaxies millions of light-years away, there is a profound beauty in the cosmic symphony that unfolds before our eyes.';
Summarization with tweaked settings
select summaryfrom cohereai_summarizewhere settings = '{ "model": "summarize-medium", "length": "short", "temperature": 0.9, "format": "bullets"}' and text = 'In the vast expanse of the cosmos, where stars twinkle like scattered diamonds, a sense of awe and wonder takes hold. The universe, with its countless galaxies and celestial bodies, holds secrets yet to be fully unraveled. From the intricate dance of planets within our own solar system to the majestic swirls of galaxies millions of light-years away, there is a profound beauty in the cosmic symphony that unfolds before our eyes.';