Build an ExtractionStats from a PreparedFile's prep-phase metrics.
(prepared: PreparedFile)
| 278 | |
| 279 | |
| 280 | def _prep_stats(prepared: PreparedFile) -> ExtractionStats: |
| 281 | """Build an ExtractionStats from a PreparedFile's prep-phase metrics.""" |
| 282 | return ExtractionStats( |
| 283 | chunks=prepared.n_chunks, |
| 284 | plain_text_len=prepared.plain_text_len, |
| 285 | ) |
| 286 | |
| 287 | |
| 288 | def _process_one_batch( |
no test coverage detected