Skip to main content

agrag.loaders.corpus.types.IngestResult

IngestResult(documents:int = 0, sources:int = 0, skipped:int = 0, quarantined:int = 0, quarantined_items:list[tuple[str, str]] = list(), chunks:list[Chunk] = list()) -> None

The result of one ingest call.

Attributes:

  • documents (int) – The number of documents the call produced.
  • sources (int) – The number of sources the call read.
  • skipped (int) – The number of sources the call skipped.
  • quarantined (int) – The number of sources the call moved to quarantine.
  • quarantined_items (list[tuple[str, str]]) – The uri and reason for each quarantined source.
  • chunks (list[Chunk]) – The chunks the call produced, in document then chunk order.

chunks​

chunks: list[Chunk] = field(default_factory=list)

documents​

documents: int = 0

quarantined​

quarantined: int = 0

quarantined_items​

quarantined_items: list[tuple[str, str]] = field(default_factory=list)

skipped​

skipped: int = 0

sources​

sources: int = 0