Docx files
This example goes over how to load data from docx files.
Setup
- npm
- Yarn
- pnpm
npm install @langchain/community @langchain/core mammoth
yarn add @langchain/community @langchain/core mammoth
pnpm add @langchain/community @langchain/core mammoth
Usage
import { DocxLoader } from "@langchain/community/document_loaders/fs/docx";
const loader = new DocxLoader(
"src/document_loaders/tests/example_data/attention.docx"
);
const docs = await loader.load();