From a11aaa4f80d070c842e184cca843360f6ef61e50 Mon Sep 17 00:00:00 2001 From: Yue Fei Date: Mon, 23 Dec 2024 15:08:51 +0800 Subject: [PATCH] Fix metadata issue (#316) * Fix xls parsing * Add oss file link * fix typo * fix metadata issue --- src/pai_rag/integrations/readers/pai/pai_data_reader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pai_rag/integrations/readers/pai/pai_data_reader.py b/src/pai_rag/integrations/readers/pai/pai_data_reader.py index 8c3e28cd..0f9aab42 100644 --- a/src/pai_rag/integrations/readers/pai/pai_data_reader.py +++ b/src/pai_rag/integrations/readers/pai/pai_data_reader.py @@ -149,7 +149,8 @@ def get_input_files( ) file_metadata_map = { - file: default_file_metadata_func(file_path=file) for file in input_files + str(file): default_file_metadata_func(file_path=str(file)) + for file in input_files } return input_files, file_metadata_map