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