From ff7a152b28a70dc481df5c8705746b7d149ff6c7 Mon Sep 17 00:00:00 2001 From: generall Date: Wed, 15 Nov 2023 21:52:33 +0100 Subject: [PATCH] fix LocalCollection initialization --- qdrant_client/local/async_qdrant_local.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qdrant_client/local/async_qdrant_local.py b/qdrant_client/local/async_qdrant_local.py index c9b0bdaa..0dfc061c 100644 --- a/qdrant_client/local/async_qdrant_local.py +++ b/qdrant_client/local/async_qdrant_local.py @@ -83,7 +83,11 @@ def _load(self) -> None: for collection_name, config_json in meta["collections"].items(): config = rest_models.CreateCollection(**config_json) collection_path = self._collection_path(collection_name) - self.collections[collection_name] = LocalCollection(config, collection_path) + self.collections[collection_name] = LocalCollection( + config, + collection_path, + force_disable_check_same_thread=self.force_disable_check_same_thread, + ) self.aliases = meta["aliases"] lock_file_path = os.path.join(self.location, ".lock") if not os.path.exists(lock_file_path):