diff --git a/metagpt/document_store/base_store.py b/metagpt/document_store/base_store.py index af69b10de..b719d1083 100644 --- a/metagpt/document_store/base_store.py +++ b/metagpt/document_store/base_store.py @@ -33,7 +33,7 @@ class LocalStore(BaseStore, ABC): raise FileNotFoundError self.config = Config() self.raw_data_path = raw_data_path - self.fname = self.raw_data_path.name.split(".")[0] + self.fname = self.raw_data_path.stem if not cache_dir: cache_dir = raw_data_path.parent self.cache_dir = cache_dir