upgrade langchain and simplify faiss load/save

This commit is contained in:
seehi 2023-12-22 15:57:55 +08:00
parent 322ac4aa40
commit 3b066b36cc

View file

@ -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