From e1aa2cc0b86bf692aa40ef938b43c9bd0082f199 Mon Sep 17 00:00:00 2001 From: ManishMadan2882 Date: Fri, 9 May 2025 02:26:35 +0530 Subject: [PATCH] (fix:ingestion) store file name as metadata, not path --- application/parser/file/bulk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/parser/file/bulk.py b/application/parser/file/bulk.py index 8201b3f2..da6dc298 100644 --- a/application/parser/file/bulk.py +++ b/application/parser/file/bulk.py @@ -158,7 +158,7 @@ class SimpleDirectoryReader(BaseReader): data = f.read() # Prepare metadata for this file if self.file_metadata is not None: - file_metadata = self.file_metadata(str(input_file)) + file_metadata = self.file_metadata(input_file.name) else: # Provide a default empty metadata file_metadata = {'title': '', 'store': ''}