Skip to content
A minimalistic 8-bit illustration shows a geometric document file with the recognizable DOCX symbol alongside a stylized gear, symbolizing document parsing or processing. The file is visually transforming into clean, abstract lines of text. The design uses five corporate colors, is flat and 2D, with no background or gradients, and measures 128x128 pixels. There are no people or visible written text.

DOCX

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

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

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)