Short answer: Drop the "Cohere → Rerank" action anywhere in your workflow, map the inputs from upstream nodes, and publish.
Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.
| Field | Type | Required | Description |
|---|---|---|---|
Query query | string | Required | The search query to rank documents against |
Documents (JSON array) documents | array | Required | Array of text strings to rerank |
Model model | options | Optional | Model. Options: Rerank v3.5 (latest), Rerank English v3, Rerank Multilingual v3 |
Top N top_n | string | Optional | Number of most relevant documents to return |
{"query": "e.g. What is the refund policy?","documents": "{{trigger.documents}}","model": "{{trigger.model}}","top_n": "e.g. 3"}
{"results": [{"index": 2,"document": {"text": "Returns accepted within 30 days..."},"relevance_score": 0.98},{"index": 0,"document": {"text": "Our refund policy allows..."},"relevance_score": 0.85}]}
Use these fields in downstream nodes for routing, logging, or error handling.
Any of these apps can fire this action as part of a workflow.
Triggered by anything in the catalog. Free tier available. No credit card.