CLASSIFY_OPENAI

Use Open AI’s GPT model to classify text into tags, topics or sentiment.

icon of OpenAIOpenAI
Not a big fan of functions?
Use the Actions Wizard to configure any action in Rows without functions.

Parameter List

Syntax
CLASSIFY_OPENAI(text
[tags]
[multi-tag]
[examples]
[temperature]
[max_tokens]
[model]
)
text

The text to be classified. For example: "The delivery arrived very late.".

[optional] tags

The tag (or tags) that you want the text to be classified into. For example: "Delivery, Quality, Price.".

[optional] multi-tag

If the model can return multiple tags, or only one. If filled, should be "true" or "false" . By default it is true.

Selected options:
true
false
[optional] examples

Example of the classification you want to perform: Rome: City, France: Country

[optional] temperature

The sampling temperature to use, between 0 and 2. Use 2 for creative applications, and 0 for well-defined answers. By default it is 0. For example: "0.4".

[optional] max_tokens

The maximum number of tokens to generate in the completion. By default it is 2000. For example: "230".

[optional] model

The model to use. By default it uses "gpt-3.5-turbo".

Selected options:
gpt-3.5-turbo
gpt-4

Examples

CLASSIFY_OPENAI("This decision is very good, it will bring convenience to many Nike fans, thank you.", Positive; Neutral; Negative, false) returns Positive