Blocks
Cohere
Enterprise-grade NLP and text generation AI
Integrate with Cohere for advanced natural language processing, text generation, embeddings, semantic search, and content classification. Perfect for enterprise RAG applications with API key authentication.
Block Preview
Cohere
Enterprise-grade NLP and text generation AI
Usage
- Add the block to your workflow and connect it to the upstream step.
- Configure any required credentials or tokens in the inputs.
- Fill in required inputs and optional parameters for the run.
- Run a test execution, inspect outputs, and iterate before deploying.
- Deploy the cohere block with monitoring enabled in production.
Inputs (UI)
Cohere API Key
short-inputPlaceholder: Enter your Cohere API key
Layout: full
Operation
dropdownLayout: full
Options: Generate Text, Chat Completion, Create Embeddings, Classify Text
Model
dropdownLayout: half
Condition: operation = ["generate","chat","summarize"]
Options: Command (Latest), Command Light, Command R, Command R+
Prompt
long-inputPlaceholder: Enter your prompt or text to process
Layout: full
Condition: operation = ["generate","chat","classify","summarize","detect_language"]
Texts to Embed (JSON Array)
long-inputPlaceholder: ["Text 1", "Text 2", "Text 3"]
Layout: full
Condition: operation = "embed"
Search Query
short-inputPlaceholder: Enter search query for reranking
Layout: full
Condition: operation = "rerank"
Documents to Rerank (JSON Array)
long-inputPlaceholder: [{"text": "doc1"}, {"text": "doc2"}]
Layout: full
Condition: operation = "rerank"
Max Tokens
short-inputPlaceholder: 1000
Layout: half
Condition: operation = ["generate","chat","summarize"]
Temperature
short-inputPlaceholder: 0.7
Layout: half
Condition: operation = ["generate","chat"]
Inputs (API)
credential
stringRequired
operation
stringRequired
model
stringOptional
prompt
stringOptional
texts
stringOptional
query
stringOptional
documents
stringOptional
max_tokens
stringOptional
temperature
stringOptional
Outputs
Primary response type:
{
"data": "json"
}