Skip to main content
Rerank a list of documents by semantic relevance to a query. This function returns a simplified table format with just the document index, text, and relevance score.

Samples

Rerank search results

Improve search relevance by reordering results:
Returns:

Limit results with top_n

Return only the most relevant documents:

Use in a search pipeline

Combine vector search with reranking:

Arguments

Returns

TABLE: A table with the following columns: