Docx Reader

Parameters and methods of DocxReader, which reads DOCX files into documents.

DocxReader reads data from Docx files.

Parameters

ParameterTypeDefaultDescription
chunking_strategyOptional[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.

ParameterTypeDefaultDescription
fileUnion[Path, IO[Any]]RequiredPath to the DOCX file or a file-like object
nameOptional[str]NoneName override for the resulting documents

async_read()

The async variant of read(). It accepts the same parameters.