agrag.embedding.sparse_base.SparseVector
Bases: BaseModel
A sparse vector: nonzero indices and their values.
Attributes:
- indices (
list[int]) – The positions of nonzero entries. - values (
list[float]) – The weight at each index, aligned withindices.
indices
indices: list[int]
values
values: list[float]