Skip to content

DocumentLoader

Contract for loading documents from external sources.

load(): Promise<Document[]>;

Load documents from the configured source.

Promise<Document[]>

Array of documents. A single source may produce multiple documents (e.g., a directory loader produces one per file).