Class representing a document loader that loads documents from an Azure Blob Storage container. It extends the BaseDocumentLoader class.

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Method to load documents from an Azure Blob Storage container. It creates a BlobServiceClient using the connection string, gets the container client using the container name, and iterates over the blobs in the container. For each blob, it creates an instance of AzureBlobStorageFileLoader and loads the documents using the loader. The loaded documents are concatenated to the docs array and returned.

    Returns Promise<Document<Record<string, any>>[]>

    An array of loaded documents.

  • Parameters

    • Optionalsplitter: BaseDocumentTransformer<DocumentInterface<Record<string, any>>[], DocumentInterface<Record<string, any>>[]>

    Returns Promise<Document<Record<string, any>>[]>

    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.