philmui commited on
Commit
238fa74
·
1 Parent(s): 5b7bbbc

always create store when starting

Browse files
Files changed (1) hide show
  1. semantic.py +7 -7
semantic.py CHANGED
@@ -100,13 +100,13 @@ class SemanticStoreFactory:
100
  cls
101
  ) -> VectorStore:
102
  if cls._semantic_vectorstore is None:
103
- print(f"Loading semantic vectorstore {META_SEMANTIC_COLLECTION} from: {VECTOR_STORE_PATH}")
104
- try:
105
- # first try to load the store
106
- cls._semantic_vectorstore = cls.__load_semantic_store()
107
- except Exception as e:
108
- _logger.warning(f"cannot load: {e}")
109
- cls._semantic_vectorstore = cls.__create_semantic_store()
110
 
111
  return cls._semantic_vectorstore
112
 
 
100
  cls
101
  ) -> VectorStore:
102
  if cls._semantic_vectorstore is None:
103
+ # print(f"Loading semantic vectorstore {META_SEMANTIC_COLLECTION} from: {VECTOR_STORE_PATH}")
104
+ # try:
105
+ # # first try to load the store
106
+ # cls._semantic_vectorstore = cls.__load_semantic_store()
107
+ # except Exception as e:
108
+ # _logger.warning(f"cannot load: {e}")
109
+ cls._semantic_vectorstore = cls.__create_semantic_store()
110
 
111
  return cls._semantic_vectorstore
112