DocumentLoader
Contract for loading documents from external sources.
Methods
Section titled “Methods”load()
Section titled “load()”load(): Promise<Document[]>;Load documents from the configured source.
Returns
Section titled “Returns”Promise<Document[]>
Array of documents. A single source may produce multiple documents (e.g., a directory loader produces one per file).