Skip to main content

agrag.loaders.corpus.types

Plumbing types for the corpus loaders.

These types support the loader, decode, and walk machinery. They are feature-local to agrag.loaders.corpus and are not domain models.

Classes:

  • CsvMode – How to read a CSV or TSV source.
  • DecodedText – Output of the four-step decode pipeline.
  • ErrorPolicy – The action to take when one source in a batch fails.
  • IngestResult – The result of one ingest call.
  • JsonMode – How to read a JSON source.
  • LoadStats – Running tally of a corpus walk.
  • LoaderCursor – Resume point for a corpus walk.
  • ReadOptions – Per-source reader configuration.
  • SourceRef – A locatable input, before any bytes are read.