Expand description
VectorData value encoding/decoding.
Stores all data for a single vector: external ID, embedding vector, and metadata.
§Storage Design
Vectors are stored individually (one record per vector) rather than batched together. This enables:
- Efficient point lookups: Load a single vector without reading neighbors
- Partial loading: During filtered search, only load vectors that pass filters
- Independent updates: Upsert/delete individual vectors without rewriting batches
§Unified Storage
Vector data, metadata, and external ID are stored together in a single record. The vector is stored as a special field with tag 0xff (255) alongside metadata fields.
§Dimensionality
The vector length is not stored in the value—it’s obtained from CollectionMeta.
All vectors in a collection must have the same dimensionality.
Structs§
- Field
- A metadata field with name and value.
- Vector
Data Value - VectorData value storing the external ID, embedding vector, and metadata.