agrag.ingestion.stats.storage.StorageStats
Bases: BaseModel
Storage-write-stage results.
Attributes:
- nodes_written (
int) – Chunk and Entity nodes together, one aggregate count rather than a sub-count per kind — both are written in the same final phase, so there is one natural accounting point. - relationships_written (
int) – Domain Relation and MENTIONED_IN edges together, for the same reason. - failures (
list[StageFailure]) – Isolated graph-write failures are reported per record and capped per call. Conversion, embedding, vector-store, and other non-isolatable graph failures can use one stage-level failure. The counts include only records that landed. - failures_total (
int) – Failures recorded before capping. - failures_truncated (
bool) – Whetherfailureswas cut to the cap.
failures
failures: list[StageFailure] = Field(default_factory=list)
failures_total
failures_total: int = 0
failures_truncated
failures_truncated: bool = False
nodes_written
nodes_written: int = 0
relationships_written
relationships_written: int = 0