crewplus 0.2.62__tar.gz → 0.2.63__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.62 → crewplus-0.2.63}/PKG-INFO +1 -1
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/vectorstores/milvus/vdb_service.py +21 -21
- {crewplus-0.2.62 → crewplus-0.2.63}/pyproject.toml +1 -1
- {crewplus-0.2.62 → crewplus-0.2.63}/LICENSE +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/README.md +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/__init__.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/callbacks/__init__.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/callbacks/async_langfuse_handler.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/services/__init__.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/services/azure_chat_model.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/services/gemini_chat_model.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/services/init_services.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/services/model_load_balancer.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/services/tracing_manager.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/utils/__init__.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/utils/schema_action.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/utils/schema_document_updater.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/vectorstores/milvus/__init__.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/vectorstores/milvus/milvus_schema_manager.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/crewplus/vectorstores/milvus/schema_milvus.py +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/docs/GeminiChatModel.md +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/docs/ModelLoadBalancer.md +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/docs/VDBService.md +0 -0
- {crewplus-0.2.62 → crewplus-0.2.63}/docs/index.md +0 -0
|
@@ -466,17 +466,17 @@ class VDBService(object):
|
|
|
466
466
|
# Ensure the collection exists before proceeding.
|
|
467
467
|
self._ensure_collection_exists(collection_name, embeddings, check_existence=True)
|
|
468
468
|
|
|
469
|
-
# 1. Validate the embedding function before proceeding.
|
|
470
|
-
try:
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
except Exception as e:
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
469
|
+
# # 1. Validate the embedding function before proceeding.
|
|
470
|
+
# try:
|
|
471
|
+
# self.logger.info(f"Testing embedding function for collection '{collection_name}'...")
|
|
472
|
+
# embeddings.embed_query("validation_test_string")
|
|
473
|
+
# self.logger.info("Embedding function is valid.")
|
|
474
|
+
# except Exception as e:
|
|
475
|
+
# self.logger.error(
|
|
476
|
+
# f"The provided embedding function is invalid and failed with error: {e}. "
|
|
477
|
+
# f"Cannot create a vector store for collection '{collection_name}'."
|
|
478
|
+
# )
|
|
479
|
+
# raise RuntimeError(f"Invalid embedding function provided.") from e
|
|
480
480
|
|
|
481
481
|
# If embeddings are valid, proceed to create the Milvus instance.
|
|
482
482
|
index_params = self.index_params or {
|
|
@@ -544,16 +544,16 @@ class VDBService(object):
|
|
|
544
544
|
|
|
545
545
|
await self._aensure_collection_exists(collection_name, embeddings, check_existence=True)
|
|
546
546
|
|
|
547
|
-
try:
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
except Exception as e:
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
547
|
+
# try:
|
|
548
|
+
# self.logger.info(f"Testing embedding function for collection '{collection_name}'...")
|
|
549
|
+
# await embeddings.aembed_query("validation_test_string")
|
|
550
|
+
# self.logger.info("Embedding function is valid.")
|
|
551
|
+
# except Exception as e:
|
|
552
|
+
# self.logger.error(
|
|
553
|
+
# f"The provided embedding function is invalid and failed with error: {e}. "
|
|
554
|
+
# f"Cannot create a vector store for collection '{collection_name}'."
|
|
555
|
+
# )
|
|
556
|
+
# raise RuntimeError(f"Invalid embedding function provided.") from e
|
|
557
557
|
|
|
558
558
|
index_params = self.index_params or {
|
|
559
559
|
"metric_type": metric_type,
|
|
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
|