interface DocumentLoader { load(): Promise<Document[]>; loadAndSplit(textSplitter?): Promise<Document[]>; } Methods
load
- load(): Promise<Document[]>
Returns Promise<Document[]>
loadAndSplit
- loadAndSplit(textSplitter?): Promise<Document[]>
Returns Promise<Document[]>
Interface that defines the methods for loading and splitting documents.