Pinecone · Schema

RerankRequest

Vector DatabasesArtificial IntelligenceEmbeddingsRAG

Properties

Name Type Description
model string The [model](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) to use for reranking.
query string The query to rerank documents against.
top_n integer The number of results to return sorted by relevance. Defaults to the number of inputs.
return_documents boolean Whether to return the documents in the response.
rank_fields array The field(s) to consider for reranking. If not provided, the default is `["text"]`. The number of fields supported is [model-specific](https://docs.pinecone.io/guides/search/rerank-results#reranking-m
documents array The documents to rerank.
parameters object Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) for available model parameters.
View JSON Schema on GitHub

JSON Schema

pinecone-rerankrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/RerankRequest",
  "title": "RerankRequest",
  "type": "object",
  "properties": {
    "model": {
      "example": "bge-reranker-v2-m3",
      "description": "The [model](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) to use for reranking.",
      "type": "string"
    },
    "query": {
      "example": "What is the capital of France?",
      "description": "The query to rerank documents against.",
      "type": "string"
    },
    "top_n": {
      "example": 5,
      "description": "The number of results to return sorted by relevance. Defaults to the number of inputs.",
      "type": "integer"
    },
    "return_documents": {
      "example": true,
      "description": "Whether to return the documents in the response.",
      "default": true,
      "type": "boolean"
    },
    "rank_fields": {
      "description": "The field(s) to consider for reranking. If not provided, the default is `[\"text\"]`.\n\nThe number of fields supported is [model-specific](https://docs.pinecone.io/guides/search/rerank-results#reranking-models).\n",
      "default": [
        "text"
      ],
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "documents": {
      "description": "The documents to rerank.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Document"
      }
    },
    "parameters": {
      "example": {
        "truncate": "END"
      },
      "description": "Additional model-specific parameters. Refer to the [model guide](https://docs.pinecone.io/guides/search/rerank-results#reranking-models) for available model parameters.",
      "type": "object",
      "additionalProperties": true
    }
  },
  "required": [
    "model",
    "documents",
    "query"
  ]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/pinecone-rerankrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.