Jina - Rerank documents action ​

The Rerank documents action scores and reorders documents by relevance to a query in Jina.

Input ​

Input fieldDescription
ModelSelect a rerank model, or enter a custom model ID.
QueryEnter the query to rank documents against.
DocumentsEnter the documents to rank.
Top NOptional. Enter the number of top-ranked documents to return.
Return documentsOptional. Select Yes or No to include the document text in the response. The default is Yes.
Max document lengthOptional. Enter the maximum number of characters per document.
Return embeddingsOptional. Select Yes or No to return each document's embedding.

Output ​

Output fieldDescription
ModelThe model used.
ObjectThe response type, for example list.
UsageToken usage.
Total tokens (Usage)Token usage.
ResultsThe ranked documents.
Index (Results)The document's original position in the Documents array, starting at 0.
Relevance score (Results)The document's relevance score, between 0 and 1.
Document (Results)The document's text. The Document field is only available when Return documents is Yes.
Embedding (Results)The document's embedding vector. The Embedding field is only available when Return embeddings is Yes.

Last updated: