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 PDF file and attempts to cleanly convert it into a text format that is friendly to the LLM.

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