crewplus 0.2.54__tar.gz → 0.2.55__tar.gz
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-0.2.54 → crewplus-0.2.55}/PKG-INFO +1 -1
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/vdb_service.py +10 -4
- {crewplus-0.2.54 → crewplus-0.2.55}/pyproject.toml +1 -1
- {crewplus-0.2.54 → crewplus-0.2.55}/LICENSE +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/README.md +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/__init__.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/callbacks/__init__.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/callbacks/async_langfuse_handler.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/__init__.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/azure_chat_model.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/gemini_chat_model.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/init_services.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/model_load_balancer.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/services/tracing_manager.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/utils/__init__.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/utils/schema_action.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/utils/schema_document_updater.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/__init__.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/docs/GeminiChatModel.md +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/docs/ModelLoadBalancer.md +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/docs/VDBService.md +0 -0
- {crewplus-0.2.54 → crewplus-0.2.55}/docs/index.md +0 -0
|
@@ -544,18 +544,24 @@ class VDBService(object):
|
|
|
544
544
|
"params": {}
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
#
|
|
548
|
-
|
|
549
|
-
|
|
547
|
+
# For async, we MUST instantiate Milvus with a sync alias because its __init__ is sync.
|
|
548
|
+
# Then, we hot-swap the client and alias for async operations.
|
|
549
|
+
sync_connection_args = self.connection_args.copy()
|
|
550
|
+
sync_connection_args["alias"] = self.sync_alias
|
|
550
551
|
|
|
551
552
|
vdb = await asyncio.to_thread(
|
|
552
553
|
self._create_milvus_instance_with_retry,
|
|
553
554
|
collection_name=collection_name,
|
|
554
555
|
embeddings=embeddings,
|
|
555
556
|
index_params=index_params,
|
|
556
|
-
connection_args=
|
|
557
|
+
connection_args=sync_connection_args
|
|
557
558
|
)
|
|
558
559
|
|
|
560
|
+
# Hot-swap to the async client and alias for async operations.
|
|
561
|
+
self.logger.debug(f"Swapping to async client for instance of collection {collection_name}")
|
|
562
|
+
vdb.alias = self.async_alias
|
|
563
|
+
vdb.aclient = self._async_client
|
|
564
|
+
|
|
559
565
|
self._async_instances[collection_name] = vdb
|
|
560
566
|
|
|
561
567
|
return vdb
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|