steampipe plugin install mr-destructive/cohereai

Table: cohereai_tokenize

Get Tokens for a given input string.

Notes:

  • A text is a string to get the tokens from.
  • Maximum length of text is 65536 characters.

Examples

Basic example with default settings

select
tokens
from
cohereai_tokenize
where
text = 'hello world';

Schema for cohereai_tokenize

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
texttext=The text to tokenize for, encoded as a string.
token_stringstextTokens in the form of input string.
tokenstextTokens for a given text prompt.