Skip to main content

agrag.common.data_models.graph_record.NodeRecord

Bases: BaseModel

One graph node, ready to write.

Attributes:

  • id (UUID) – The node id.
  • labels (list[str]) – The node labels. A node carries every label listed here. GraphStore.upsert_nodes groups records by their full label set within a batch, since Cypher requires labels to be literal in the query rather than a runtime parameter.
  • properties (dict[str, Any]) – The node's properties, including an embedding vector under whatever key GraphStore.ensure_vector_index was configured with, if native vector search is in use.

Functions:

id​

id: UUID

labels​

labels: list[str] = Field(min_length=1)

properties​

properties: dict[str, Any]

reject_pending_tag​

reject_pending_tag(properties:dict[str, Any]) -> dict[str, Any]

Reject the job-owned tag in external graph records.