Pinecone Developer MCP

Official

rerank-documents

Optimize document search results by reranking a set of documents based on a specific query using advanced models like Cohere, BGE, or Pinecone. Ideal for improving relevance in enterprise search applications.

Instructions

Rerank a set of documents based on a query

Input Schema

NameRequiredDescriptionDefault
documentsYesA set of documents to rerank. Can either be an array of text documents (strings) or an array of records.
modelYesChoose a reranking model: - "cohere-rerank-3.5" is Cohere's leading reranking model, balancing performance and latency for a wide range of enterprise search applications. - "bge-reranker-v2-m3" is a high-performance, multilingual reranking model that works well on messy data and short queries expected to return medium-length passages of text (1-2 paragraphs). - "pinecone-rerank-v0" is a state of the art reranking model that out-performs competitors on widely accepted benchmarks. It can handle chunks up to 512 tokens (1-2 paragraphs).
optionsNo
queryYesThe query to rerank documents against.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "documents": { "anyOf": [ { "description": "An array of text documents to rerank.", "items": { "type": "string" }, "type": "array" }, { "description": "An array of records to rerank.", "items": { "additionalProperties": { "type": "string" }, "type": "object" }, "type": "array" } ], "description": "A set of documents to rerank. Can either be an array of text documents\n (strings) or an array of records." }, "model": { "description": "Choose a reranking model:\n- \"cohere-rerank-3.5\" is Cohere's leading reranking model, balancing performance\nand latency for a wide range of enterprise search applications.\n- \"bge-reranker-v2-m3\" is a high-performance, multilingual reranking model that\nworks well on messy data and short queries expected to return medium-length\npassages of text (1-2 paragraphs).\n- \"pinecone-rerank-v0\" is a state of the art reranking model that out-performs\ncompetitors on widely accepted benchmarks. It can handle chunks up to 512 tokens\n(1-2 paragraphs).", "enum": [ "cohere-rerank-3.5", "bge-reranker-v2-m3", "pinecone-rerank-v0" ], "type": "string" }, "options": { "additionalProperties": false, "properties": { "rankFields": { "description": "The fields to rerank on. This should only be included if the documents\n are records. The \"bge-reranker-v2-m3\" and \"pinecone-rerank-v0\" models\n support only a single rerank field. \"cohere-rerank-3.5\" supports\n multiple rerank fields.", "items": { "type": "string" }, "type": "array" }, "topN": { "description": "The number of results to return after reranking.", "type": "number" } }, "required": [ "topN" ], "type": "object" }, "query": { "description": "The query to rerank documents against.", "type": "string" } }, "required": [ "model", "query", "documents" ], "type": "object" }

You must be authenticated.

Other Tools from Pinecone Developer MCP

Related Tools

ID: 7lxm56a88w