Fetches the data from the provided URL and returns it as a JSON object. If an error occurs during the fetch operation, an exception is thrown with the error message.
A promise that resolves to the fetched data as a JSON object.
An error if the fetch operation fails.
Loads the documents and splits them using a specified text splitter.
A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Generated using TypeDoc
Abstract class that provides a default implementation for the loadAndSplit() method from the DocumentLoader interface. The load() method is left abstract and needs to be implemented by subclasses.