adding logging
Browse files- semantic.py +2 -0
semantic.py
CHANGED
@@ -58,12 +58,14 @@ class SemanticStoreFactory:
|
|
58 |
store = None
|
59 |
# check if path exists and if it is not empty
|
60 |
if path.exists() and path.is_dir() and any(path.iterdir()):
|
|
|
61 |
store = Qdrant(
|
62 |
client=qdrant_client,
|
63 |
embeddings=embeddings,
|
64 |
collection_name=META_SEMANTIC_COLLECTION,
|
65 |
)
|
66 |
else:
|
|
|
67 |
store = cls.__create_semantic_store()
|
68 |
return store
|
69 |
|
|
|
58 |
store = None
|
59 |
# check if path exists and if it is not empty
|
60 |
if path.exists() and path.is_dir() and any(path.iterdir()):
|
61 |
+
_logger.info(f"\tQdrant loading ...")
|
62 |
store = Qdrant(
|
63 |
client=qdrant_client,
|
64 |
embeddings=embeddings,
|
65 |
collection_name=META_SEMANTIC_COLLECTION,
|
66 |
)
|
67 |
else:
|
68 |
+
_logger.info(f"\tQdrant creating ...")
|
69 |
store = cls.__create_semantic_store()
|
70 |
return store
|
71 |
|