TheDocumentation Index
Fetch the complete documentation index at: https://nvd-54.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
DocxLoader allows you to extract text data from Microsoft Word documents. It supports both the modern .docx format and the legacy .doc format. Depending on the file type, additional dependencies are required.
设置
To useDocxLoader, you’ll need the @langchain/community integration along with either mammoth or word-extractor package:
mammoth: For processing.docxfiles.word-extractor: For handling.docfiles.
安装
For .docx files
npm
For .doc files
npm
用法
Loading .docx files
For .docx files, there is no need to explicitly specify any parameters when initializing the loader:
Loading .doc files
For .doc files, you must explicitly specify the type as doc when initializing the loader:
将这些文档连接到 Claude、VSCode 等工具,通过 MCP 获取实时答案。

