Protected
apifyProtected
callerProtected
datasetProtected
datasetOptional
splitter: BaseDocumentTransformer<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[]>A Promise that resolves with an array of Document instances, each split according to the provided TextSplitter.
Static
fromCreate an ApifyDatasetLoader by calling an Actor on the Apify platform and waiting for its results to be ready.
The ID or name of the Actor on the Apify platform.
The input object of the Actor that you're trying to run.
Optional
callOptional
clientAn instance of ApifyDatasetLoader
with the results from the Actor run.
Static
fromCreate an ApifyDatasetLoader by calling a saved Actor task on the Apify platform and waiting for its results to be ready.
The ID or name of the task on the Apify platform.
The input object of the task that you're trying to run. Overrides the task's saved input.
Optional
callOptional
clientAn instance of ApifyDatasetLoader
with the results from the task's run.
A class that extends the BaseDocumentLoader and implements the DocumentLoader interface. It represents a document loader that loads documents from an Apify dataset.
Example