Interface that defines the methods for loading and splitting documents.
Loads the documents.
A Promise that resolves with an array of Document instances.
Optional
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Use this.load() and splitter.splitDocuments() individually. Loads the documents and splits them using a specified text splitter.
this.load()
splitter.splitDocuments()
Interface that defines the methods for loading and splitting documents.