Short answer: You can rerank in Cohere by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the Cohere Rerank action to a workflow, map its 4 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.
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.