Actions10
Rerank Documents
AI-generatedSummary
Ranks a list of document strings by relevance to a query using Oido’s rerank model. Runs once per input item and sends the query, documents, and Top N value to the Oido API.
Inputs
- Query (required) — The query to rank the documents against.
- Documents (required) — A JSON array of strings, or an expression resolving to an array of strings. Invalid JSON or non-string array entries cause an error.
- Top N — Maximum number of ranked documents to return; defaults to 0, which requests all results.
Output shape
One item per input item, with the Oido API response in its JSON data.
Requires Oido API credentials. Errors stop execution unless Continue On Fail is enabled, in which case the affected item contains an error message.