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.
Options specifying settings for the Actor run.
Optional
callOptional
clientA function that takes a single object (an Apify dataset item) and converts it to an instance of the Document class.
An 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.
Options specifying settings for the task run.
Optional
callOptions specifying settings for the task run.
Optional
clientOptions specifying settings for the Apify client.
A function that takes a single object (an Apify dataset item) and converts it to an instance of the Document class.
An 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