A document loader that loads unstructured documents from a directory using the UnstructuredLoader. It creates a UnstructuredLoader instance for each supported file type and passes it to the DirectoryLoader constructor.
const loader = new UnstructuredDirectoryLoader("path/to/directory", { apiKey: "MY_API_KEY",});const docs = await loader.load(); Copy
const loader = new UnstructuredDirectoryLoader("path/to/directory", { apiKey: "MY_API_KEY",});const docs = await loader.load();
A document loader that loads unstructured documents from a directory using the UnstructuredLoader. It creates a UnstructuredLoader instance for each supported file type and passes it to the DirectoryLoader constructor.
Example