crewplus 0.2.54__py3-none-any.whl → 0.2.56__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of crewplus might be problematic. Click here for more details.
- crewplus/vectorstores/milvus/vdb_service.py +9 -7
- {crewplus-0.2.54.dist-info → crewplus-0.2.56.dist-info}/METADATA +1 -1
- {crewplus-0.2.54.dist-info → crewplus-0.2.56.dist-info}/RECORD +6 -6
- {crewplus-0.2.54.dist-info → crewplus-0.2.56.dist-info}/WHEEL +0 -0
- {crewplus-0.2.54.dist-info → crewplus-0.2.56.dist-info}/entry_points.txt +0 -0
- {crewplus-0.2.54.dist-info → crewplus-0.2.56.dist-info}/licenses/LICENSE +0 -0
|
@@ -544,18 +544,20 @@ class VDBService(object):
|
|
|
544
544
|
"params": {}
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
#
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
vdb = await asyncio.to_thread(
|
|
552
|
-
self._create_milvus_instance_with_retry,
|
|
547
|
+
# For async operations, we MUST instantiate the Milvus object using the SYNCHRONOUS alias
|
|
548
|
+
# because its __init__ method is synchronous.
|
|
549
|
+
vdb = self._create_milvus_instance_with_retry(
|
|
553
550
|
collection_name=collection_name,
|
|
554
551
|
embeddings=embeddings,
|
|
555
552
|
index_params=index_params,
|
|
556
|
-
connection_args=
|
|
553
|
+
connection_args=self.connection_args # This uses the sync_alias by default
|
|
557
554
|
)
|
|
558
555
|
|
|
556
|
+
# After successful synchronous initialization, we hot-swap the alias on the
|
|
557
|
+
# ASYNCHRONOUS client to ensure future async operations use the correct connection.
|
|
558
|
+
self.logger.debug(f"Swapping to async alias for instance of collection {collection_name}")
|
|
559
|
+
vdb.aclient._using = self.async_alias
|
|
560
|
+
|
|
559
561
|
self._async_instances[collection_name] = vdb
|
|
560
562
|
|
|
561
563
|
return vdb
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
crewplus-0.2.
|
|
2
|
-
crewplus-0.2.
|
|
3
|
-
crewplus-0.2.
|
|
4
|
-
crewplus-0.2.
|
|
1
|
+
crewplus-0.2.56.dist-info/METADATA,sha256=ccwA_6ip1D6ZEviEIiTtshF4wqO54TS5THUBV7wDSJY,5459
|
|
2
|
+
crewplus-0.2.56.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
crewplus-0.2.56.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
+
crewplus-0.2.56.dist-info/licenses/LICENSE,sha256=2_NHSHRTKB_cTcT_GXgcenOCtIZku8j343mOgAguTfc,1087
|
|
5
5
|
crewplus/__init__.py,sha256=m46HkZL1Y4toD619NL47Sn2Qe084WFFSFD7e6VoYKZc,284
|
|
6
6
|
crewplus/callbacks/__init__.py,sha256=YG7ieeb91qEjp1zF0-inEN7mjZ7yT_D2yzdWFT8Z1Ws,63
|
|
7
7
|
crewplus/callbacks/async_langfuse_handler.py,sha256=A4uFeLpvOUdc58M7sZoE65_C1V98u0QCvx5jUquM0pM,7006
|
|
@@ -17,9 +17,9 @@ crewplus/utils/schema_document_updater.py,sha256=frvffxn2vbi71fHFPoGb9hq7gH2azmm
|
|
|
17
17
|
crewplus/vectorstores/milvus/__init__.py,sha256=OeYv2rdyG7tcREIjBJPyt2TbE54NvyeRoWMe7LwopRE,245
|
|
18
18
|
crewplus/vectorstores/milvus/milvus_schema_manager.py,sha256=-QRav-hzu-XWeJ_yKUMolal_EyMUspSg-nvh5sqlrlQ,11442
|
|
19
19
|
crewplus/vectorstores/milvus/schema_milvus.py,sha256=wwNpfqsKS0xeozZES40IvB0iNwUtpCall_7Hkg0dL1g,27223
|
|
20
|
-
crewplus/vectorstores/milvus/vdb_service.py,sha256=
|
|
20
|
+
crewplus/vectorstores/milvus/vdb_service.py,sha256=AomZTlwKaw1r_9xgWPVJGBJlJjMlwb-Jn1CWBSsS2Eg,34387
|
|
21
21
|
docs/GeminiChatModel.md,sha256=zZYyl6RmjZTUsKxxMiC9O4yV70MC4TD-IGUmWhIDBKA,8677
|
|
22
22
|
docs/ModelLoadBalancer.md,sha256=aGHES1dcXPz4c7Y8kB5-vsCNJjriH2SWmjBkSGoYKiI,4398
|
|
23
23
|
docs/VDBService.md,sha256=Dw286Rrf_fsi13jyD3Bo4Sy7nZ_G7tYm7d8MZ2j9hxk,9375
|
|
24
24
|
docs/index.md,sha256=3tlc15uR8lzFNM5WjdoZLw0Y9o1P1gwgbEnOdIBspqc,1643
|
|
25
|
-
crewplus-0.2.
|
|
25
|
+
crewplus-0.2.56.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|