# Build Bounded Document Ingestion Pipelines

Scan selected document formats, collect ingestion summaries, and feed structured chunks into downstream indexing or analysis systems.

`Read-OfficeDocument -As Ingest` combines folder discovery and document reading into one bounded operation. It reports files scanned, files parsed, chunks produced, and errors instead of forcing every caller to rebuild the same orchestration.

## Select the corpus

```powershell
$result = Read-OfficeDocument -As Ingest -Path '.\Knowledge' -Recurse `
    -Extension docx,pdf,md,html,json,yaml `
    -MaximumFiles 1000 -MaximumTotalBytes 2GB
```

Omit `-Recurse` for a single controlled directory. Extension filters keep unrelated files outside the parser path. Reader options and content bounds should match the same policy used by search and chunk extraction.

The [ingest-folder recipe](https://github.com/EvotecIT/OfficeIMO/blob/3b680b1b6fb15a268ff5525a4ca6cdd70b2f6613/PowerShell/PSWriteOffice/Examples/Reader/Recipe-Reader-IngestFolder.ps1) ingests supported documents from a simple `.\Documents` folder.

Keep indexing, embeddings, databases, or network publication outside the Reader command. Reader owns deterministic document extraction; the downstream system owns storage and retrieval policy.

<!-- PowerForge markdown source sha256:72F87E7FBD13C4C6784801FF931365C1126494F44FAA92FB56DB04B268B8CA0F; title=True -->

<!-- PowerForge markdown artifact sha256:E0B7E5C1E86F95637CF2ACB3701963241098C8A95D5BC9FB51D0CA5CD1979A90 -->
