steampipe plugin install mr-destructive/cohereai

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
summary
from
cohereai_summarize
where
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
summary
from
cohereai_summarize
where
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.';