Cohere (Independent Publisher) (Preview)

Cohere is making natural language processing part of every developer's toolkit. Harness the power of language understanding. Join the developers and businesses who are using Cohere to generate, categorize and organize text at a scale that was previously unimaginable.

This connector is available in the following products and regions:

Service Class Regions
Logic Apps Standard All Logic Apps regions except the following:
     -   Azure Government regions
     -   Azure China regions
     -   US Department of Defense (DoD)
Power Automate Premium All Power Automate regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Power Apps Premium All Power Apps regions except the following:
     -   US Government (GCC)
     -   US Government (GCC High)
     -   China Cloud operated by 21Vianet
     -   US Department of Defense (DoD)
Contact
Name Troy Taylor
URL https://www.hitachisolutions.com
Email ttaylor@hitachisolutions.com
Connector Metadata
Publisher Troy Taylor
Website https://cohere.ai/
Privacy policy https://cohere.ai/privacy
Categories AI

Creating a connection

The connector supports the following authentication types:

Default Parameters for creating connection. All regions Not shareable

Default

Applicable: All regions

Parameters for creating connection.

This is not shareable connection. If the power app is shared with another user, another user will be prompted to create new connection explicitly.

Name Type Description Required
API Key in the form 'Bearer API_Key' securestring The API Key in the form 'Bearer API_Key' for this api True

Throttling Limits

Name Calls Renewal Period
API calls per connection 100 60 seconds

Actions

Generate classification

Creates a prediction about which label fits the specified text inputs best.

Generate detokenized text

Converts tokens using byte-pair encoding and returns their text representation.

Generate text

This action generates realistic text conditioned on a given input.

Generate text embeddings

Returns text embeddings which are lists of floating point numbers that captures semantic information about the text that it represents.

Generate tokens

Splits input text into smaller units called tokens using byte-pair encoding (BPE).

Identify language

Detects which language each of the provided texts is written in.

Summarize text

Generates a summary in English for a given text.

Generate classification

Creates a prediction about which label fits the specified text inputs best.

Parameters

Name Key Required Type Description
Inputs
inputs array of string

The inputs.

Model
model string

The model.

Text
text string

The text.

Label
label string

The label.

Preset
preset string

The preset.

Truncate
truncate string

The truncate.

Returns

Name Path Type Description
ID
id string

The identifier.

Classifications
classifications array of object
ID
classifications.id string

The identifier.

Input
classifications.input string

The input.

Prediction
classifications.prediction string

The prediction.

Confidence
classifications.confidence float

The confidence.

Confidences
classifications.confidences array of object
Option
classifications.confidences.option string

The option.

Confidence
classifications.confidences.confidence float

The confidence.

Confidence
classifications.labels.Not spam.confidence float

The confidence.

Confidence
classifications.labels.Spam.confidence float

The confidence.

Version
meta.api_version.version string

The version.

Is Deprecated
meta.api_version.is_deprecated boolean

Whether is deprecated.

Generate detokenized text

Converts tokens using byte-pair encoding and returns their text representation.

Parameters

Name Key Required Type Description
Tokens
tokens array of integer

The tokens.

Returns

Name Path Type Description
Text
text string

The text.

Version
meta.api_version.version string

The version.

Is Deprecated
meta.api_version.is_deprecated boolean

Whether is deprecated.

Generate text

This action generates realistic text conditioned on a given input.

Parameters

Name Key Required Type Description
Prompt
prompt string

The prompt.

Model
model string

The model.

Num Generations
num_generations integer

The number of generations.

Max Tokens
max_tokens integer

The maximum number of tokens.

Preset
preset string

The preset.

Temperature
temperature float

The temperature.

k
k integer

The k value.

p
p float

The p value.

Frequency Penalty
frequency_penalty float

The frequency penalty.

Presence Penalty
presence_penalty float

The presence penalty.

End Sequences
end_sequences array of string

The end sequences.

Stop Sequences
stop_sequences array of string

The stop sequences.

Return Likelihoods
return_likelihoods string

The return likelihoods.

Truncate
truncate string

The truncate.

Returns

Name Path Type Description
ID
id string

The identifier.

Generations
generations array of object
ID
generations.id string

The identifier.

Text
generations.text string

The text.

Prompt
prompt string

The prompt.

Generate text embeddings

Returns text embeddings which are lists of floating point numbers that captures semantic information about the text that it represents.

Parameters

Name Key Required Type Description
Texts
texts array of string

The texts.

Model
model string

The model.

Truncate
truncate string

The truncate.

Returns

Name Path Type Description
ID
id string

The identifier.

Texts
texts array of string

The texts.

Embeddings
embeddings array of array

The embeddings.

items
embeddings array of float
Version
meta.api_version.version string

The version.

Is Deprecated
meta.api_version.is_deprecated boolean

Whether is deprecated.

Generate tokens

Splits input text into smaller units called tokens using byte-pair encoding (BPE).

Parameters

Name Key Required Type Description
Text
text string

The text.

Returns

Name Path Type Description
Tokens
tokens array of integer

The tokens.

Token Strings
token_strings array of string

The token strings.

Version
meta.api_version.version string

The version.

Is Deprecated
meta.api_version.is_deprecated boolean

Whether is deprecated.

Identify language

Detects which language each of the provided texts is written in.

Parameters

Name Key Required Type Description
Texts
texts array of string

The texts.

Returns

Name Path Type Description
ID
id string

The identifier.

Results
results array of object
Language Code
results.language_code string

The language code.

Language Name
results.language_name string

The language name.

Version
meta.api_version.version string

The version.

Is Deprecated
meta.api_version.is_deprecated boolean

Whether is deprecated.

Summarize text

Generates a summary in English for a given text.

Parameters

Name Key Required Type Description
Length
length string

The length.

Format
format string

The format.

Model
model string

The model.

Extractiveness
extractiveness string

The extractiveness.

Temperature
temperature float

The temperature.

Text
text string

The text.

Returns

Name Path Type Description
ID
id string

The identifier.

Summary
summary string

The summary.

Version
meta.api_version.version string

The version.

Is Deprecated
meta.api_version.is_deprecated boolean

Whether is deprecated.