Samples
Rerank search results
Improve search relevance by reordering results: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:
Related functions
cohere_rerank(): full API response with additional metadatacohere_embed(): generate embeddings for vector search