agrag.ingestion.reports.add_result.AddResult
Bases: BaseModel
Return type of Graph.add(). One summary per pipeline stage.
Attributes:
- ingestion (
IngestStats) – Ingestion-stage results. - chunking (
ChunkingStats) – The chunker each document got and the chunks it made. - extraction (
ExtractionStats) – Extractor output across every chunk this call processed. - resolution (
ResolutionStats) – Resolution's tier-by-tier match counts. - merge (
MergeStats) – What merge mechanics did with resolution's groups. - storage (
StorageStats) – What made it to GraphStore, and what didn't. - chunks (
list[Chunk]) – Every Chunk this call produced. Empty unless return_chunks=True — holding full chunk text for a large corpus is a real memory cost most callers don't need paid for.
chunking
chunking: ChunkingStats = Field(default_factory=ChunkingStats)
chunks
chunks: list[Chunk] = Field(default_factory=list)
documents
documents: int
Proxy to ingestion.documents for backward compatibility.
extraction
extraction: ExtractionStats = Field(default_factory=ExtractionStats)
ingestion
ingestion: IngestStats = Field(default_factory=IngestStats)
merge
merge: MergeStats = Field(default_factory=MergeStats)
quarantined
quarantined: int
Proxy to ingestion.quarantined for backward compatibility.
quarantined_items
quarantined_items: list[StageFailure]
Proxy to ingestion.quarantined_items for backward compatibility.
resolution
resolution: ResolutionStats = Field(default_factory=ResolutionStats)
skipped
skipped: int
Proxy to ingestion.skipped for backward compatibility.
sources
sources: int
Proxy to ingestion.sources for backward compatibility.
storage
storage: StorageStats = Field(default_factory=StorageStats)