Skip to main content

agrag.common.data_models.vector_record.VectorRecord

Bases: BaseModel

One vector and its payload, ready to write to a collection or index.

The collection or index name is a call argument on the store, not a field here, so one record type can target any collection.

Attributes:

  • id (UUID) – The record id. Callers set this to the id of the domain object the vector represents.
  • vector (list[float]) – The dense embedding.
  • payload (dict[str, Any]) – Fields stored alongside the vector, such as the source text or a chunk id. Read back unchanged by search/hybrid_search.

id​

id: UUID

payload​

payload: dict[str, Any]

vector​

vector: list[float]