in code/embedding-function/utilities/common/source_document.py [0:0]
def get_filename(self, include_path=False):
filename = self.source.replace("_SAS_TOKEN_PLACEHOLDER_", "").replace(
"http://", ""
)
if include_path:
filename = filename.split("/")[-1]
else:
filename = filename.split("/")[-1].split(".")[0]
return filename