Oido icon

Oido

Run Oido Studio agents, respond to agent-dispatched runs, and use Oido embedding, rerank and OCR models

Rerank Documents

AI-generated

Summary

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.

Links

Discussion