Pinecone · Schema

ContextRequest

Parameters to retrieve context from an assistant.

Vector DatabasesArtificial IntelligenceEmbeddingsRAG

Properties

Name Type Description
query string The query that is used to generate the context. Exactly one of query or messages should be provided.
filter object Optionally filter which documents can be retrieved using the following metadata fields.
messages array The list of messages to use for generating the context. Exactly one of query or messages should be provided.
top_k integer The maximum number of context snippets to return. Default is 16. Maximum is 64.
snippet_size integer The maximum context snippet size. Default is 2048 tokens. Minimum is 512 tokens. Maximum is 8192 tokens.
multimodal boolean Whether or not to retrieve image-related context snippets. If `false`, only text snippets are returned.
include_binary_content boolean If image-related context snippets are returned, this field determines whether or not they should include base64 image data. If `false`, only the image captions are returned. Only available when `multi
View JSON Schema on GitHub

JSON Schema

pinecone-contextrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ContextRequest",
  "title": "ContextRequest",
  "description": "Parameters to retrieve context from an assistant.",
  "type": "object",
  "properties": {
    "query": {
      "description": "The query that is used to generate the context. Exactly one of query or messages should be provided.",
      "type": "string"
    },
    "filter": {
      "example": {
        "genre": {
          "$ne": "documentary"
        }
      },
      "description": "Optionally filter which documents can be retrieved using the following metadata fields.",
      "type": "object"
    },
    "messages": {
      "description": "The list of messages to use for generating the context. Exactly one of query or messages should be provided.",
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/MessageModel"
      }
    },
    "top_k": {
      "example": 20,
      "description": "The maximum number of context snippets to return. Default is 16. Maximum is 64.",
      "type": "integer"
    },
    "snippet_size": {
      "example": 4096,
      "description": "The maximum context snippet size. Default is 2048 tokens. Minimum is 512 tokens. Maximum is 8192 tokens.",
      "type": "integer"
    },
    "multimodal": {
      "description": "Whether or not to retrieve image-related context snippets. If `false`, only text snippets are returned.",
      "default": true,
      "type": "boolean"
    },
    "include_binary_content": {
      "description": "If image-related context snippets are returned, this field determines whether or not they should include base64 image data. If `false`, only the image captions are returned. Only available when `multimodal=true`.",
      "default": true,
      "type": "boolean"
    }
  }
}

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