Pinecone · Schema

QueryRequest

The request for the `query` operation.

Vector DatabasesArtificial IntelligenceEmbeddingsRAG

Properties

Name Type Description
namespace string The namespace to query.
topK integer The number of results to return for each query.
filter object The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).
includeValues boolean Indicates whether vector values are included in the response. For on-demand indexes, setting this to `true` may increase latency, especially with higher `topK` values, because vector values are retrie
includeMetadata boolean Indicates whether metadata is included in the response as well as the ids.
queries array DEPRECATED. Use `vector` or `id` instead.
vector array The query vector. This should be the same length as the dimension of the index being queried. Each `query` request can contain only one of the parameters `id` or `vector`.
sparseVector object
id string The unique ID of the vector to be used as a query vector. Each request can contain either the `vector` or `id` parameter.
scanFactor number An optimization parameter for IVF dense indexes in dedicated read node indexes. It adjusts how much of the index is scanned to find vector candidates. Range: 0.5 – 4 (default). Keep the default (4.0)
maxCandidates integer An optimization parameter that controls the maximum number of candidate dense vectors to rerank. Reranking computes exact distances to improve recall but increases query latency. Range: top_k – 100000
View JSON Schema on GitHub

JSON Schema

pinecone-queryrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/QueryRequest",
  "title": "QueryRequest",
  "description": "The request for the `query` operation.",
  "type": "object",
  "properties": {
    "namespace": {
      "example": "example-namespace",
      "description": "The namespace to query.",
      "type": "string"
    },
    "topK": {
      "example": 10,
      "description": "The number of results to return for each query.",
      "type": "integer",
      "minimum": 1.0,
      "maximum": 10000.0,
      "required": [
        "top_k"
      ],
      "format": "int64"
    },
    "filter": {
      "example": {
        "genre": {
          "$in": [
            "comedy",
            "documentary",
            "drama"
          ]
        },
        "year": {
          "$eq": 2019
        }
      },
      "description": "The filter to apply. You can use vector metadata to limit your search. See [Understanding metadata](https://docs.pinecone.io/guides/index-data/indexing-overview#metadata).",
      "type": "object"
    },
    "includeValues": {
      "example": true,
      "description": "Indicates whether vector values are included in the response. For on-demand indexes, setting this to `true` may increase latency, especially with higher `topK` values, because vector values are retrieved from object storage. Unless you need vector values, set this to `false` for better performance.",
      "default": false,
      "type": "boolean"
    },
    "includeMetadata": {
      "example": true,
      "description": "Indicates whether metadata is included in the response as well as the ids.",
      "default": false,
      "type": "boolean"
    },
    "queries": {
      "deprecated": true,
      "description": "DEPRECATED. Use `vector` or `id` instead.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/QueryVector"
      },
      "minLength": 1,
      "maxLength": 10
    },
    "vector": {
      "example": [
        0.1,
        0.2,
        0.3,
        0.4,
        0.5,
        0.6,
        0.7,
        0.8
      ],
      "description": "The query vector. This should be the same length as the dimension of the index being queried. Each `query` request can contain only one of the parameters `id` or `vector`.",
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      },
      "minLength": 1,
      "maxLength": 20000
    },
    "sparseVector": {
      "$ref": "#/components/schemas/SparseValues"
    },
    "id": {
      "example": "example-vector-1",
      "description": "The unique ID of the vector to be used as a query vector. Each request  can contain either the `vector` or `id` parameter.",
      "type": "string",
      "maxLength": 512
    },
    "scanFactor": {
      "type": "number",
      "format": "float",
      "example": 2.0,
      "minimum": 0.5,
      "maximum": 4.0,
      "description": "An optimization parameter for IVF dense indexes in dedicated read node indexes. It adjusts how much of the index is scanned to find vector candidates. Range: 0.5 \u2013 4 (default).\nKeep the default (4.0) for the best search results. If query latency is too high, try lowering this value incrementally (minimum 0.5) to speed up the search at the cost of slightly lower accuracy. This parameter is only supported for dedicated (DRN) dense indexes. "
    },
    "maxCandidates": {
      "type": "integer",
      "format": "int64",
      "example": 1000,
      "minimum": 1,
      "maximum": 100000,
      "description": "An optimization parameter that controls the maximum number of candidate dense vectors to rerank. Reranking computes exact distances to improve recall but increases query latency. Range: top_k \u2013 100000.\nKeep the default for a balance of recall and latency. Increase this value if recall is too low, or decrease it to reduce latency at the cost of accuracy. This parameter is only supported for dedicated (DRN) dense indexes."
    }
  },
  "required": [
    "topK"
  ]
}

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-queryrequest"
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.