pinecone_rerank
Rerank retrieved candidate documents with a hosted cross-encoder to reorder results by query relevance, refining broad search results into top matches.
Instructions
Rerank a candidate list with a hosted cross-encoder.
Use it as a second stage: retrieve widely with pinecone_search
(top_k 50-100), then rerank down to the handful you actually want.
Args:
documents: [{"id": "d1", "text": "..."}].
rank_fields: Which field the reranker reads, default ["text"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | bge-reranker-v2-m3 | |
| query | Yes | ||
| top_n | No | ||
| documents | Yes | ||
| rank_fields | No | ||
| return_documents | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||