Rerank Results
Reranks search results with a Pinecone model.
POST
Query
Field selectionChoose which fields should be included in the response. Learn more
string
Comma-separated response fields to include.
Body
Arguments
stringrequired
The reranking model to use.
stringrequired
The query to rerank against.
objectrequired
The list of document objects to rerank. Pass an array like [{"text":"..."},{"text":"..."}].
Uncommon arguments
number
Optional number of top results to return.