Pinecone · Schema

SparseValues

Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length.

Vector DatabasesAIEmbeddingsRAG

Properties

Name Type Description
indices array The indices of the sparse data.
values array The corresponding values of the sparse data, which must be with the same length as the indices.
View JSON Schema on GitHub

JSON Schema

pinecone-sparsevalues-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SparseValues",
  "title": "SparseValues",
  "description": "Vector sparse data. Represented as a list of indices and a list of  corresponded values, which must be with the same length.",
  "type": "object",
  "properties": {
    "indices": {
      "example": [
        1,
        312,
        822,
        14,
        980
      ],
      "description": "The indices of the sparse data.",
      "type": "array",
      "required": [
        "indices"
      ],
      "items": {
        "type": "integer",
        "format": "int64"
      },
      "minLength": 1,
      "maxLength": 1000
    },
    "values": {
      "example": [
        0.1,
        0.2,
        0.3,
        0.4,
        0.5
      ],
      "description": "The corresponding values of the sparse data, which must be with the same length as the indices.",
      "type": "array",
      "required": [
        "values"
      ],
      "items": {
        "type": "number",
        "format": "float"
      },
      "minLength": 1,
      "maxLength": 1000
    }
  },
  "required": [
    "indices",
    "values"
  ]
}