MultiVectorEmbedding class
A ColBERT multi-vector embedding: one row per attention-live token.
data is a flat, row-major buffer of length num_tokens * dim — row i
(the embedding for token i) occupies data[i*dim .. (i+1)*dim]. Flat
storage keeps the type FFI-friendly across binding boundaries; use
`MultiVectorEmbedding::rows` internally to iterate per-token slices.
Constructors
- MultiVectorEmbedding({required PlatformInt64 numTokens, required PlatformInt64 dim, required Float64List data})
-
const
Properties
- data → Float64List
-
Flat row-major buffer, length
num_tokens * dim.final - dim → int
-
Dimensionality of each per-token vector.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- numTokens → int
-
Number of attention-live token rows (padding rows are dropped, not
zeroed — see
`engine::normalize_tokens`).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override