crewplus 0.2.55__tar.gz → 0.2.56__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.55 → crewplus-0.2.56}/PKG-INFO +1 -1
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/vdb_service.py +8 -12
- {crewplus-0.2.55 → crewplus-0.2.56}/pyproject.toml +1 -1
- {crewplus-0.2.55 → crewplus-0.2.56}/LICENSE +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/README.md +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/__init__.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/callbacks/__init__.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/callbacks/async_langfuse_handler.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/__init__.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/azure_chat_model.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/gemini_chat_model.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/init_services.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/model_load_balancer.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/services/tracing_manager.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/utils/__init__.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/utils/schema_action.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/utils/schema_document_updater.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/__init__.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/docs/GeminiChatModel.md +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/docs/ModelLoadBalancer.md +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/docs/VDBService.md +0 -0
- {crewplus-0.2.55 → crewplus-0.2.56}/docs/index.md +0 -0
|
@@ -544,23 +544,19 @@ class VDBService(object):
|
|
|
544
544
|
"params": {}
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
# For async, we MUST instantiate Milvus
|
|
548
|
-
#
|
|
549
|
-
|
|
550
|
-
sync_connection_args["alias"] = self.sync_alias
|
|
551
|
-
|
|
552
|
-
vdb = await asyncio.to_thread(
|
|
553
|
-
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(
|
|
554
550
|
collection_name=collection_name,
|
|
555
551
|
embeddings=embeddings,
|
|
556
552
|
index_params=index_params,
|
|
557
|
-
connection_args=
|
|
553
|
+
connection_args=self.connection_args # This uses the sync_alias by default
|
|
558
554
|
)
|
|
559
555
|
|
|
560
|
-
#
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
vdb.aclient = self.
|
|
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
|
|
564
560
|
|
|
565
561
|
self._async_instances[collection_name] = vdb
|
|
566
562
|
|
|
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
|