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