in code/embedding-function/utilities/helpers/azure_blob_storage_client.py [0:0]
def get_blob_sas(self, file_name):
# Generate a SAS URL to the blob and return it
return (
f"{self.endpoint}{self.container_name}/{file_name}"
+ "?"
+ generate_blob_sas(
account_name=self.account_name,
container_name=self.container_name,
blob_name=file_name,
user_delegation_key=self.user_delegation_key,
account_key=self.account_key,
permission="r",
expiry=datetime.utcnow() + timedelta(hours=1),
)
)