Pinecone · Schema

Vector

Vector DatabasesAIEmbeddingsRAG

Properties

Name Type Description
id string This is the vector's unique id.
values array This is the vector data included in the request.
sparseValues object
metadata object This is the metadata included in the request.
View JSON Schema on GitHub

JSON Schema

pinecone-vector-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Vector",
  "title": "Vector",
  "type": "object",
  "properties": {
    "id": {
      "example": "example-vector-1",
      "description": "This is the vector's unique id.",
      "type": "string",
      "required": [
        "id"
      ],
      "minLength": 1,
      "maxLength": 512
    },
    "values": {
      "example": [
        0.1,
        0.2,
        0.3,
        0.4,
        0.5,
        0.6,
        0.7,
        0.8
      ],
      "description": "This is the vector data included in the request.",
      "type": "array",
      "required": [
        "values"
      ],
      "items": {
        "type": "number",
        "format": "float"
      },
      "minLength": 1,
      "maxLength": 20000
    },
    "sparseValues": {
      "$ref": "#/components/schemas/SparseValues"
    },
    "metadata": {
      "example": {
        "genre": "documentary",
        "year": 2019
      },
      "description": "This is the metadata included in the request.",
      "type": "object"
    }
  },
  "required": [
    "id"
  ]
}