Skip to main content

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 with indices.

indices​

indices: list[int]

values​

values: list[float]