Skip to main content

agrag.common.data_models.resolved_entity.ResolvedEntity

Bases: DataPoint

A cluster of entities that refer to the same thing.

Functions:

  • to_node_record – Return this resolved entity as a graph write record.

Attributes:

created_at​

created_at: datetime = Field(default_factory=lambda: datetime.now(UTC))

embedding​

embedding: list[float] | None = None

embedding_text​

embedding_text: str

Return the text used to embed this resolved entity.

id​

id: UUID

label​

label: str

member_ids​

member_ids: list[UUID] = Field(default_factory=list)

metadata​

metadata: dict[str, Any] = Field(default_factory=dict)

name​

name: str

properties​

properties: dict[str, object] = Field(default_factory=dict)

to_node_record​

to_node_record() -> NodeRecord

Return this resolved entity as a graph write record.

vector_sync_error​

vector_sync_error: str | None = None

vector_sync_status​

vector_sync_status: Literal['pending', 'synced', 'failed'] = 'pending'