Class AzureBlobStorageDocumentLoader
java.lang.Object
dev.langchain4j.data.document.loader.azure.storage.blob.AzureBlobStorageDocumentLoader
-
Constructor Summary
ConstructorsConstructorDescriptionAzureBlobStorageDocumentLoader(com.azure.storage.blob.BlobServiceClient blobServiceClient) -
Method Summary
Modifier and TypeMethodDescriptionloadDocument(String containerName, String blobName, DocumentParser parser) loadDocuments(String containerName, DocumentParser parser) Loads all documents from an Azure Blob Storage container.loadDocuments(String containerName, String prefix, DocumentParser parser) Loads all documents from an Azure Blob Storage container.
-
Constructor Details
-
AzureBlobStorageDocumentLoader
public AzureBlobStorageDocumentLoader(com.azure.storage.blob.BlobServiceClient blobServiceClient)
-
-
Method Details
-
loadDocument
-
loadDocuments
Loads all documents from an Azure Blob Storage container. Skips any documents that fail to load.- Parameters:
containerName- The name of the container to load from.parser- The parser to be used for parsing text from the blob.- Returns:
- A list of documents.
-
loadDocuments
Loads all documents from an Azure Blob Storage container. Skips any documents that fail to load.- Parameters:
containerName- The name of the container to load from.prefix- Only blobs whose names start with this prefix are loaded;nullloads all blobs.parser- The parser to be used for parsing text from the blob.- Returns:
- A list of documents.
-