nucliadb 6.2.1.post2798__py3-none-any.whl → 6.2.1.post2803__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 +22 -0
- {nucliadb-6.2.1.post2798.dist-info → nucliadb-6.2.1.post2803.dist-info}/METADATA +5 -5
- {nucliadb-6.2.1.post2798.dist-info → nucliadb-6.2.1.post2803.dist-info}/RECORD +7 -7
- {nucliadb-6.2.1.post2798.dist-info → nucliadb-6.2.1.post2803.dist-info}/WHEEL +0 -0
- {nucliadb-6.2.1.post2798.dist-info → nucliadb-6.2.1.post2803.dist-info}/entry_points.txt +0 -0
- {nucliadb-6.2.1.post2798.dist-info → nucliadb-6.2.1.post2803.dist-info}/top_level.txt +0 -0
- {nucliadb-6.2.1.post2798.dist-info → nucliadb-6.2.1.post2803.dist-info}/zip-safe +0 -0
@@ -146,6 +146,27 @@ class KnowledgeBox:
|
|
146
146
|
kb_shards.actual = -1
|
147
147
|
|
148
148
|
vs_external_indexes = []
|
149
|
+
|
150
|
+
# HACK! Currently, we share responsibility of deciding where to
|
151
|
+
# store extracted vectors with processing. Depending on whether
|
152
|
+
# it sends the vectorset id or not (in the extracted vectors
|
153
|
+
# wrapper) nucliadb will store the extracted vectors in a different place
|
154
|
+
#
|
155
|
+
# Right now, processing behaviour is not setting vectorset ids
|
156
|
+
# if there's only one semantic model configured. This is done
|
157
|
+
# for Bw/c with KBs previous to vectorsets.
|
158
|
+
#
|
159
|
+
# We now hardcode this assumption here, so we can annotate each
|
160
|
+
# vectorset with a mark and don't depend on processing
|
161
|
+
# information to decide the storage key. Once this is done we'll
|
162
|
+
# be able to force processing to always send vectorset ids and
|
163
|
+
# remove that bw/c behavior
|
164
|
+
#
|
165
|
+
if len(semantic_models) == 1:
|
166
|
+
storage_key_kind = knowledgebox_pb2.VectorSetConfig.StorageKeyKind.LEGACY
|
167
|
+
else:
|
168
|
+
storage_key_kind = knowledgebox_pb2.VectorSetConfig.StorageKeyKind.VECTORSET_PREFIX
|
169
|
+
|
149
170
|
for vectorset_id, semantic_model in semantic_models.items(): # type: ignore
|
150
171
|
# if this KB uses a matryoshka model, we can choose a different
|
151
172
|
# dimension
|
@@ -172,6 +193,7 @@ class KnowledgeBox:
|
|
172
193
|
vector_dimension=dimension,
|
173
194
|
),
|
174
195
|
matryoshka_dimensions=semantic_model.matryoshka_dimensions,
|
196
|
+
storage_key_kind=storage_key_kind,
|
175
197
|
)
|
176
198
|
await datamanagers.vectorsets.set(txn, kbid=kbid, config=vectorset_config)
|
177
199
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: nucliadb
|
3
|
-
Version: 6.2.1.
|
3
|
+
Version: 6.2.1.post2803
|
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.post2803
|
26
|
+
Requires-Dist: nucliadb-utils[cache,fastapi,storages]>=6.2.1.post2803
|
27
|
+
Requires-Dist: nucliadb-protos>=6.2.1.post2803
|
28
|
+
Requires-Dist: nucliadb-models>=6.2.1.post2803
|
29
29
|
Requires-Dist: nucliadb-admin-assets>=1.0.0.post1224
|
30
30
|
Requires-Dist: nucliadb-node-binding>=2.26.0
|
31
31
|
Requires-Dist: nuclia-models>=0.24.2
|
@@ -138,7 +138,7 @@ nucliadb/ingest/orm/brain.py,sha256=Hzq-3aarKaUCiUoa8H83unRUfduRE9TsQH1dEq0mvZY,
|
|
138
138
|
nucliadb/ingest/orm/broker_message.py,sha256=JYYUJIZEL_EqovQuw6u-FmEkjyoYlxIXJq9hFekOiks,6441
|
139
139
|
nucliadb/ingest/orm/entities.py,sha256=2PslT1FZ6yCvJtjR0UpKTSzxJrtS-C_gZx4ZTWHunTc,15759
|
140
140
|
nucliadb/ingest/orm/exceptions.py,sha256=k4Esv4NtL4TrGTcsQpwrSfDhPQpiYcRbB1SpYmBX5MY,1432
|
141
|
-
nucliadb/ingest/orm/knowledgebox.py,sha256=
|
141
|
+
nucliadb/ingest/orm/knowledgebox.py,sha256=UpWJrVaVfCtk8R4qfSR6h6vzwOKXa8Teuwkna5QSljE,24508
|
142
142
|
nucliadb/ingest/orm/metrics.py,sha256=OkwMSPKLZcKba0ZTwtTiIxwBgaLMX5ydhGieKvi2y7E,1096
|
143
143
|
nucliadb/ingest/orm/resource.py,sha256=FIC7Tzef_0hoN92tFwN8PUi8IHlUkyifPJxsA1_XumM,55727
|
144
144
|
nucliadb/ingest/orm/utils.py,sha256=vCe_9UxHu26JDFGLwQ0wH-XyzJIpQCTK-Ow9dtZR5Vg,2716
|
@@ -335,9 +335,9 @@ nucliadb/writer/tus/local.py,sha256=7jYa_w9b-N90jWgN2sQKkNcomqn6JMVBOVeDOVYJHto,
|
|
335
335
|
nucliadb/writer/tus/s3.py,sha256=vF0NkFTXiXhXq3bCVXXVV-ED38ECVoUeeYViP8uMqcU,8357
|
336
336
|
nucliadb/writer/tus/storage.py,sha256=ToqwjoYnjI4oIcwzkhha_MPxi-k4Jk3Lt55zRwaC1SM,2903
|
337
337
|
nucliadb/writer/tus/utils.py,sha256=MSdVbRsRSZVdkaum69_0wku7X3p5wlZf4nr6E0GMKbw,2556
|
338
|
-
nucliadb-6.2.1.
|
339
|
-
nucliadb-6.2.1.
|
340
|
-
nucliadb-6.2.1.
|
341
|
-
nucliadb-6.2.1.
|
342
|
-
nucliadb-6.2.1.
|
343
|
-
nucliadb-6.2.1.
|
338
|
+
nucliadb-6.2.1.post2803.dist-info/METADATA,sha256=NZ6FUiG4RGSNyA919ez19edmW1geeUPg9AIFVSRrt4k,4689
|
339
|
+
nucliadb-6.2.1.post2803.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
340
|
+
nucliadb-6.2.1.post2803.dist-info/entry_points.txt,sha256=XqGfgFDuY3zXQc8ewXM2TRVjTModIq851zOsgrmaXx4,1268
|
341
|
+
nucliadb-6.2.1.post2803.dist-info/top_level.txt,sha256=hwYhTVnX7jkQ9gJCkVrbqEG1M4lT2F_iPQND1fCzF80,20
|
342
|
+
nucliadb-6.2.1.post2803.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
343
|
+
nucliadb-6.2.1.post2803.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|