nucliadb 6.2.1.post2990__py3-none-any.whl → 6.2.1.post2999__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.
- nucliadb/ingest/orm/knowledgebox.py +10 -3
- {nucliadb-6.2.1.post2990.dist-info → nucliadb-6.2.1.post2999.dist-info}/METADATA +5 -5
- {nucliadb-6.2.1.post2990.dist-info → nucliadb-6.2.1.post2999.dist-info}/RECORD +7 -7
- {nucliadb-6.2.1.post2990.dist-info → nucliadb-6.2.1.post2999.dist-info}/WHEEL +0 -0
- {nucliadb-6.2.1.post2990.dist-info → nucliadb-6.2.1.post2999.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.2.1.post2990.dist-info → nucliadb-6.2.1.post2999.dist-info}/top_level.txt +0 -0
- {nucliadb-6.2.1.post2990.dist-info → nucliadb-6.2.1.post2999.dist-info}/zip-safe +0 -0
@@ -60,11 +60,13 @@ from nucliadb_protos.knowledgebox_pb2 import (
|
|
60
60
|
VectorSetPurge,
|
61
61
|
)
|
62
62
|
from nucliadb_protos.resources_pb2 import Basic
|
63
|
+
from nucliadb_utils import const
|
63
64
|
from nucliadb_utils.settings import is_onprem_nucliadb
|
64
65
|
from nucliadb_utils.storages.storage import Storage
|
65
66
|
from nucliadb_utils.utilities import (
|
66
67
|
get_audit,
|
67
68
|
get_storage,
|
69
|
+
has_feature,
|
68
70
|
)
|
69
71
|
|
70
72
|
# XXX Eventually all these keys should be moved to datamanagers.kb
|
@@ -163,10 +165,15 @@ class KnowledgeBox:
|
|
163
165
|
# be able to force processing to always send vectorset ids and
|
164
166
|
# remove that bw/c behavior
|
165
167
|
#
|
166
|
-
if
|
167
|
-
storage_key_kind = knowledgebox_pb2.VectorSetConfig.StorageKeyKind.LEGACY
|
168
|
-
else:
|
168
|
+
if has_feature(const.Features.REMOVE_DEFAULT_VECTORSET):
|
169
169
|
storage_key_kind = knowledgebox_pb2.VectorSetConfig.StorageKeyKind.VECTORSET_PREFIX
|
170
|
+
else:
|
171
|
+
if len(semantic_models) == 1:
|
172
|
+
storage_key_kind = knowledgebox_pb2.VectorSetConfig.StorageKeyKind.LEGACY
|
173
|
+
else:
|
174
|
+
storage_key_kind = (
|
175
|
+
knowledgebox_pb2.VectorSetConfig.StorageKeyKind.VECTORSET_PREFIX
|
176
|
+
)
|
170
177
|
|
171
178
|
for vectorset_id, semantic_model in semantic_models.items(): # type: ignore
|
172
179
|
# if this KB uses a matryoshka model, we can choose a different
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.2.1.
|
3
|
+
Version: 6.2.1.post2999
|
4
4
|
Home-page: https://docs.nuclia.dev/docs/management/nucliadb/intro
|
5
5
|
Author: NucliaDB Community
|
6
6
|
Author-email: nucliadb@nuclia.com
|
@@ -22,10 +22,10 @@ Classifier: Programming Language :: Python :: 3.12
|
|
22
22
|
Classifier: Programming Language :: Python :: 3 :: Only
|
23
23
|
Requires-Python: >=3.9, <4
|
24
24
|
Description-Content-Type: text/markdown
|
25
|
-
Requires-Dist: nucliadb-telemetry[all]>=6.2.1.
|
26
|
-
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.
|
27
|
-
Requires-Dist: nucliadb-protos>=6.2.1.
|
28
|
-
Requires-Dist: nucliadb-models>=6.2.1.
|
25
|
+
Requires-Dist: nucliadb-telemetry[all]>=6.2.1.post2999
|
26
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post2999
|
27
|
+
Requires-Dist: nucliadb-protos>=6.2.1.post2999
|
28
|
+
Requires-Dist: nucliadb-models>=6.2.1.post2999
|
29
29
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
30
30
|
Requires-Dist: nuclia-models>=0.24.2
|
31
31
|
Requires-Dist: uvicorn
|
@@ -130,7 +130,7 @@ nucliadb/ingest/orm/brain.py,sha256=UND5EsNUdd7XdjScYqRqg4r_xCx3l-My8alGw5M9CWg,
|
|
130
130
|
nucliadb/ingest/orm/broker_message.py,sha256=ZEMueoGuuRKO4tHgzc0P0AM1Ls1TTYey_4UvRQf0BpY,6915
|
131
131
|
nucliadb/ingest/orm/entities.py,sha256=5d6Gfo-Yz-rns_mNJeRqiGaPeWpUMgSKZnmWIGMLCKo,15537
|
132
132
|
nucliadb/ingest/orm/exceptions.py,sha256=k4Esv4NtL4TrGTcsQpwrSfDhPQpiYcRbB1SpYmBX5MY,1432
|
133
|
-
nucliadb/ingest/orm/knowledgebox.py,sha256=
|
133
|
+
nucliadb/ingest/orm/knowledgebox.py,sha256=9n2QRuRj5BZiQU93O68UafxCN415kchizeU7A2j-WIo,25580
|
134
134
|
nucliadb/ingest/orm/metrics.py,sha256=OkwMSPKLZcKba0ZTwtTiIxwBgaLMX5ydhGieKvi2y7E,1096
|
135
135
|
nucliadb/ingest/orm/resource.py,sha256=KDTEwZ6_5eLvLu1s30Pln4BFDOy9D7_ChT7kRmQ1J2g,44670
|
136
136
|
nucliadb/ingest/orm/utils.py,sha256=vCe_9UxHu26JDFGLwQ0wH-XyzJIpQCTK-Ow9dtZR5Vg,2716
|
@@ -330,9 +330,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
330
330
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
331
331
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
332
332
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
333
|
-
nucliadb-6.2.1.
|
334
|
-
nucliadb-6.2.1.
|
335
|
-
nucliadb-6.2.1.
|
336
|
-
nucliadb-6.2.1.
|
337
|
-
nucliadb-6.2.1.
|
338
|
-
nucliadb-6.2.1.
|
333
|
+
nucliadb-6.2.1.post2999.dist-info/METADATA,sha256=svxzWNBs4exoo_fXleTmSPOg2tNH2oadONQDNqLlgoI,4603
|
334
|
+
nucliadb-6.2.1.post2999.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
335
|
+
nucliadb-6.2.1.post2999.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
336
|
+
nucliadb-6.2.1.post2999.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
337
|
+
nucliadb-6.2.1.post2999.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
338
|
+
nucliadb-6.2.1.post2999.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|