Qdrant · Schema

SparseVector

Sparse vector structure

AIArtificial IntelligenceVector Databases

Properties

Name Type Description
indices array Indices must be unique
values array Values and indices must be the same length
View JSON Schema on GitHub

JSON Schema

qdrant-sparsevector-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SparseVector",
  "title": "SparseVector",
  "description": "Sparse vector structure",
  "type": "object",
  "required": [
    "indices",
    "values"
  ],
  "properties": {
    "indices": {
      "description": "Indices must be unique",
      "type": "array",
      "items": {
        "type": "integer",
        "format": "uint32",
        "minimum": 0
      }
    },
    "values": {
      "description": "Values and indices must be the same length",
      "type": "array",
      "items": {
        "type": "number",
        "format": "float"
      }
    }
  }
}