PPTX Reader
Parameters and methods of PPTXReader, which reads PowerPoint (.pptx) files into documents.
PPTXReader reads data from PowerPoint (.pptx) files.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
chunking_strategy | Optional[ChunkingStrategy] | DocumentChunking() | Strategy used to chunk documents |
PPTXReader also accepts the base Reader constructor parameters.
Methods
read()
Reads a PPTX file and returns a list of documents.
| Parameter | Type | Default | Description |
|---|---|---|---|
file | Union[Path, IO[Any]] | Required | Path to the PPTX file or a file-like object |
name | Optional[str] | None | Name override for the resulting documents |
async_read()
Async variant of read(). Accepts the same parameters.