Skip to content

DOCX

The def function will automatically parse DOCX files and extract text from them:

def("DOCS", env.files, { endsWith: ".docx" })

Parsers

The parsers.DOCX function reads a DOCX file and attempts to convert it cleanly into a text format suitable for the LLM.

const { file } = await parsers.DOCX(env.files[0])
def("FILE", file)