crewplus 0.2.11__py3-none-any.whl → 0.2.12__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/milvus_schema_manager.py +5 -1
- crewplus/vectorstores/milvus/vdb_service.py +2 -2
- {crewplus-0.2.11.dist-info → crewplus-0.2.12.dist-info}/METADATA +1 -1
- {crewplus-0.2.11.dist-info → crewplus-0.2.12.dist-info}/RECORD +7 -7
- {crewplus-0.2.11.dist-info → crewplus-0.2.12.dist-info}/WHEEL +0 -0
- {crewplus-0.2.11.dist-info → crewplus-0.2.12.dist-info}/entry_points.txt +0 -0
- {crewplus-0.2.11.dist-info → crewplus-0.2.12.dist-info}/licenses/LICENSE +0 -0
|
@@ -112,7 +112,11 @@ class MilvusSchemaManager:
|
|
|
112
112
|
is_primary = field_info.get('is_primary', False)
|
|
113
113
|
auto_id = field_info.get('auto_id', False)
|
|
114
114
|
nullable = field_info.get('nullable', False)
|
|
115
|
-
|
|
115
|
+
default_value = field_info.get('default_value')
|
|
116
|
+
schema.add_field(field_name=field_name, datatype=DataType.INT64, is_primary=is_primary, auto_id=auto_id, nullable=nullable, default_value=default_value)
|
|
117
|
+
elif field_type == "FLOAT":
|
|
118
|
+
nullable = field_info.get('nullable', True)
|
|
119
|
+
schema.add_field(field_name=field_name, datatype=DataType.FLOAT, nullable=nullable)
|
|
116
120
|
elif field_type == "ARRAY":
|
|
117
121
|
self._add_array_field(schema, field_name, field_info)
|
|
118
122
|
elif field_type == "FLOAT_VECTOR":
|
|
@@ -272,8 +272,8 @@ class VDBService(object):
|
|
|
272
272
|
if not schema_milvus.create_collection():
|
|
273
273
|
raise RuntimeError(f"SchemaMilvus failed to create collection '{collection_name}'.")
|
|
274
274
|
except Exception as e:
|
|
275
|
-
self.logger.error(f"An error occurred while ensuring collection '{collection_name}'
|
|
276
|
-
raise RuntimeError(f"Failed to ensure collection '{collection_name}'
|
|
275
|
+
self.logger.error(f"An error occurred while ensuring collection '{collection_name}' : {e}")
|
|
276
|
+
raise RuntimeError(f"Failed to ensure collection '{collection_name}' .") from e
|
|
277
277
|
|
|
278
278
|
def get_vector_store(self, collection_name: str, embeddings: Embeddings = None, metric_type: str = "L2") -> Zilliz:
|
|
279
279
|
"""
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
crewplus-0.2.
|
|
2
|
-
crewplus-0.2.
|
|
3
|
-
crewplus-0.2.
|
|
4
|
-
crewplus-0.2.
|
|
1
|
+
crewplus-0.2.12.dist-info/METADATA,sha256=dLC3_Ptokcn8Qziq5N7P4oW2hjJ_EO1MA9jnRp6WpmQ,5087
|
|
2
|
+
crewplus-0.2.12.dist-info/WHEEL,sha256=9P2ygRxDrTJz3gsagc0Z96ukrxjr-LFBGOgv3AuKlCA,90
|
|
3
|
+
crewplus-0.2.12.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
|
4
|
+
crewplus-0.2.12.dist-info/licenses/LICENSE,sha256=2_NHSHRTKB_cTcT_GXgcenOCtIZku8j343mOgAguTfc,1087
|
|
5
5
|
crewplus/__init__.py,sha256=m46HkZL1Y4toD619NL47Sn2Qe084WFFSFD7e6VoYKZc,284
|
|
6
6
|
crewplus/services/__init__.py,sha256=ra_ciHcJN_sbv7q8UCP2kY91SbD32-QBpQLRgIosEcE,267
|
|
7
7
|
crewplus/services/gemini_chat_model.py,sha256=i9p5KvSJYaHSUBLPKM_bpyGVLWCDQoNeah_WjQVJRXs,26227
|
|
@@ -11,11 +11,11 @@ crewplus/utils/__init__.py,sha256=2Gk1n5srFJQnFfBuYTxktdtKOVZyNrFcNaZKhXk35Pw,14
|
|
|
11
11
|
crewplus/utils/schema_action.py,sha256=GDaBoVFQD1rXqrLVSMTfXYW1xcUu7eDcHsn57XBSnIg,422
|
|
12
12
|
crewplus/utils/schema_document_updater.py,sha256=frvffxn2vbi71fHFPoGb9hq7gH2azmmdq17p-Fumnvg,7322
|
|
13
13
|
crewplus/vectorstores/milvus/__init__.py,sha256=egGncAdjlXG6ekTQvKMKqhvKBifrUrPlsSB0-bpvq4A,229
|
|
14
|
-
crewplus/vectorstores/milvus/milvus_schema_manager.py,sha256=
|
|
14
|
+
crewplus/vectorstores/milvus/milvus_schema_manager.py,sha256=DgXESMh2t8c4Cyr1_gONjLTfh5tGT-vePV9MctMhnDQ,9316
|
|
15
15
|
crewplus/vectorstores/milvus/schema_milvus.py,sha256=IvKdUCH451HJ-F3TUR5jDjqwQlQs4SEXAQ_th4JAnfc,12117
|
|
16
|
-
crewplus/vectorstores/milvus/vdb_service.py,sha256=
|
|
16
|
+
crewplus/vectorstores/milvus/vdb_service.py,sha256=R3YakhJEVpPN1yCGgprFCcJflcBIR6BY8eOglUJmduM,19192
|
|
17
17
|
docs/GeminiChatModel.md,sha256=_IQyup3ofAa2HxfSurO1GYUEezTHYYt5Q1khYNVThGM,8040
|
|
18
18
|
docs/ModelLoadBalancer.md,sha256=aGHES1dcXPz4c7Y8kB5-vsCNJjriH2SWmjBkSGoYKiI,4398
|
|
19
19
|
docs/VDBService.md,sha256=Dw286Rrf_fsi13jyD3Bo4Sy7nZ_G7tYm7d8MZ2j9hxk,9375
|
|
20
20
|
docs/index.md,sha256=3tlc15uR8lzFNM5WjdoZLw0Y9o1P1gwgbEnOdIBspqc,1643
|
|
21
|
-
crewplus-0.2.
|
|
21
|
+
crewplus-0.2.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|