DOCX
The def function will automatically parse DOCX files and extract text from them:
def("DOCS", env.files, { endsWith: ".docx" })Parsers
Section titled “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)