Pinecone · Schema
Sparse embedding
A sparse embedding of a single input
Vector DatabasesAIEmbeddingsRAG
Properties
| Name | Type | Description |
|---|---|---|
| sparse_values | array | The sparse embedding values. |
| sparse_indices | array | The sparse embedding indices. |
| sparse_tokens | array | The normalized tokens used to create the sparse embedding. |
| vector_type | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/SparseEmbedding",
"title": "Sparse embedding",
"description": "A sparse embedding of a single input",
"type": "object",
"properties": {
"sparse_values": {
"example": [
0.1,
0.2,
0.3
],
"description": "The sparse embedding values.",
"type": "array",
"items": {
"type": "number",
"format": "float"
}
},
"sparse_indices": {
"example": [
10,
3,
156
],
"description": "The sparse embedding indices.",
"type": "array",
"items": {
"type": "integer",
"format": "int64",
"minimum": 0,
"maximum": 4294967295
}
},
"sparse_tokens": {
"example": [
"quick",
"brown",
"fox"
],
"description": "The normalized tokens used to create the sparse embedding.",
"type": "array",
"items": {
"type": "string"
}
},
"vector_type": {
"$ref": "#/components/schemas/VectorType"
}
},
"required": [
"sparse_values",
"sparse_indices",
"vector_type"
]
}