fastrag.ingestion.logger.chunk#

Compatibility import for the former chunk-only logger.

Classes

ChunkLogger(pipeline, *[, format, stream, ...])

Compatibility logger for chunking events anywhere in the graph.

class fastrag.ingestion.logger.chunk.ChunkLogger(pipeline, *, format='rich', stream=None, configuration=None, stages=None, content_lines=None, content_chars=None, metadata_only=False, show_binary=False)[source]#

Bases: DocumentsLogger

Compatibility logger for chunking events anywhere in the graph.

New code should use DocumentsLogger. The summary’s documents and parent_documents both count chunking inputs, as in the former API.

Parameters:
  • pipeline (Pipeline)

  • format (Literal['rich', 'jsonl'])

  • stream (TextIO | None)

  • configuration (Mapping[str, Any] | None)

  • stages (Sequence[str] | None)

  • content_lines (int | None)

  • content_chars (int | None)

  • metadata_only (bool)

  • show_binary (bool)

label = 'Document inspection'#
async run()#

Inspect items and write a partial summary before propagating failures.

Return type:

None

pipeline: Pipeline#