langchain-azure-storage¶
langchain_azure_storage.document_loaders
¶
Azure Blob Storage document loader.
AzureBlobStorageLoader
¶
Bases: BaseLoader
Document loader for LangChain Document objects from Azure Blob Storage.
| METHOD | DESCRIPTION |
|---|---|
__init__ |
Initialize |
lazy_load |
Lazily load documents from Azure Blob Storage. |
alazy_load |
Asynchronously lazily loads documents from Azure Blob Storage. |
load |
Load data into |
aload |
Load data into |
load_and_split |
Load |
__init__
¶
__init__(
account_url: str,
container_name: str,
blob_names: str | Iterable[str] | None = None,
*,
prefix: str | None = None,
credential: _SDK_CREDENTIAL_TYPE = None,
loader_factory: Callable[[str], BaseLoader] | None = None,
)
Initialize AzureBlobStorageLoader.
| PARAMETER | DESCRIPTION |
|---|---|
account_url
|
URL to the Azure Storage account, e.g.
TYPE:
|
container_name
|
Name of the container to retrieve blobs from in the storage account
TYPE:
|
blob_names
|
List of blob names to load. If |
prefix
|
Prefix to filter blobs when listing from the container.
Cannot be used with
TYPE:
|
credential
|
Credential to authenticate with the Azure Storage account.
If
TYPE:
|
loader_factory
|
Optional callable that returns a custom document loader
(e.g.
TYPE:
|
lazy_load
¶
Lazily load documents from Azure Blob Storage.
| YIELDS | DESCRIPTION |
|---|---|
Document
|
The |
alazy_load
async
¶
alazy_load() -> AsyncIterator[Document]
Asynchronously lazily loads documents from Azure Blob Storage.
| YIELDS | DESCRIPTION |
|---|---|
AsyncIterator[Document]
|
The |
load
¶
aload
async
¶
load_and_split
¶
load_and_split(text_splitter: TextSplitter | None = None) -> list[Document]
Load Document and split into chunks. Chunks are returned as Document.
Danger
Do not override this method. It should be considered to be deprecated!
| PARAMETER | DESCRIPTION |
|---|---|
text_splitter
|
TYPE:
|
| RAISES | DESCRIPTION |
|---|---|
ImportError
|
If |
| RETURNS | DESCRIPTION |
|---|---|
list[Document]
|
List of |